Template:Guild Icon: Difference between revisions

From HorizonXI Wiki
No edit summary
Tag: visualeditor-wikitext
No edit summary
Tag: visualeditor-wikitext
 
Line 1: Line 1:
<includeonly>{{#if:{{{1|}}}|[[File:{{#ifeq:{{lc:{{{1|}}}}}{{#switch:{{lc:{{{1|}}}}}
<includeonly>{{#if:{{{1|}}}|[[File:{{#ifeq:{{lc:{{{1|}}}}}|synergy|SynergyIcon|{{#switch:{{lc:{{{1|}}}}}
| fishing = FishingIcon
| fishing = FishingIcon
| bonecraft = BonecraftIcon
| bonecraft = BonecraftIcon
Line 9: Line 9:
| woodworking = WoodworkingIcon
| woodworking = WoodworkingIcon
| alchemy = AlchemyIcon
| alchemy = AlchemyIcon
| synergy = SynergyIcon
}}}}.png|{{{size|15px}}}|{{{hovertext|{{ucfirst:{{lc:{{{1|}}}}}}}}}}|link={{{link|:Category:{{ucfirst:{{lc:{{{1|}}}}}}}}}}|alt={{{alt|{{ucfirst:{{lc:{{{1|}}}&nbsp;}}}}}}}]]}}</includeonly><noinclude>
}}}}.png|{{{size|15px}}}|{{{hovertext|{{ucfirst:{{lc:{{{1|}}}}}}}}}}|link={{{link|:Category:{{ucfirst:{{lc:{{{1|}}}}}}}}}}|alt={{{alt|{{ucfirst:{{lc:{{{1|}}}&nbsp;}}}}}}}]]}}</includeonly><noinclude>
[[Category:Templates|{{PAGENAMEE}}]]
[[Category:Templates|{{PAGENAMEE}}]]

Latest revision as of 06:06, 19 August 2022

Usage

{{Guild Icon|<guild>}}
{{Guild Icon|<guild>
| size = 
| hovertext = 
| link = 
| alt =
}}

Displays an icon of the guild which links to the respective craft page.

  • guild: The guild to link to. Accepts "fishing", "bonecraft", "clothcraft", "smithing", "goldsmithing", "cooking", "leathercraft", "woodworking", "alchemy", and "synergy".
  • size: The size of the icon. Optional
  • hovertext: The text to display when hovering over the icon.
  • link: The page to link to when the icon is clicked.
  • alt: The alternative text to display if the icon cannot be loaded.

Examples

Code Result
{{Guild Icon|Fishing}}
Fishing 
{{Guild Icon|Bonecraft}}
Bonecraft 
{{Guild Icon|Clothcraft}}
Clothcraft 
{{Guild Icon|Smithing}}
Smithing 
{{Guild Icon|Goldsmithing}}
Goldsmithing 
{{Guild Icon|Cooking}}
Cooking 
{{Guild Icon|Leathercraft}}
Leathercraft 
{{Guild Icon|Woodworking}}
Woodworking 
{{Guild Icon|Alchemy}}
Alchemy 
{{Guild Icon|Synergy}}
Synergy