Difference between revisions of "Template:Weapon"

From Stoneshard wiki
Jump to navigation Jump to search
old>Realpsojed
m (changed to nowrap instead)
old>Realpsojed
m (no nowrap template, trying class...)
Line 7: Line 7:
-->{{ #if:{{{Damage4|}}}|{{{Damage4}}} {{{Damage4type}}} Damage<br />}}
-->{{ #if:{{{Damage4|}}}|{{{Damage4}}} {{{Damage4type}}} Damage<br />}}
|-
|-
|{{ #if:{{{Stat1|}}}|{{nowrap begin}}{{{Stat1}}}{{nowrap end}}<br />}}<!--
|{{ #if:{{{Stat1|}}}|<span class="nowrap">{{{Stat1}}}</span><br />}}<!--
-->{{ #if:{{{Stat2|}}}|{{nowrap begin}}{{{Stat2}}}{{nowrap end}}<br />}}<!--
-->{{ #if:{{{Stat2|}}}|<span class="nowrap">{{{Stat2}}}</span><br />}}<!--
-->{{ #if:{{{Stat3|}}}|{{nowrap begin}}{{{Stat3}}}{{nowrap end}}<br />}}<!--
-->{{ #if:{{{Stat3|}}}|<span class="nowrap">{{{Stat3}}}</span><br />}}<!--
-->{{ #if:{{{Stat4|}}}|{{nowrap begin}}{{{Stat4}}}{{nowrap end}}<br />}}<!--
-->{{ #if:{{{Stat4|}}}|<span class="nowrap">{{{Stat4}}}</span><br />}}<!--
-->{{ #if:{{{Stat5|}}}|{{nowrap begin}}{{{Stat5}}}{{nowrap end}}<br />}}<!--
-->{{ #if:{{{Stat5|}}}|<span class="nowrap">{{{Stat5}}}</span><br />}}<!--
-->{{ #if:{{{Stat6|}}}|{{nowrap begin}}{{{Stat6}}}{{nowrap end}}<br />}}<!--
-->{{ #if:{{{Stat6|}}}|<span class="nowrap">{{{Stat6}}}</span><br />}}<!--
-->{{ #if:{{{Stat7|}}}|{{nowrap begin}}{{{Stat7}}}{{nowrap end}}<br />}}<!--
-->{{ #if:{{{Stat7|}}}|<span class="nowrap">{{{Stat7}}}</span><br />}}<!--
-->{{ #if:{{{Stat8|}}}|{{nowrap begin}}{{{Stat8}}}{{nowrap end}}<br />}}<!--
-->{{ #if:{{{Stat8|}}}|<span class="nowrap">{{{Stat8}}}</span><br />}}<!--
-->{{ #if:{{{Stat9|}}}|{{nowrap begin}}{{{Stat9}}}{{nowrap end}}<br />}}<!--
-->{{ #if:{{{Stat9|}}}|<span class="nowrap">{{{Stat9}}}</span><br />}}<!--
-->{{ #if:{{{Stat10|}}}|{{nowrap begin}}{{{Stat10}}}{{nowrap end}} }}
-->{{ #if:{{{Stat10|}}}|<span class="nowrap">{{{Stat10}}}</span> }}
|style="text-align:right;"|{{ #if:{{{Stat1value|}}}|{{{Stat1value}}}<br />}}<!--
|style="text-align:right;"|{{ #if:{{{Stat1value|}}}|{{{Stat1value}}}<br />}}<!--
-->{{ #if:{{{Stat2value|}}}|{{{Stat2value}}}<br />}}<!--
-->{{ #if:{{{Stat2value|}}}|{{{Stat2value}}}<br />}}<!--

Revision as of 20:17, 12 February 2020

Template-info.png Documentation

This is weapon template created for use together with the Template:Tooltip hover box template to display tooltip with item attributes for weapons.

Usage: Copy this code to any page where you want to display the item tooltip:

{{{{{1|Tooltip hover box}}}|title={{Weapon}}}}

You can provide the item name as first parameter, otherwise the pagename is used.

By default, the page is also labelled with a category corresponding to the item type (ie. Heavy Aldorian Bow will receive the Category: Bow). If you don't want to add this category to a page, add the category parameter:

{{{{{1|Tooltip hover box}}}|title={{Weapon|Heavy Aldorian Bow|category=no}}}}

Examples: