Template:Icon: Difference between revisions

Template page
mNo edit summary
m (add "img" as a named alt parameter to the 1st unnamed variable)
Line 2: Line 2:
--><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}}}}}; {{{style|}}}"><!--
--><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}}}}}; {{{style|}}}"><!--


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



Revision as of 02:46, 29 January 2021

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
}}
This is a header.
BlazBlue Central Fiction Nu-13 Icon.png
This is a caption.

For use with Template:Icon Grid.