Template:Icon: Difference between revisions

From Step Mods | Change The Game
No edit summary
No edit summary
Line 6: Line 6:
|yes = yes
|yes = yes
|bug = bug
|bug = bug
|construction = construction
|info = info
|information = info
|#default = ask}}</span>{{ #if: {{{sort|}}}{{{sortkey|}}} | <span class="hide">{{{sortkey|2}}} </span> }}[[File:{{#switch:{{{iconImage|{{{type}}}}}}
|#default = ask}}</span>{{ #if: {{{sort|}}}{{{sortkey|}}} | <span class="hide">{{{sortkey|2}}} </span> }}[[File:{{#switch:{{{iconImage|{{{type}}}}}}
|ask = Tango-question-mark.png
|ask = Tango-question-mark.png
Line 12: Line 13:
|yes = Tick_green.png
|yes = Tick_green.png
|bug = Bug-Logo.png
|bug = Bug-Logo.png
|construction = Construction-Logo.png
|info = Info-Logo.png
|#default = Tango-question-mark.png}}|{{{size|20}}}px| {{#switch:{{{iconText|{{{type}}}}}}
|#default = Tango-question-mark.png}}|{{{size|20}}}px| {{#switch:{{{iconText|{{{type}}}}}}
|ask = Ask/Question/Unknown
|ask = Ask/Question/Unknown
Line 18: Line 19:
|yes = Yes
|yes = Yes
|bug = Bug
|bug = Bug
|construction = Construction
|info = Information
|#default = Ask/Question/Unknown}}]]</includeonly><noinclude>__NOTOC__
|#default = Ask/Question/Unknown}}]]</includeonly><noinclude>__NOTOC__
== Purpose & Usage ==
== Purpose & Usage ==
Line 46: Line 47:




'''Code:''' <code><nowiki>{{icon|type=construction}}</nowiki></code><br>
'''Code:''' <code><nowiki>{{icon|type=info}}</nowiki></code><br>
'''Result:'''<br>
'''Result:'''<br>
: {{icon|type=construction}}
: {{icon|type=info}}


== See Also ==
== See Also ==
None
None
</noinclude>
</noinclude>

Revision as of 00:30, October 29, 2020

Purpose & Usage[edit source]

Places a pre-defined icon on the page.

Parameters[edit source]

type
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}}
  • {{icon|type=no}}
  • {{icon|type=yes}}

Result:

askAsk/Question/Unknown
noNo
yesYes


Code: {{icon|type=bug}}
Result:

bugBug


Code: {{icon|type=info}}
Result:

infoInformation

See Also[edit source]

None