Template:Icon: Difference between revisions
From Step Mods | Change The Game
TechAngel85 (talk | contribs) |
m (Text replacement - "molistoptions}}" to "molistoptions|30}}") |
||
(49 intermediate revisions by 2 users 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 | ||
|construction = Wrench_MO.png | |construction = Wrench_MO.png | ||
|enbdownload = Down1.gif | |||
|globe = Globe_MO.png | |globe = Globe_MO.png | ||
|info = Info-Logo.png | |info = Info-Logo.png | ||
Line 10: | Line 11: | ||
|moexe = Gear_MO.png | |moexe = Gear_MO.png | ||
|moglobe = Globe_MO.png | |moglobe = Globe_MO.png | ||
|mohelp = help_MO.png | |||
|moinstall = Archive_MO.png | |moinstall = Archive_MO.png | ||
|moinstance = MOInstanceManager.png | |||
|molistoptions = MOlistoptions.png | |||
|moprofile = Profiles_MO.png | |moprofile = Profiles_MO.png | ||
|moopenfolders = MOOpenFoldersMenu.png | |||
|morefresh = MOrefresh.png | |||
|mosettings = Wrench_MO.png | |mosettings = Wrench_MO.png | ||
|motools = Puzzle_mo.png | |motools = Puzzle_mo.png | ||
|moupdate = Update-MO.png | |moupdate = Update-MO.png | ||
|no = Cross_red.png | |no = Cross_red.png | ||
|save = CKSaveIcon.png | |||
|skyrim = Fomodicon.png | |skyrim = Fomodicon.png | ||
|step = Delta_c.png | |step = Delta_c.png | ||
Line 22: | Line 29: | ||
|xedit = Tes5edit.png | |xedit = Tes5edit.png | ||
|yes = Tick_green.png | |yes = Tick_green.png | ||
| | |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 | 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 58: | Line 42: | ||
! Keywords !! Result | ! Keywords !! Result | ||
|- | |- | ||
| ask || | | ask || {{icon|ask}} | ||
|- | |- | ||
| bug || | | bug || {{icon|bug}} | ||
|- | |- | ||
| | | save || {{icon|save}} | ||
|- | |- | ||
| | | construction || {{icon|construction}} | ||
|- | |- | ||
| | | enbdownload || {{icon|enbdownload}} | ||
|- | |- | ||
| | | globe || {{icon|globe}} | ||
|- | |- | ||
| | | info, information || {{icon|info}} | ||
|- | |- | ||
| | | loot || {{icon|loot}} | ||
|- | |- | ||
| | | mcm || {{icon|mcm}} | ||
|- | |- | ||
| | | no || {{icon|no}} | ||
|- | |- | ||
| | | skyrim || {{icon|skyrim}} | ||
|- | |- | ||
| | | step || {{icon|step}} | ||
|- | |- | ||
| yes || | | warn, warning || {{icon|warn}} | ||
|- | |||
| xedit || {{icon|xedit}} | |||
|- | |||
| yes || {{icon|yes}} | |||
|- | |||
| yesyellow || {{icon|yesyellow}} | |||
|} | |} | ||
Line 90: | Line 80: | ||
! Keywords !! Result | ! Keywords !! Result | ||
|- | |- | ||
| moexe || | | moexe || {{icon|moexe}} | ||
|- | |||
| moglobe || {{icon|moglobe}} | |||
|- | |||
| mohelp || {{icon|mohelp}} | |||
|- | |||
| moinstall || {{icon|moinstall}} | |||
|- | |||
| moinstance || {{icon|moinstance}}] | |||
|- | |- | ||
| | | molistoptions || {{icon|molistoptions|30}} | ||
|- | |- | ||
| | | moprofile || {{icon|moprofile}} | ||
|- | |- | ||
| | | moopenfolders || {{icon|moopenfolders}} | ||
|- | |- | ||
| | | morefresh || {{icon|morefresh}} | ||
|- | |- | ||
| | | mosettings || {{icon|mosettings}} | ||
|- | |- | ||
| moupdate || | | motools || {{icon|motools}} | ||
|- | |||
| moupdate || {{icon|moupdate}} | |||
|} | |} | ||
=== Optional Parameters === | === Optional Parameters === | ||
; size | ; size | ||
: | : Default = ''24'' | ||
: | : Defines the size of the icon in ''pixels''. | ||
== 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|type= | * <code><nowiki>{{icon|yes}}</nowiki></code> | ||
* <code><nowiki>{{icon|type= | * <code><nowiki>{{icon|info}}</nowiki></code> | ||
'''Result:'''<br> | |||
: {{icon|ask}} | |||
: {{icon|no}} | |||
: {{icon|yes}} | |||
: {{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> | '''Result:'''<br> | ||
: {{icon|type=ask | : {{icon|type=ask|size=34}} | ||
: {{icon|size=18|type=ask}} | |||
: {{icon| | |||
=== 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 == | ||
None | None | ||
</noinclude> | </noinclude> |
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