More actions
(Created page with "<includeonly><!-- --><div style="display:inline-block; vertical-align:inherit; overflow-x: hidden; overflow-y: hidden; margin:.25em; line-height:normal; width:{{#if:{{{width|4...") |
m (fixed character names displaying wider than the icon) |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly><!-- | <includeonly><!-- | ||
--><div style="display:inline-block; vertical-align: | --><div style="display:inline-block; vertical-align:top; overflow-x: hidden; overflow-y: hidden; margin:.25em; line-height:normal; width:{{{width|96px}}};"><!-- | ||
-->{{#if:{{{ | -->{{#if:{{{element|}}}|<center><small>{{bbdw|{{{element|}}}}}</small></center>}}<!-- | ||
--><center><small>{{#if:{{{ | -->{{#if:{{{icon|}}}|[[File:{{{icon|}}}|link={{{pgname|}}}#{{{name|}}}|center|{{{width|96px}}}]]}}<!-- | ||
--><center><small><!-- | |||
-->{{#if:{{{pgname|}}}|[[{{{pgname|}}}#{{{name|}}}|{{{name|}}}]]|{{{name|}}}}}<br/> <!-- | |||
-->{{#if:{{{rarity|}}}|({{{rarity|}}})}} </small></center><!-- | |||
--></div></includeonly><noinclude>A simple icon template for [[Template:BBDW Character Versions]] modified from [[Template:Icon]]. Created to work with Cargo query constraints. | --></div></includeonly><noinclude>A simple icon template for [[Template:BBDW Character Versions]] modified from [[Template:Icon]]. Created to work with Cargo query constraints. | ||
==Usage== | ==Usage== | ||
<pre><nowiki> | <pre><nowiki> | ||
{{BBDW Character Versions/1 | {{BBDW Character Versions/1 | ||
| | |icon= | ||
| | |pgname= | ||
| | |name= | ||
|rarity= | |||
|element= | |||
|width=default 96px | |||
}} | }} | ||
</nowiki></pre>[[Category:Templates]] | </nowiki></pre>[[Category:Templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 15:19, 17 February 2021
A simple icon template for Template:BBDW Character Versions modified from Template:Icon. Created to work with Cargo query constraints.
Usage
{{BBDW Character Versions/1 |icon= |pgname= |name= |rarity= |element= |width=default 96px }}