Template:Icon: Difference between revisions

From Step Mods | Change The Game
No edit summary
No edit summary
Line 1: Line 1:
<includeonly><span class="hide">{{#switch:{{lc:{{{type|}}}}}
<includeonly>{{ #if: {{{sort|}}}{{{sortkey|}}} | <span class="hide">{{{sortkey|2}}} </span> }}[[File:{{#switch:{{{iconImage|{{{type}}}}}}
|ask = ask
|bug = bug
|construction = construction
|globe = moglobe
|info = info
|information = info
|moglobe = moglobe
|mosettings = construction
|moupdate = moupdate
|no = no
|question = ask
|unknown = ask
|warning = warning
|warn = warning
|yes = yes
|#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
|bug = Bug-Logo.png
|bug = Bug-Logo.png
|construction = Wrench_MO.png
|construction = Wrench_MO.png
|globe = Globe_MO.png
|info = Info-Logo.png
|info = Info-Logo.png
|information = Info-Logo.png
|moglobe = Globe_MO.png
|moglobe = Globe_MO.png
|mosettings = Wrench_MO.png
|moupdate = Update-MO.png
|moupdate = Update-MO.png
|no = Cross_red.png
|no = Cross_red.png
|warn = Warn_mo_li.png
|warning = Warn_mo_li.png
|warning = Warn_mo_li.png
|yes = Tick_green.png
|yes = Tick_green.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
|no = No
|yes = Yes
|bug = Bug
|bug = Bug
|construction = Construction
|info = Information
|info = Information
|construction = Construction
|moglobe = MO Nexus
|moglobe = MO Nexus
|moupdate = MO Update
|moupdate = MO Update
|no = No
|warning = Warning
|warning = Warning
|yes = Yes
|#default = Ask/Question/Unknown}}]]</includeonly><noinclude>__NOTOC__
|#default = Ask/Question/Unknown}}]]</includeonly><noinclude>__NOTOC__
== Purpose & Usage ==
== Purpose & Usage ==

Revision as of 00:56, October 29, 2020

Purpose & Usage[edit source]

Places a pre-defined icon on the page.

Parameters[edit source]

Required[edit source]

type
Defines the icon that will be placed.

Optional[edit source]

size
Defines the size of the image in pixels. Default=20

Examples[edit source]

Code:

  • {{icon|type=ask}}
  • {{icon|type=no}}
  • {{icon|type=yes}}
  • {{icon|type=bug}}
  • {{icon|type=info}}

Result:

Ask/Question/Unknown
No
Yes
Bug
Information
Warning
Construction


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

MO Nexus

Code: {{icon|type=globe|size=60}}
Result:

Ask/Question/Unknown

See Also[edit source]

None