Difference between revisions of "Template:Icon"

(Test)
m
 
(5 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
<!--Currency-->
 
<!--Currency-->
 
| currency = {{#switch:{{{2|}}}
 
| currency = {{#switch:{{{2|}}}
   |gold = [[File:Gold Icon.png|18px]] Gold
+
   |gold = [[File:Gold Icon.png|18px]]
   |medal = [[File:Defender Medal Icon.png|18px]] Medals
+
   |medal = [[File:Defender Medal Icon.png|18px]]
   |gem = [[File:Gem Icon.png|18px]] Gems
+
   |gem = [[File:Gem Icon.png|18px]]
 
}}
 
}}
 
<!--rarity-->
 
<!--rarity-->
Line 15: Line 15:
 
   |legendary = <span style="color:#FFF380"> [[File:Legendary Icon.png|18px]] Legendary </span>
 
   |legendary = <span style="color:#FFF380"> [[File:Legendary Icon.png|18px]] Legendary </span>
 
   |godly = <span style="color:#40E0D0"> [[File:Godly Icon.png|18px]] Godly </span>
 
   |godly = <span style="color:#40E0D0"> [[File:Godly Icon.png|18px]] Godly </span>
   |ancient = <span style="color:#FF0038"> [[File:Godly Icon.png|18px]] Ancient </span>
+
   |ancient = <span style="color:#DD1F13"> [[File:Ancient Icon.png|18px]] Ancient </span>
 +
}}
 +
<!--checkbox-->
 +
| checkbox = {{#switch:{{{2|}}}
 +
  |yes = [[File:TickGreen.png]]
 +
  |no = [[File:CrossWhite.png]]
 
}}
 
}}
 
}}<!--
 
}}<!--
  
 
--><noinclude>
 
--><noinclude>
{| style="text-align: center; width:50%;"
+
{| style="text-align: center; width:75%;"
 
|-
 
|-
 
|
 
|
'''Usage:''' <br> <code><nowiki>{{</nowiki>Icon|''input''|''size''<nowiki>}}</nowiki></code>
+
'''Usage:''' <br> <code><nowiki>{{</nowiki>Icon|''category''|''type''<nowiki>}}</nowiki></code>
 
||
 
||
'''Example:''' <br> <code><nowiki>{{</nowiki>Icon|Powerful|30px<nowiki>}}</nowiki></code>
+
'''Example:''' <br> <code><nowiki>{{</nowiki>Icon|rarity|powerful<nowiki>}}</nowiki></code>
 
|}
 
|}
  
* Size is optional. The default will always be '''18px'''.
+
* Current default size will always be '''18px'''.
 
* Accepted inputs are not case-sensitive. But for consistency, probably best to stick to having the first letter of each input in upper-case.
 
* Accepted inputs are not case-sensitive. But for consistency, probably best to stick to having the first letter of each input in upper-case.
 +
* Only the rarity category will automatically have the wording beside their respective icons.
  
 
=== Available Inputs ===
 
=== Available Inputs ===
{| class="wikitable" style="width:50%;"
+
{| class="wikitable" style="width:75%;"
 
|-
 
|-
! Currency !! Rarity
+
! Currency !! Rarity !! Checkbox
 
|-
 
|-
|style="vertical-align: top;"|
+
|style="vertical-align: top; width:25%;"|
{{Icon|A = Gold}} Gold
+
{{Icon|currency|gold}} Gold
 +
 
 +
{{Icon|currency|medal}} Defender Medal
  
{{Icon|A = Medal|30px}} Medal
+
{{Icon|currency|gem}} Gem
 +
|style="vertical-align: top;width:25%;"|
 +
{{Icon|rarity|worn}}
  
{{Icon|A = Gem|30px}} Gem
+
{{Icon|rarity|sturdy}}
|style="vertical-align: top;"|
 
{{Icon|B = Worn|30px}} Worn
 
  
{{Icon|B = Sturdy|30px}} Sturdy
+
{{Icon|rarity|powerful}}
  
{{Icon|B = Powerful|30px}} Powerful
+
{{Icon|rarity|epic}}
  
{{Icon|B = Epic|30px}} Epic
+
{{Icon|rarity|mythical}}
  
{{Icon|B = Mythical|30px}} Mythical
+
{{Icon|rarity|legendary}}
  
{{Icon|B =Legendary|30px}} Legendary
+
{{Icon|rarity|godly}}
  
{{Icon|B = Godly|30px}} Godly
+
{{Icon|rarity|ancient}}
 +
|style="vertical-align: top; width:25%;"|
 +
{{Icon|checkbox|yes}} Yes
  
{{Icon|B = Ancient|30px}} Ancient
+
{{Icon|checkbox|no}} No
 
|}
 
|}
 
__NOEDITSECTION__
 
__NOEDITSECTION__
 
</noinclude>
 
</noinclude>

Latest revision as of 14:04, 22 June 2026

Usage:
{{Icon|category|type}}

Example:
{{Icon|rarity|powerful}}

  • Current default size will always be 18px.
  • Accepted inputs are not case-sensitive. But for consistency, probably best to stick to having the first letter of each input in upper-case.
  • Only the rarity category will automatically have the wording beside their respective icons.

Available Inputs

Currency Rarity Checkbox

Gold Icon.png Gold

Defender Medal Icon.png Defender Medal

Gem Icon.png Gem

Worn Icon.png Worn

Sturdy Icon.png Sturdy

Powerful Icon.png Powerful

Epic Icon.png Epic

Mythical Icon.png Mythical

Legendary Icon.png Legendary

Godly Icon.png Godly

Ancient Icon.png Ancient

TickGreen.png Yes

CrossWhite.png No