Template:MainHeroes/Icon/doc

From Gigantic Wiki
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:
Aisling
Other case: {{MainHeroes/Icon|:Category:Unreleased heroes|Unreleased}}
Results:
Unreleased