Difference between revisions of "Template:Item"

From The Coppermind
Jump to navigation Jump to search
m
m
Line 1: Line 1:
 
{{infobox|title={{{title|{{PAGENAME}}|}}}|<!--
 
{{infobox|title={{{title|{{PAGENAME}}|}}}|<!--
   
-->{{#if:{{{type|}}}|<!--
+
-->{{#if:{{{type|}}}|{{row/kv|Type|{{{type}}}|}}|}}<!--
-->{{row/kv|Type|{{#switch:{{lc:{{{type}}}|}}<!--
 
-->|shardblade=[[Shardblade]][[Category: Shardblades]][[Category: Weapons]][[Category: Broken templates]]<!--
 
-->|weapon=Weapon[[Category: Weapons]][[Category: Broken templates]]<!--
 
-->|metalmind=[[Metalmind]][[Category: Broken templates]]<!--
 
-->|{{{type}}}<!--
 
-->}}|}}<!--
 
-->}}<!--
 
 
-->{{#if:{{{abilities|}}}|{{row/kv|Abilities|{{{abilities}}}|}}|}}<!--
 
-->{{#if:{{{abilities|}}}|{{row/kv|Abilities|{{{abilities}}}|}}|}}<!--
   
Line 28: Line 21:
 
This template allows you to describe the many attributes of an inanimate object.
 
This template allows you to describe the many attributes of an inanimate object.
   
The parameter {{{world}}} will link to the page passed. {{{books}}} will need to be formatted manually. The {{{type}}} can be any one of the following:
+
The parameter {{{world}}} will link to the page passed. {{{books}}} will need to be formatted manually. The {{{type}}} should probably use {{t|tag+}}. The ownership of an object can be specified by {{{owner}}}, and if necessary the {{{creator}}} or {{{creators}}} parameters can specify distinct creators.
  +
{| class=infobox
 
 
[[Category: Infoboxes]]
! class=title | Type
 
! class=title | Description
 
{{row|weapon|A particular weapon like a sword or spear}}
 
{{row|shardblade|A [[Shardblade]] from [[Roshar]]}}
 
{{row|metalmind|A [[Metalmind]] from [[Scadrial]]}}
 
|}
 
If the {{{type}}} passed isn't one of the above, it is outputted as is. The ownership of an object can be specified by {{{owner}}}, and if necessary the {{{creator}}} or {{{creators}}} parameters can specify distinct creators.
 
[[Category: infoboxes]]
 

Revision as of 09:26, 3 July 2014

Item
World Unknown
Featured In {{{books}}}

This template allows you to describe the many attributes of an inanimate object.

The parameter {{{world}}} will link to the page passed. {{{books}}} will need to be formatted manually. The {{{type}}} should probably use {{tag+}}. The ownership of an object can be specified by {{{owner}}}, and if necessary the {{{creator}}} or {{{creators}}} parameters can specify distinct creators.