Template:Icon/doc: Difference between revisions

Template page
m (add "class" parameter for CSS classes)
m (update documentation with style and header options)
Line 3: Line 3:
{{Icon|BlazBlue Central Fiction Ragna the Bloodedge Icon.png
{{Icon|BlazBlue Central Fiction Ragna the Bloodedge Icon.png
|imglink=Ragna the Bloodedge
|imglink=Ragna the Bloodedge
|header=goes above the icon
|caption=[[Ragna the Bloodedge]]
|caption=[[Ragna the Bloodedge]]
|width=default is 96px
|width=default is 96px
|class=CSS classes to style the div wrapper
|class=CSS classes to style the div wrapper
|style=CSS style to style the div wrapper
}}
}}
</nowiki></pre>
</nowiki></pre>
{{Icon|BlazBlue Central Fiction Ragna the Bloodedge Icon.png|imglink=Ragna the Bloodedge|caption=[[Ragna the Bloodedge]]}}<!--
{{Icon|BlazBlue Central Fiction Ragna the Bloodedge Icon.png|imglink=Ragna the Bloodedge|caption=[[Ragna the Bloodedge]]}}
-->{{Icon|BlazBlue Central Fiction Naoto Kurogane Chibi.png|imglink=Naoto Kurogane|caption=[[Naoto Kurogane|Dec 1]]}}<!--
{{Icon|BlazBlue Central Fiction Naoto Kurogane Chibi.png|imglink=Naoto Kurogane|caption=[[Naoto Kurogane|Dec 1]]}}
-->{{Icon|BlazBlue Central Fiction Platinum the Trinity Chibi.png|imglink=Platinum the Trinity|caption=[[Platinum the Trinity|Dec 13]]}}<!--
{{Icon|BlazBlue Central Fiction Platinum the Trinity Chibi.png|imglink=Platinum the Trinity|caption=[[Platinum the Trinity|Dec 13]]}}
-->{{Icon|BlazBlue Central Fiction Noel Vermillion Chibi(A).png|imglink=Noel Vermillion|caption=[[Noel Vermillion|Dec 25]]}}<!--
{{Icon|BlazBlue Central Fiction Noel Vermillion Chibi(A).png|imglink=Noel Vermillion|caption=[[Noel Vermillion|Dec 25]]}}
-->{{Icon|BlazBlue Central Fiction Nu-13 Chibi.png|imglink=Nu-13|caption=[[Nu-13|Dec 31]]}}
{{Icon|BlazBlue Central Fiction Nu-13 Chibi.png|imglink=Nu-13|caption=[[Nu-13|Dec 31]]}}
For use with [[Template:Icon Grid]]. Doesn't work as well with icons of differing heights.
{{Icon|BlazBlue Central Fiction Nu-13 Icon.png|imglink=Nu-13|caption=[[Nu-13|Dec 31]]|header=<big><b>1</b></big>}}
{{Icon|BlazBlue Central Fiction Nu-13 Icon.png|imglink=Nu-13|caption=This is a caption.|header=This is a header.}}
For use with [[Template:Icon Grid]].
<includeonly>[[Category:Templates]]</includeonly>
<includeonly>[[Category:Templates]]</includeonly>

Revision as of 04:04, 17 October 2018

Usage

{{Icon|BlazBlue Central Fiction Ragna the Bloodedge Icon.png
|imglink=Ragna the Bloodedge
|header=goes above the icon
|caption=[[Ragna the Bloodedge]]
|width=default is 96px
|class=CSS classes to style the div wrapper
|style=CSS style to style the div wrapper
}}
This is a header.
BlazBlue Central Fiction Nu-13 Icon.png
This is a caption.

For use with Template:Icon Grid.