Template:Sigil: Difference between revisions

From The Talos Principle Wiki
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 13: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.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Colorcolor 1

The color of the icon.

Suggested values
Red Green Yellow Gray
Example
Red
Stringrequired
Shapeshape 2

The shape of the sigil. This must be a capital letter: L, J, S, Z, O (for square), T, or I.

Suggested values
L J S Z O T I
Example
T
Stringrequired
Linklink

The name of another wiki article. If included, the sigil icon will become a link to that page.

Page nameoptional