Template:Icon: Difference between revisions
From Step Mods | Change The Game
mNo edit summary |
mNo edit summary |
||
Line 29: | Line 29: | ||
|xedit = Tes5edit.png | |xedit = Tes5edit.png | ||
|yes = Tick_green.png | |yes = Tick_green.png | ||
|yesyellow = Tick_yellow.png}}|{{{size|{{{2|24}}}}}}px | |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. This template uses anonymous parameters, but named parameters are also supported for backward compatibility. | 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. |
Revision as of 19:33, March 27, 2022
Purpose & Usage[edit source]
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[edit source]
- type
- Defined:
type=keyword
- Defines the icon that will be placed.
General Icons[edit source]
Keywords | Result |
---|---|
ask | |
bug | |
save | |
construction | |
enbdownload | |
globe | |
info, information | |
loot | |
mcm | |
no | |
skyrim | |
step | |
warn, warning | |
xedit | |
yes | |
yesyellow |
Mod Organizer Specific Icons[edit source]
Keywords | Result |
---|---|
moexe | |
moglobe | |
mohelp | |
moinstall | |
moinstance | |
molistoptons | |
moprofile | |
mopopenfolders | |
morefresh | |
mosettings | |
motools | |
moupdate |
Optional Parameters[edit source]
- size
- Default = 24
- Defines the size of the icon in pixels.
Examples[edit source]
Code:
{{icon|ask}}
{{icon|no}}
{{icon|yes}}
{{icon|info}}
Result:
Using Named Parameters[edit source]
Code:
{{icon|type=ask|size=34}}
{{icon|size=18|type=ask}}
Result:
Using Aliases[edit source]
Code:
{{icon|size=18|text=ask}}
Result:
- [[File:|18px]]
Inline[edit source]
Display the icons inline and bigger!
- Code:
{{icon|type=moinstall|size=30}} {{icon|type=moglobe|size=30}} {{icon|type=moprofile|size=30}} {{icon|type=moexe|size=30}} {{icon|type=motools|size=30}} {{icon|type=molistoptions|size=30}}
- Result:
Related Templates[edit source]
None