Template:MainHeroes/Icon
From Gigantic Wiki
Template documentation follows |
---|
Note: the template above may sometimes be partially or fully invisible. |
Visit Template:MainHeroes/Icon/doc to edit this documentation. (How does this work?) |
- Description
- This template is used by Template:MainHeroes to provide square icons of heroes, which will link to corresponding pages and have tooltips with names. They appear on screens under 500px, replacing wider icons (portraits) of heroes provided by Template:MainHeroes/Port.
- Additional styling is applied only on root template via Template:Mainpage/styles.css (see: Extension:TemplateStyles).
- Syntax
- Type
{{MainHeroes/Icon|hero name}}
in case page title is same as the name. - Type
{{MainHeroes/Icon|page name|hero name}}
otherwise. - As for now the only case with second method is linking to Category:Unreleased heroes.
- Usage example
- Normal icon code:
{{MainHeroes/Icon|Aisling}}
- Results:
- Other case:
{{MainHeroes/Icon|:Category:Unreleased heroes|Unreleased}}
- Results: