Template:Sigil: Difference between revisions

From The Talos Principle Wiki
Ta da!
 
m Uses #switch: for sizing instead of lots of #if:s.
Line 1: Line 1:
[[File:{{{1}}}-{{{2}}}-tetromino.png|{{#ifeq:{{{2}}}|L|9}}{{#ifeq:{{{2}}}|J|9}}{{#ifeq:{{{2}}}|O|9}}{{#ifeq:{{{2}}}|S|15}}{{#ifeq:{{{2}}}|Z|15}}{{#ifeq:{{{2}}}|T|14}}{{#ifeq:{{{2}}}|I|18}}px|link={{{link|}}}]]
[[File:{{{1}}}-{{{2}}}-tetromino.png|{{#switch:{{{2}}}|L=9|J=9|O=9|S=15|Z=15|T=14|I=18|10}}px|link={{{link|}}}]]
<noinclude>== Usage ==
<noinclude>== Usage ==
This produces a small tetronomio 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 tetronomio 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.  

Revision as of 05:20, 19 November 2023

[[File:{{{1}}}-{{{2}}}-tetromino.png|10px|link=]]

Usage

This produces a small tetronomio 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|Green|L}} produces .

Example: {{Sigil|Red|Z}} produces .

Example with link: {{Sigil|Red|Z|link=Ascension Awaits}} produces .