Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Icon: Difference between revisions

Template page
m (add "widths" for fixing the width of the icon wrapper when "width" is being used to specify a height for the icon)
m (format)
Line 1: Line 1:
<includeonly><!--
<includeonly><!--
--><div class="{{{class|}}}" style="display:inline-block; vertical-align:inherit; overflow-x: hidden; overflow-y: hidden; margin:.25em; width:{{#if:{{{widths|}}}|{{{widths|}}}|{{{width|96px}}}}};"><!--
--><div class="{{{class|}}}" style="display:inline-block; vertical-align:inherit; overflow-x: hidden; overflow-y: hidden; margin:.25em; line-height:normal; width:{{#if:{{{widths|}}}|{{{widths|}}}|{{{width|96px}}}}};"><!--


-->{{#if:{{{1|}}}|[[File:{{{1|}}}|link={{{imglink|File:{{{1}}}}}}|center|{{{width|96px}}}]]}}<!--
-->{{#if:{{{1|}}}|[[File:{{{1|}}}|link={{{imglink|File:{{{1}}}}}}|center|{{{width|96px}}}]]}}<!--

Revision as of 20:02, 11 September 2018

Documentation icon Template documentation[view] [edit] [history] [purge]

Usage

{{Icon|BlazBlue Central Fiction Ragna the Bloodedge Icon.png
|img=(named alt of {{{1|}}}) for Cargo queries
|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
}}
BlazBlue Central Fiction Nu-13 Icon.png
This is a caption.

For use with Template:Icon Grid.