Template:Icon: Difference between revisions
From Step Mods | Change The Game
mNo edit summary |
m (Text replacement - "molistoptions}}" to "molistoptions|30}}") |
||
(15 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>[[File:{{#switch:{{lc:{{{iconImage|{{{type}}}}}}}} | <includeonly>[[File:{{#switch:{{lc:{{{iconImage|{{{type|{{{1|}}}}}}}}}}} | ||
|ask = Tango-question-mark.png | |ask = Tango-question-mark.png | ||
|bug = Bug-Logo.png | |bug = Bug-Logo.png | ||
Line 29: | Line 29: | ||
|xedit = Tes5edit.png | |xedit = Tes5edit.png | ||
|yes = Tick_green.png | |yes = Tick_green.png | ||
|yesyellow = Tick_yellow.png}}|{{{size | |yesyellow = Tick_yellow.png}}|{{{size|{{{2|24}}}}}}px]]</includeonly><noinclude>__NOTOC__[[Category:Graphics Templates]][https://stepmodifications.org/forum/topic/15290-icon/ '''Forum Topic'''] | ||
== Purpose & Usage == | == Purpose & Usage == | ||
Places a pre-defined icon on a wiki page. Can be used anywhere <nowiki>[[File:Name.Ext]]</nowiki> can be. | Places a pre-defined icon on a wiki page. Can be used anywhere <nowiki>[[File:Name.Ext]]</nowiki> can be. This template uses anonymous parameters, but named parameters are also supported for backward compatibility. | ||
=== Required Parameters === | === Required Parameters === | ||
Line 72: | Line 42: | ||
! Keywords !! Result | ! Keywords !! Result | ||
|- | |- | ||
| ask || | | ask || {{icon|ask}} | ||
|- | |- | ||
| bug || | | bug || {{icon|bug}} | ||
|- | |- | ||
| save || | | save || {{icon|save}} | ||
|- | |- | ||
| construction || | | construction || {{icon|construction}} | ||
|- | |- | ||
| enbdownload || | | enbdownload || {{icon|enbdownload}} | ||
|- | |- | ||
| globe || | | globe || {{icon|globe}} | ||
|- | |- | ||
| info, information || | | info, information || {{icon|info}} | ||
|- | |- | ||
| loot || | | loot || {{icon|loot}} | ||
|- | |- | ||
| mcm || | | mcm || {{icon|mcm}} | ||
|- | |- | ||
| no || | | no || {{icon|no}} | ||
|- | |- | ||
| skyrim || | | skyrim || {{icon|skyrim}} | ||
|- | |- | ||
| step || | | step || {{icon|step}} | ||
|- | |- | ||
| warn, warning || | | warn, warning || {{icon|warn}} | ||
|- | |- | ||
| xedit || | | xedit || {{icon|xedit}} | ||
|- | |- | ||
| yes || | | yes || {{icon|yes}} | ||
|- | |- | ||
| yesyellow || | | yesyellow || {{icon|yesyellow}} | ||
|} | |} | ||
Line 110: | Line 80: | ||
! Keywords !! Result | ! Keywords !! Result | ||
|- | |- | ||
| moexe || | | moexe || {{icon|moexe}} | ||
|- | |- | ||
| moglobe || | | moglobe || {{icon|moglobe}} | ||
|- | |- | ||
| mohelp || | | mohelp || {{icon|mohelp}} | ||
|- | |- | ||
| moinstall || | | moinstall || {{icon|moinstall}} | ||
|- | |- | ||
| moinstance || | | moinstance || {{icon|moinstance}}] | ||
|- | |- | ||
| | | molistoptions || {{icon|molistoptions|30}} | ||
|- | |- | ||
| moprofile || | | moprofile || {{icon|moprofile}} | ||
|- | |- | ||
| | | moopenfolders || {{icon|moopenfolders}} | ||
|- | |- | ||
| morefresh || | | morefresh || {{icon|morefresh}} | ||
|- | |- | ||
| mosettings || | | mosettings || {{icon|mosettings}} | ||
|- | |- | ||
| motools || | | motools || {{icon|motools}} | ||
|- | |- | ||
| moupdate || | | moupdate || {{icon|moupdate}} | ||
|} | |} | ||
Line 142: | Line 112: | ||
== Examples == | == Examples == | ||
'''Code:''' | '''Code:''' | ||
* <code><nowiki>{{icon| | * <code><nowiki>{{icon|ask}}</nowiki></code> | ||
* <code><nowiki>{{icon| | * <code><nowiki>{{icon|no}}</nowiki></code> | ||
* <code><nowiki>{{icon| | * <code><nowiki>{{icon|yes}}</nowiki></code> | ||
* <code><nowiki>{{icon| | * <code><nowiki>{{icon|info}}</nowiki></code> | ||
'''Result:'''<br> | '''Result:'''<br> | ||
: {{icon|type=ask}} | : {{icon|ask}} | ||
: {{icon|no}} | |||
: {{icon|type= | : {{icon|yes}} | ||
: {{icon|type= | : {{icon|info}} | ||
=== Using Named Parameters === | |||
'''Code:''' | |||
* <code><nowiki>{{icon|type=ask|size=34}}</nowiki></code> | |||
* <code><nowiki>{{icon|size=18|type=ask}}</nowiki></code> | |||
'''Result:'''<br> | |||
: {{icon|type=ask|size=34}} | |||
: {{icon|size=18|type=ask}} | |||
=== Inline === | === Inline === | ||
Display the icons inline and bigger! | Display the icons inline and bigger! | ||
: '''Code:''' <code><nowiki>{{icon| | : '''Code:''' <code><nowiki>{{icon|moinstall|30}} {{icon|moglobe|30}} {{icon|moprofile|30}} {{icon|moexe|30}} {{icon|motools|30}} {{icon|molistoptions|30}}</nowiki></code> | ||
: '''Result:''' | : '''Result:''' | ||
:: {{icon| | :: {{icon|moinstall|30}} {{icon|moglobe|30}} {{icon|moprofile|30}} {{icon|moexe|30}} {{icon|motools|30}} {{icon|molistoptions|30}} | ||
== Related Templates == | == Related Templates == |
Latest revision as of 19:47, March 27, 2022
Purpose & Usage
Places a pre-defined icon on a wiki page. Can be used anywhere [[File:Name.Ext]] can be. This template uses anonymous parameters, but named parameters are also supported for backward compatibility.
Required Parameters
- type
- Defined:
type=keyword
- Defines the icon that will be placed.
General Icons
Keywords | Result |
---|---|
ask | |
bug | |
save | |
construction | |
enbdownload | |
globe | |
info, information | |
loot | |
mcm | |
no | |
skyrim | |
step | |
warn, warning | |
xedit | |
yes | |
yesyellow |
Mod Organizer Specific Icons
Keywords | Result |
---|---|
moexe | |
moglobe | |
mohelp | |
moinstall | |
moinstance | ] |
molistoptions | |
moprofile | |
moopenfolders | |
morefresh | |
mosettings | |
motools | |
moupdate |
Optional Parameters
- size
- Default = 24
- Defines the size of the icon in pixels.
Examples
Code:
{{icon|ask}}
{{icon|no}}
{{icon|yes}}
{{icon|info}}
Result:
Using Named Parameters
Code:
{{icon|type=ask|size=34}}
{{icon|size=18|type=ask}}
Result:
Inline
Display the icons inline and bigger!
- Code:
{{icon|moinstall|30}} {{icon|moglobe|30}} {{icon|moprofile|30}} {{icon|moexe|30}} {{icon|motools|30}} {{icon|molistoptions|30}}
- Result:
Related Templates
None