Difference between revisions of "Extension:PetalBoard"

From Petal Crashers Wiki

Line 2: Line 2:
   
 
<code><nowiki>
 
<code><nowiki>
&lt;petalboard width="5" height="3"&gt;,x2,,,g;,,y3,,g;r,,,,r&lt;/petalboard&gt;
+
&lt;petalboard width="5" height="3"&gt;,x2,,,g;,,y3,,g;r,,p7,,r&lt;/petalboard&gt;
 
</nowiki></code>
 
</nowiki></code>
   
 
into:
 
into:
   
<petalboard width="5" height="3">,x2,,,g;,,y3,,g;r,,,,r</petalboard>
+
<petalboard width="5" height="3">,x2,,,g;,,y3,,g;r,,p7,,r</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.

Revision as of 23:25, 1 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;,,y3,,g;r,,p7,,r</petalboard>

into:

x2g
y3g
rp7r

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.