Template:Sigil: Difference between revisions
m Removed TemplateData code. I will attempt to use the visual template data editor. Tag: Manual revert |
m TemplateData from visual template data editor |
||
Line 9: | Line 9: | ||
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}}. | ||
<templatedata> | |||
{ | |||
"params": { | |||
"color": { | |||
"aliases": [ | |||
"1" | |||
], | |||
"label": "Color", | |||
"description": "The color of the icon.", | |||
"example": "Red", | |||
"type": "string", | |||
"suggestedvalues": [ | |||
"Red", | |||
"Green", | |||
"Yellow", | |||
"Gray" | |||
], | |||
"required": true | |||
}, | |||
"shape": { | |||
"aliases": [ | |||
"2" | |||
], | |||
"label": "Shape", | |||
"description": "The shape of the sigil. This must be a capital letter: L, J, S, Z, O (for square), T, or I.", | |||
"example": "T", | |||
"type": "string", | |||
"suggestedvalues": [ | |||
"L", | |||
"J", | |||
"S", | |||
"Z", | |||
"O", | |||
"T", | |||
"I" | |||
], | |||
"required": true | |||
}, | |||
"link": { | |||
"label": "Link", | |||
"description": "The name of another wiki article. If included, the sigil icon will become a link to that page.", | |||
"type": "wiki-page-name" | |||
} | |||
}, | |||
"description": "This produces a small tetromino icon.", | |||
"format": "inline" | |||
} | |||
</templatedata> | |||
</noinclude> | </noinclude> |
Revision as of 12:59, 22 November 2023
[[File:{{{1}}}-{{{2}}}-tetromino.png|10px|link=]]
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=Green|shape=L}}
or {{Sigil|Green|L}}
produces
.
Example: {{Sigil|Red|Z}}
produces
.
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 |