Difference between revisions of "Extension:PetalBoard"
(5 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
<code><nowiki> |
<code><nowiki> |
||
− | <petalboard width="5" height="3">,x2,,,g;,,y3,,g;r,,p7,,r</petalboard> |
+ | <petalboard width="5" height="3">,x2,,,g;w,,y3,,g-b1;r,,p7,,r-x2</petalboard> |
</nowiki></code> |
</nowiki></code> |
||
into: |
into: |
||
− | <petalboard width="5" height="3">,x2,,,g;,,y3,,g;r,,p7,,r</petalboard> |
+ | <petalboard width="5" height="3">,x2,,,g;w,,y3,,g-b1;r,,p7,,r-x2</petalboard> |
Rows are separated by semicolons <code>;</code> and columns are separated by commas <code>,</code>. There is additionally a <code>size</code> attribute that can be set to <code>small</code>, <code>medium</code>, or <code>large</code> (<code>medium</code> is the default). Valid petal names are <code>b</code>, <code>g</code>, <code>p</code>, <code>r</code>, and <code>y</code> for the colored petals, optionally suffixed by 1-8 to specify petals that have not yet spawned in. Garbage can be used with <code>x</code> and optionally suffixed by 1-4 for the pending states. |
Rows are separated by semicolons <code>;</code> and columns are separated by commas <code>,</code>. There is additionally a <code>size</code> attribute that can be set to <code>small</code>, <code>medium</code>, or <code>large</code> (<code>medium</code> is the default). Valid petal names are <code>b</code>, <code>g</code>, <code>p</code>, <code>r</code>, and <code>y</code> for the colored petals, optionally suffixed by 1-8 to specify petals that have not yet spawned in. Garbage can be used with <code>x</code> and optionally suffixed by 1-4 for the pending states. |
||
+ | |||
+ | A <code>w</code> can be placed in a square to refer to a wall. |
||
+ | |||
+ | Additionally, pending blocks can be shown by appending a hyphen <code>-</code> and then one of the colors <code>b</code>, <code>g</code>, <code>p</code>, <code>r</code>, <code>y</code>, or <code>x</code>, and then either <code>1</code> for pending blocks coming in later than the next turn or <code>2</code> if they are coming in next turn. |
||
+ | |||
+ | As of 14 November 2020, PetalBoard has been updated to display puzzles as well. Just put the code in a puzzle tag like so: |
||
+ | |||
+ | <code><puzzle>TGlsaWJyaQBNeSBGdW4gQ2hhaW4ABAA+AOQAEooAuACgASYYAGAPA+AD</puzzle></code> |
||
+ | |||
+ | to produce the following: |
||
+ | |||
+ | <puzzle>TGlsaWJyaQBNeSBGdW4gQ2hhaW4ABAA+AOQAEooAuACgASYYAGAPA+AD</puzzle> |
||
+ | |||
+ | The puzzle tag also optionally takes a <code>size</code> attribute, which defaults to <code>small</code> if not provided. |
Latest revision as of 04:20, 15 November 2020
The PetalBoard extension, written by Zircean, renders embedded Petal Crash boards onto the page. For example, it turns:
<petalboard width="5" height="3">,x2,,,g;w,,y3,,g-b1;r,,p7,,r-x2</petalboard>
into:
Rows are separated by semicolons ;
and columns are separated by commas ,
. There is additionally a size
attribute that can be set to small
, medium
, or large
(medium
is the default). Valid petal names are b
, g
, p
, r
, and y
for the colored petals, optionally suffixed by 1-8 to specify petals that have not yet spawned in. Garbage can be used with x
and optionally suffixed by 1-4 for the pending states.
A w
can be placed in a square to refer to a wall.
Additionally, pending blocks can be shown by appending a hyphen -
and then one of the colors b
, g
, p
, r
, y
, or x
, and then either 1
for pending blocks coming in later than the next turn or 2
if they are coming in next turn.
As of 14 November 2020, PetalBoard has been updated to display puzzles as well. Just put the code in a puzzle tag like so:
<puzzle>TGlsaWJyaQBNeSBGdW4gQ2hhaW4ABAA+AOQAEooAuACgASYYAGAPA+AD</puzzle>
to produce the following:
My Fun Chain by Lilibri | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Board | Moves | To Clear | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Code: |
The puzzle tag also optionally takes a size
attribute, which defaults to small
if not provided.