Difference between revisions of "Template:Infobox Weapon"

From BatWiki
Jump to: navigation, search
m (+Broadsword)
m (fixed the problem about using empty fields not creating missing categorys)
Line 3: Line 3:
 
! Stats:
 
! Stats:
 
|-  
 
|-  
| {{{stats|''Unknown'' <includeonly>[[Category:Missing stats]]</includeonly>}}}
+
| {{ #if: {{{stats|}}} | {{{stats}}} | ''Missing stats'' <includeonly>[[Category:Missing stats]]</includeonly>}}
 
|-  
 
|-  
 
! Weapon type:
 
! Weapon type:
 
|-  
 
|-  
| {{ #if: {{{type|}}} | {{{type}}}  [[Category:{{{type}}}]] | ''Not known'' }} {{ #switch: {{lc:{{{type}}}}}
+
| {{ #if: {{{type|}}} | {{{type}}}  [[Category:{{{type}}}]] | ''Missing type'' }} {{ #switch: {{lc:{{{type}}}}}
 
| aklys
 
| aklys
 
| battleaxe
 
| battleaxe
Line 71: Line 71:
 
! Weight:
 
! Weight:
 
|-  
 
|-  
| {{#if: {{{weight|}}} | [[Category:{{{weight}}}]] {{{weight}}} : | ''Weight category unknown''<includeonly>[[Category:Missing weight category]]</includeonly> :}} {{#if: {{{kg|}}}| {{{kg}}} kg | ''Weight in kg's unknown'' <includeonly>[[Category:Missing weight in kg's]]</includeonly> }}
+
| {{#if: {{{weight|}}} | [[Category:{{{weight}}}]] {{{weight}}} | ''Weight category unknown''<includeonly>[[Category:Missing weight category]]</includeonly>}}: {{#if: {{{kg|}}}| {{{kg}}} kg | ''Weight in kg's unknown'' <includeonly>[[Category:Missing weight in kg's]]</includeonly> }}
 
|-  
 
|-  
 
! Made of:
 
! Made of:
 
|-  
 
|-  
| {{{material|''Unknown'' <includeonly>[[Category:Missing material]]</includeonly>}}}
+
| {{#if: {{{material|}}} | {{{material}}} | ''Missing material'' <includeonly>[[Category:Missing material]]</includeonly>}}
 
|-  
 
|-  
 
! Quality:
 
! Quality:
 
|-  
 
|-  
| {{{quality|''Unknown'' <includeonly>[[Category:Missing quality]]</includeonly>}}}
+
| {{#if: {{{quality|}}} | {{{quality}}} | ''Missing quality'' <includeonly>[[Category:Missing quality]]</includeonly>}}
 
|-  
 
|-  
 
! Sacvalue:
 
! Sacvalue:
 
|-  
 
|-  
| {{{sacvalue|''Unknown'' <includeonly>[[Category:Missing sacvalue]]</includeonly>}}}
+
| {{#if: {{{sacvalue|}}} | {{{sacvalue}}} | ''Missing sacvalue'' <includeonly>[[Category:Missing sacvalue]]</includeonly>}}
 
|-  
 
|-  
 
! Handles:
 
! Handles:
 
|-  
 
|-  
| {{{handles|''Unknown'' <includeonly>[[Category:Missing handles]]</includeonly>}}}
+
| {{#if: {{{handles|}}} | {{{handles}}} | ''Missing handles <includeonly>[[Category:Missing handles]]</includeonly>}}
 
|-  
 
|-  
 
! From:
 
! From:
 
|-  
 
|-  
| {{{from|''Unknown'' <includeonly>[[Category:Missing where gained]]</includeonly>}}}
+
| {{#if: {{{from|}}} | {{{from}}} | ''Missing where from gained '' <includeonly>[[Category:Missing where gained]]</includeonly>}}
 
|-  
 
|-  
 
! Compares between:
 
! Compares between:
 
|-  
 
|-  
| {{{wep1|''Unknown'' <includeonly>[[Category:Missing weapon compares]]</includeonly>}}} and {{{wep2|''Unknown''}}}
+
| {{#if: {{{wep1|}}} | {{{wep1}}} | ''Unknown'' <includeonly>[[Category:Missing weapon compares]]</includeonly>}} and {{#if: {{{wep2|}}} | {{{wep2}}} | ''Unknown'' }}
 
|-  
 
|-  
 
! Desc:
 
! Desc:
 
|-  
 
|-  
| {{{desc|''No longdesc available'' <includeonly>[[Category:Missing description]]</includeonly>}}}
+
| {{#if: {{{desc|}}} | {{{desc}}} | ''Missing description '' <includeonly>[[Category:Missing description]]</includeonly>}} {{#if:{{{tale|}}}| <br>It contains a tale;<br>{{{tale}}} }}
{{#if:{{{tale|}}}| It contains a tale;
+
 
+
{{{tale}}}}}
+
 
|-  
 
|-  
 
! Other info:
 
! Other info:
 
|-  
 
|-  
| {{{other|''No other important information''}}}
+
| {{#if: {{{other|}}} | {{{other}}} |''No other important information''}}
 
|-   
 
|-   
 
| colspan="2" style="font-size: smaller;" | {{{footnotes|}}}
 
| colspan="2" style="font-size: smaller;" | {{{footnotes|}}}
 
|}
 
|}
 
<analytics uacct="UA-3466433-1" ></analytics> <noinclude>[[Category:Template]]</noinclude>
 
<analytics uacct="UA-3466433-1" ></analytics> <noinclude>[[Category:Template]]</noinclude>

Revision as of 15:49, 27 May 2008

Infobox Weapon
Stats:
Missing stats
Weapon type:
Missing type
Weight:
Weight category unknown: Weight in kg's unknown
Made of:
Missing material
Quality:
Missing quality
Sacvalue:
Missing sacvalue
Handles:
Missing handles
From:
Missing where from gained
Compares between:
Unknown and Unknown
Desc:
Missing description
Other info:
No other important information

<analytics uacct="UA-3466433-1" ></analytics>