Template:Icon: Difference between revisions
From Step Mods | Change The Game
TechAngel85 (talk | contribs) No edit summary |
m (Text replacement - "molistoptions}}" to "molistoptions|30}}") |
||
(104 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly>[[File:{{#switch:{{lc:{{{iconImage|{{{type|{{{1|}}}}}}}}}}} | ||
| | |||
|ask = Tango-question-mark.png | |ask = Tango-question-mark.png | ||
|bug = Bug-Logo.png | |||
|construction = Wrench_MO.png | |||
|enbdownload = Down1.gif | |||
|globe = Globe_MO.png | |||
|info = Info-Logo.png | |||
|information = Info-Logo.png | |||
|loot = Loot.png | |||
|mcm = Mcmicon1.png | |||
|moexe = Gear_MO.png | |||
|moglobe = Globe_MO.png | |||
|mohelp = help_MO.png | |||
|moinstall = Archive_MO.png | |||
|moinstance = MOInstanceManager.png | |||
|molistoptions = MOlistoptions.png | |||
|moprofile = Profiles_MO.png | |||
|moopenfolders = MOOpenFoldersMenu.png | |||
|morefresh = MOrefresh.png | |||
|mosettings = Wrench_MO.png | |||
|motools = Puzzle_mo.png | |||
|moupdate = Update-MO.png | |||
|no = Cross_red.png | |no = Cross_red.png | ||
|save = CKSaveIcon.png | |||
|skyrim = Fomodicon.png | |||
|step = Delta_c.png | |||
|warn = Warn_mo_li.png | |||
|warning = Warn_mo_li.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. | ||
=== Parameters === | === Required Parameters === | ||
; type | ; type | ||
: Defined: <code>type=keyword</code> | |||
: Defines the icon that will be placed. | : Defines the icon that will be placed. | ||
==== General Icons ==== | |||
{| class="wikitable" | |||
|- | |||
! Keywords !! Result | |||
|- | |||
| ask || {{icon|ask}} | |||
|- | |||
| 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}} | |||
|- | |||
| warn, warning || {{icon|warn}} | |||
|- | |||
| xedit || {{icon|xedit}} | |||
|- | |||
| yes || {{icon|yes}} | |||
|- | |||
| yesyellow || {{icon|yesyellow}} | |||
|} | |||
==== Mod Organizer Specific Icons ==== | |||
{| class="wikitable" | |||
|- | |||
! Keywords !! Result | |||
|- | |||
| 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}} | |||
|- | |||
| motools || {{icon|motools}} | |||
|- | |||
| moupdate || {{icon|moupdate}} | |||
|} | |||
=== Optional Parameters === | |||
; size | ; size | ||
: Defines the size of the | : Default = ''24'' | ||
: Defines the size of the icon in ''pixels''. | |||
== Examples == | == Examples == | ||
'''Code:''' <code><nowiki>{{icon| | '''Code:''' | ||
* <code><nowiki>{{icon|ask}}</nowiki></code> | |||
* <code><nowiki>{{icon|no}}</nowiki></code> | |||
* <code><nowiki>{{icon|yes}}</nowiki></code> | |||
* <code><nowiki>{{icon|info}}</nowiki></code> | |||
'''Result:'''<br> | '''Result:'''<br> | ||
: {{icon| | : {{icon|ask}} | ||
: {{icon|no}} | |||
: {{icon|yes}} | |||
: {{icon|info}} | |||
=== Using Named Parameters === | |||
'''Code:''' <code><nowiki>{{icon|type= | '''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= | : {{icon|type=ask|size=34}} | ||
: {{icon|size=18|type=ask}} | |||
=== Inline === | |||
Display the icons inline and bigger! | |||
: '''Code:''' <code><nowiki>{{icon|moinstall|30}} {{icon|moglobe|30}} {{icon|moprofile|30}} {{icon|moexe|30}} {{icon|motools|30}} {{icon|molistoptions|30}}</nowiki></code> | |||
: '''Result:''' | |||
:: {{icon|moinstall|30}} {{icon|moglobe|30}} {{icon|moprofile|30}} {{icon|moexe|30}} {{icon|motools|30}} {{icon|molistoptions|30}} | |||
== Related Templates == | |||
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