Template:Icon: Difference between revisions
From Step Mods | Change The Game
TechAngel85 (talk | contribs) No edit summary |
TechAngel85 (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{ #if: {{{sort|}}}{{{sortkey|}}} | <span class="hide">{{{sortkey|2}}} </span> }}[[File:{{lc:{{#switch:{{{iconImage|{{{type | <includeonly>{{ #if: {{{sort|}}}{{{sortkey|}}} | <span class="hide">{{{sortkey|2}}} </span> }}[[File:{{lc:{{#switch:{{{iconImage|{{{type}}}}}} | ||
|ask = Tango-question-mark.png | |ask = Tango-question-mark.png | ||
|bug = Bug-Logo.png | |bug = Bug-Logo.png | ||
Line 19: | Line 19: | ||
|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|{{lc:{{#switch:{{{iconText|{{{type | |#default = Tango-question-mark.png}}]]|{{{size|20}}}px|{{lc:{{#switch:{{{iconText|{{{type}}}}}} | ||
|ask = Ask/Question/Unknown | |ask = Ask/Question/Unknown | ||
|bug = Bug | |bug = Bug | ||
Line 39: | Line 39: | ||
|warning = Warning | |warning = Warning | ||
|yes = Yes | |yes = Yes | ||
|#default = Ask/Question/Unknown}}]]</includeonly><noinclude>__NOTOC__ | |#default = Ask/Question/Unknown}}}}]]</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 01:10, 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:
- [[File:{{lc:Tango-question-mark.png]]|20px|ask/question/unknown]]
- [[File:{{lc:Cross_red.png]]|20px|no]]
- [[File:{{lc:Tick_green.png]]|20px|yes]]
- [[File:{{lc:Bug-Logo.png]]|20px|bug]]
- [[File:{{lc:Info-Logo.png]]|20px|information]]
- [[File:{{lc:Warn_mo_li.png]]|20px|warning]]
- [[File:{{lc:Wrench_MO.png]]|20px|construction]]
- [[File:{{lc:Archive_MO.png]]|20px|mo install archive]]
- [[File:{{lc:Profiles_MO.png]]|20px|mo profiles]]
- [[File:{{lc:Gear_MO.png]]|20px|mo executables]]
- [[File:{{lc:Puzzle_mo.png]]|20px|mo tools]]
- [[File:{{lc:Mcmicon1.png]]|20px|mod configuration menu]]
Code: {{icon|type=moglobe}}
Result:
- [[File:{{lc:Globe_MO.png]]|20px|mo nexus]]
See Also[edit source]
None