Template:Icon: Difference between revisions
From Step Mods | Change The Game
TechAngel85 (talk | contribs) No edit summary |
TechAngel85 (talk | contribs) No edit summary |
||
Line 7: | Line 7: | ||
|#default = Tango-question-mark.png}}{{#switch:{{{iconText|{{{type}}}}}} | |#default = Tango-question-mark.png}}{{#switch:{{{iconText|{{{type}}}}}} | ||
|ask = Ask/Question/Unknown | |ask = Ask/Question/Unknown | ||
|#default = Ask/Question/Unknown}}{{ #if: {{{sort|}}}{{{sortkey|}}} | <span class="hide">{{{sortkey|2}}} </span> }}[[File:{{{iconImage}}}|{{{size|20}}}px|{{{iconText}}}]]</includeonly><noinclude>__NOTOC__ | |#default = Ask/Question/Unknown}}{{ #if: {{{sort|}}}{{{sortkey|}}} | <span class="hide">{{{sortkey|2}}} </span> }}[[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:44, 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:
askTango-question-mark.pngAsk/Question/Unknown[[File:|20px|]]
See Also[edit source]
None