Template:Icon: Difference between revisions

From Step Mods | Change The Game
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>{{#switch:{{{iconImage|{{{type}}}}}}
<includeonly>[[File:{{#switch:{{{iconImage|{{{type}}}}}}
|ask = Tango-question-mark.png
|ask = Tango-question-mark.png
|#default = Tango-question-mark.png}}{{#switch:{{{iconText|{{{type}}}}}}
|#default = Tango-question-mark.png}}|{{{size|20}}}px| {{#switch:{{{iconText|{{{type}}}}}}
|ask = Ask/Question/Unknown
|ask = Ask/Question/Unknown
|#default = Ask/Question/Unknown}}
|#default = Ask/Question/Unknown}}]]</includeonly><noinclude>__NOTOC__
[[File:{{{iconImage|}}}|{{{size|20}}}px| {{{iconText|}}}]]</includeonly><noinclude>__NOTOC__
== Purpose & Usage ==
== Purpose & Usage ==
Places a pre-defined icon on the page.
Places a pre-defined icon on the page.

Revision as of 23:50, 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/Question/Unknown

See Also[edit source]

None