Template:Icon: Difference between revisions

From Step Mods | Change The Game
No edit summary
No edit summary
Line 4: Line 4:
|unknown = ask
|unknown = ask
|#default = ask}}
|#default = ask}}
{{#switch:{{lc:{{{iconImage|{{{icon}}}}}}}}
{{#switch:{{lc:{{{iconImage|{{{type}}}}}}}}
|ask = Tango-question-mark.png
|ask = Tango-question-mark.png
|#default = Tango-question-mark.png}}
|#default = Tango-question-mark.png}}
{{#switch:{{lc:{{{iconText|{{{icon}}}}}}}}
{{#switch:{{lc:{{{iconText|{{{type}}}}}}}}
|ask = Ask/Question/Unknown
|ask = Ask/Question/Unknown
|#default = Ask/Question/Unknown}}
|#default = Ask/Question/Unknown}}

Revision as of 23:35, October 28, 2020

Purpose & Usage[edit source]

Places a pre-defined icon on the page.

Parameters[edit source]

icon
Defines the icon that will be placed.
size
Defines the size of the image in pixels. Default=20

Examples[edit source]

Code: {{icon|type=ask}}
Result:
ask Tango-question-mark.png Ask/Question/Unknown [[File:{{{icon}}}|20px|{{{icon}}}]]

See Also[edit source]

None