Template:Sigil: Difference between revisions

From The Talos Principle Wiki
m Attempt at visual editor documentation.
Tag: Reverted
m Removed TemplateData code. I will attempt to use the visual template data editor.
Tag: Manual revert
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>
{
    "description": "Inserts an sigil with specified color and shape.",
    "params": {
        "1": {
            "label": "color",
            "type": "enum",
            "description": "The color of the sigil.",
            "enum": ["Red", "Green", "Yellow", "Gray"],
            "required": true
        },
        "2": {
            "label": "shape",
            "type": "enum",
            "description": "The shape of the sigil, using common Tetris notation.",
            "enum": ["L", "J", "S", "Z", "T", "I", "O"],
            "required": true
        }
    }
}
</templatedata>
</noinclude>
</noinclude>

Revision as of 12:53, 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 .