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 (automatically center icons, fix images not having variable width)
(now using bb-wiki-nav-button in common.css)
 
(10 intermediate revisions by one other user not shown)
Line 1: Line 1:
<includeonly><!--
<includeonly><!--
--><div style="display:inline-block; vertical-align:top; overflow-x: hidden; margin:.25em; width:{{{width|96px}}};"><!--
--><div class="bb-wiki-nav-button" style="width:{{#if:{{{widths|}}}|{{{widths|}}}|{{{width|96px}}}}}; {{{style|}}}"><!--


-->[[File:{{{1|}}}|link={{{imglink|}}}|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><!--


--></div>
--></div></includeonly><noinclude>
</includeonly><noinclude>
{{Documentation}}
== Usage ==
<pre><nowiki>
{{Icon|BlazBlue Central Fiction Ragna the Bloodedge Icon.png
|imglink=Ragna the Bloodedge
|caption=[[Ragna the Bloodedge]]
}}
</nowiki></pre>
{{Icon|BlazBlue Central Fiction Ragna the Bloodedge Icon.png|imglink=Ragna the Bloodedge|caption=[[Ragna the Bloodedge]]}}
{{Icon|BlazBlue Bang Shishigami Birthday 08.jpg|imglink=Bang Shishigami|width=200px|caption=[[Bang Shishigami|Jan 1]]}}
For use with [[Template:Icon Grid]]
[[Category:Templates]]
</noinclude>
</noinclude>

Latest revision as of 22:33, 27 February 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.