Template:Sigil: Difference between revisions
m TemplateData from visual template data editor |
Display messages for unexpected/omitted colors or shapes |
||
Line 1: | Line 1: | ||
[[File:{{{color|{{{1}}}}}}-{{{ | {{#switch:{{{color|{{{1}}}}}} | ||
<noinclude>== Usage == | |Red|Green|Yellow|Gray={{#switch:{{{shape|{{{2}}}}}} | ||
|L=[[File:{{{color|{{{1}}}}}}-L-tetromino.png|9px|link={{{link|}}}]] | |||
|J=[[File:{{{color|{{{1}}}}}}-J-tetromino.png|9px|link={{{link|}}}]] | |||
|O=[[File:{{{color|{{{1}}}}}}-O-tetromino.png|9px|link={{{link|}}}]] | |||
|S=[[File:{{{color|{{{1}}}}}}-S-tetromino.png|15px|link={{{link|}}}]] | |||
|Z=[[File:{{{color|{{{1}}}}}}-Z-tetromino.png|15px|link={{{link|}}}]] | |||
|T=[[File:{{{color|{{{1}}}}}}-T-tetromino.png|14px|link={{{link|}}}]] | |||
|I=[[File:{{{color|{{{1}}}}}}-I-tetromino.png|18px|link={{{link|}}}]] | |||
|#default=''[<span style="color:{{lc:{{{color|{{{1}}}}}}}}">{{{color|{{{1}}}}}} sigil</span>]'' | |||
}} | |||
|''[Sigil of unrecognized color]'' | |||
}}<noinclude> | |||
== Usage == | |||
This produces a small tetromino icon. The possible colors are Red, Green, Yellow, and Gray. The possible "shapes" are <code>L</code>, <code>J</code>, <code>O</code>, <code>S</code>, <code>Z</code>, <code>T</code>, and <code>I</code>. A link can optionally be included. | This produces a small tetromino icon. The possible colors are Red, Green, Yellow, and Gray. The possible "shapes" are <code>L</code>, <code>J</code>, <code>O</code>, <code>S</code>, <code>Z</code>, <code>T</code>, and <code>I</code>. A link can optionally be included. | ||
Example: <code><nowiki>{{Sigil|color=Yellow|shape=L}}</nowiki></code> or <code><nowiki>{{Sigil|Yellow|L}}</nowiki></code> produces {{Sigil|color=Yellow|shape=L}}. | |||
Example: <code><nowiki>{{Sigil| | Example: <code><nowiki>{{Sigil|Green}}</nowiki></code> produces {{Sigil|Green}}. | ||
Example with link: <code><nowiki>{{Sigil|Red|Z|link=Ascension Awaits}}</nowiki></code> produces {{Sigil|Red|Z|link=Ascension Awaits}}. | Example with link: <code><nowiki>{{Sigil|Red|Z|link=Ascension Awaits}}</nowiki></code> produces {{Sigil|Red|Z|link=Ascension Awaits}}. |
Revision as of 06:23, 2 December 2023
[Sigil of unrecognized color]
Usage
This produces a small tetromino icon. The possible colors are Red, Green, Yellow, and Gray. The possible "shapes" are L
, J
, O
, S
, Z
, T
, and I
. A link can optionally be included.
Example: {{Sigil|color=Yellow|shape=L}}
or {{Sigil|Yellow|L}}
produces .
Example: {{Sigil|Green}}
produces [Green sigil].
Example with link: {{Sigil|Red|Z|link=Ascension Awaits}}
produces .
This produces a small tetromino icon.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Color | color 1 | The color of the icon.
| String | required |
Shape | shape 2 | The shape of the sigil. This must be a capital letter: L, J, S, Z, O (for square), T, or I.
| String | required |
Link | link | The name of another wiki article. If included, the sigil icon will become a link to that page. | Page name | optional |