Difference between revisions of "Template:Weapon"

From Stoneshard wiki
Jump to navigation Jump to search
old>Realpsojed
m (no nowrap template, trying class...)
old>Realpsojed
m (doesn't work either. Stats remade into separate table rows)
Line 6: Line 6:
-->{{ #if:{{{Damage3|}}}|{{{Damage3}}} {{{Damage3type}}} Damage<br />}}<!--
-->{{ #if:{{{Damage3|}}}|{{{Damage3}}} {{{Damage3type}}} Damage<br />}}<!--
-->{{ #if:{{{Damage4|}}}|{{{Damage4}}} {{{Damage4type}}} Damage<br />}}
-->{{ #if:{{{Damage4|}}}|{{{Damage4}}} {{{Damage4type}}} Damage<br />}}
|-
|- style="border: 0px;"
|{{ #if:{{{Stat1|}}}|<span class="nowrap">{{{Stat1}}}</span><br />}}<!--
|{{ #if:{{{Stat1|}}}|{{{Stat1}}} }}
-->{{ #if:{{{Stat2|}}}|<span class="nowrap">{{{Stat2}}}</span><br />}}<!--
|style="text-align:right;"|{{ #if:{{{Stat1value|}}}|{{{Stat1value}}} }}
-->{{ #if:{{{Stat3|}}}|<span class="nowrap">{{{Stat3}}}</span><br />}}<!--
|- style="border: 0px;"
-->{{ #if:{{{Stat4|}}}|<span class="nowrap">{{{Stat4}}}</span><br />}}<!--
|{{ #if:{{{Stat2|}}}|{{{Stat2}}} }}
-->{{ #if:{{{Stat5|}}}|<span class="nowrap">{{{Stat5}}}</span><br />}}<!--
|style="text-align:right;"|{{ #if:{{{Stat2value|}}}|{{{Stat2value}}} }}
-->{{ #if:{{{Stat6|}}}|<span class="nowrap">{{{Stat6}}}</span><br />}}<!--
|- style="border: 0px;"
-->{{ #if:{{{Stat7|}}}|<span class="nowrap">{{{Stat7}}}</span><br />}}<!--
|{{ #if:{{{Stat3|}}}|{{{Stat3}}} }}
-->{{ #if:{{{Stat8|}}}|<span class="nowrap">{{{Stat8}}}</span><br />}}<!--
|style="text-align:right;"|{{ #if:{{{Stat3value|}}}|{{{Stat3value}}} }}
-->{{ #if:{{{Stat9|}}}|<span class="nowrap">{{{Stat9}}}</span><br />}}<!--
|- style="border: 0px;"
-->{{ #if:{{{Stat10|}}}|<span class="nowrap">{{{Stat10}}}</span> }}
|{{ #if:{{{Stat4|}}}|{{{Stat4}}} }}
|style="text-align:right;"|{{ #if:{{{Stat1value|}}}|{{{Stat1value}}}<br />}}<!--
|style="text-align:right;"|{{ #if:{{{Stat4value|}}}|{{{Stat4value}}} }}
-->{{ #if:{{{Stat2value|}}}|{{{Stat2value}}}<br />}}<!--
|- style="border: 0px;"
-->{{ #if:{{{Stat3value|}}}|{{{Stat3value}}}<br />}}<!--
|{{ #if:{{{Stat5|}}}|{{{Stat5}}} }}
-->{{ #if:{{{Stat4value|}}}|{{{Stat4value}}}<br />}}<!--
|style="text-align:right;"|{{ #if:{{{Stat5value|}}}|{{{Stat5value}}} }}
-->{{ #if:{{{Stat5value|}}}|{{{Stat5value}}}<br />}}<!--
|- style="border: 0px;"
-->{{ #if:{{{Stat6value|}}}|{{{Stat6value}}}<br />}}<!--
|{{ #if:{{{Stat6|}}}|{{{Stat6}}} }}
-->{{ #if:{{{Stat7value|}}}|{{{Stat7value}}}<br />}}<!--
|style="text-align:right;"|{{ #if:{{{Stat6value|}}}|{{{Stat6value}}} }}
-->{{ #if:{{{Stat8value|}}}|{{{Stat8value}}}<br />}}<!--
|- style="border: 0px;"
-->{{ #if:{{{Stat9value|}}}|{{{Stat9value}}}<br />}}<!--
|{{ #if:{{{Stat7|}}}|{{{Stat7}}} }}
-->{{ #if:{{{Stat10value|}}}|{{{Stat10value}}} }}
|style="text-align:right;"|{{ #if:{{{Stat7value|}}}|{{{Stat7value}}} }}
|- style="border: 0px;"
|{{ #if:{{{Stat8|}}}|{{{Stat8}}} }}
|style="text-align:right;"|{{ #if:{{{Stat8value|}}}|{{{Stat8value}}} }}
|- style="border: 0px;"
|{{ #if:{{{Stat9|}}}|{{{Stat9}}} }}
|style="text-align:right;"|{{ #if:{{{Stat9value|}}}|{{{Stat9value}}} }}
|- style="border: 0px;"
|{{ #if:{{{Stat10|}}}|{{{Stat10}}} }}
|style="text-align:right;"|{{ #if:{{{Stat10value|}}}|{{{Stat10value}}} }}
|-
|-
|colspan="2"|{{ #if:{{{Durability|}}}|Durability: {{{Durability}}}/{{{Durability}}} }}
|colspan="2"|{{ #if:{{{Durability|}}}|Durability: {{{Durability}}}/{{{Durability}}} }}

Revision as of 20:43, 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: