Difference between revisions of "Template:Item"

Jump to navigation Jump to search
m
Tweak missing world tracking
m (woops comment)
m (Tweak missing world tracking)
(35 intermediate revisions by 7 users not shown)
{{infobox|title={{{title|{{PAGENAME}}|}}}|<!--id=item|
 
{{#if:{{{image|}}} |{{row/image+artist | {{{image}}} }} }}
-->{{#if:{{{type|}}}|<!--
-->{{row/kv|Type|{{#switch:{{lc:{{{type}}}|}}<!--
-->|shardblade=[[Shardblade]][[Category:Shardblades]][[Category:Weapons]]<!--
-->|weapon=Weapon[[Category:Weapons]]<!--
-->|metalmind=[[Metalmind]]<!--
-->|{{{type}}}<!--
-->}}|}}<!--
-->}}<!--
 
<!-- properties -->
owner/creator/etc.
-->{{#if:{{{creatorstype|}}} |{{row/kv|Creators Type | {{{creatorstype}}}| }} {{info/type}} }}<!--
-->|{{#if:{{{creatorfunction|}}} |{{row/kv|Creator Function |[[ {{{creatorfunction}}}]] }}| {{info/function}} }}<!--
-->}}<!--
-->{{#if:{{{owner|}}}|{{row/kv|Owner|[[{{{owner}}}]]}}|}}<!--
 
<!-- owner/creator/etc. -->
-->{{row/kv|World|{{#if:{{{world|}}}|[[{{{world}}}]]|''Unknown''|}}|}}<!--
{{#if:{{{creators|}}} |{{row/kv| Creators | {{{creators}}} }} {{info/creators}} }}
{{#if:{{{creator|}}} |{{row/kv| Creator | [[{{{creator}}}]] }} {{info/creator}} }}
{{#if:{{{owners|}}} |{{row/kv| Owners | {{{owners}}} }} {{info/owners}} }}
{{#if:{{{owner|}}} |{{row/kv| Owner | [[{{{owner}}}]] }} {{info/owner}} }}
 
<!-- world & universe -->
featured in
{{#if:{{{earth|}}} |{{row/kv| World | [[Earth ({{{earth}}})]] }} {{info/earth}} }}
-->{{row/kv|Featured In|''{{{books}}}''|}}<!--
{{#if:{{{world|}}} |{{row/kv| World | [[{{{world}}}]] }} {{info/world}} }}
{{#if:{{{'world|}}} |{{row/kv| World | {{{'world}}} }} {{raw/world}} }}
{{#if:{{{universe|}}} |{{row/kv| Universe | {{{universe}}} }} {{info/universe}} }}
 
{{#if:<!-- -->{{{earth|}}}<!-- -->{{{world|}}}<!-- -->{{{'world|}}}<!--
---->|<!-- there is a location row present
---->|{{#if:{{{universe|}}}|{{missing/world}}<!--tag with missing world-->|{{missing/world/and universe}}}}<!--tag with missing world and universe
-->}}
 
<!-- featured in -->{{row/kv| Featured In | ''{{{books}}}'' }}<!-- -->
 
<!--
 
CATS:
-->|default-cats=[[category: Objects and Materials]]<!--
-->|{{#if:{{{cats|}}}|<!-- -->|-}}replacement-cats={{{cats}}}<!--
 
END:
-->}}<noinclude>
 
ThisThe ''{{t|item}}'' infobox template allows you to describe thespecific objects, as well manyas attributesphysical ofmaterials amore charactergenerally.
 
__TOC__
 
=== Template ===
<pre class=mw-code>
{{item
|image=
|type=
|function=
|creator= / creators=
|owner= / owners=
|world=
|universe=
|books=
}}
</pre>
 
=== Parameters ===
Highlighted lines indicate '''mandatory''' parameters.
On lines with multiple parameters (e.g. <code>|world= / earth=</code>) pick only the one most appropriate.
 
{{docs|title={{t|Item}} Parameters}}
 
<!-- ---------- -->
<!-- ROW: image -->
<!-- ---------- -->
{{docs/image
|eg=
<code><nowiki>|image=Elhokar sunraiser.jpg</nowiki></code>
}}
 
<!-- --------- -->
<!-- ROW: type -->
<!-- --------- -->
{{docs/row/optional
|param=type
|desc=Use this to specify the type of item being described. Apply a category (ideally with {{t|tag+}}) if possible.
|eg=
<code><nowiki>|type={{tag+|Shardblade}}</nowiki></code><br>
<code><nowiki>|type={{cat tag|Currencies|Currency}}</nowiki></code><br>
<code><nowiki>|type=Dye</nowiki></code>
}}
 
<!-- ------------- -->
<!-- ROW: function -->
<!-- ------------- -->
{{docs/row/optional
|param= function
|desc= Use this to briefly describe the items function if the '''type''' parameter wasn't clear enough.
|eg=
<code><nowiki>|function=Indicates rank</nowiki></code>
}}
 
<!-- ----------------------- -->
<!-- ROW: creator / creators -->
<!-- ----------------------- -->
{{docs/row/optional
|'param=<code>creator</code> <br><small>or</small><br> <code>creators</code>
|desc= Use this to specify the item's creator(s).<br>
<small>'''Note:''' <code>creator</code> automatically generates a link, but <code>creators</code> does not.</small>
|eg=
<code><nowiki>|creator=Ranette</nowiki></code><br>
<code><nowiki>|creators=[[Forger]]s</nowiki></code>
}}
 
<!-- ------------------- -->
<!-- ROW: owner / owners -->
<!-- ------------------- -->
{{docs/row/optional
|'param=<code>owner</code> <br><small>or</small><br> <code>owners</code>
|desc= Use this to specify the item's ''current'' (or last known) owner(s).<br>
<small>'''Note:''' <code>owner</code> automatically generates a link, but <code>owners</code> does not.</small>
|eg=
<code><nowiki>|owner=Wyrn</nowiki></code><br>
<code><nowiki>|owners=[[Sand master]]s</nowiki></code>
}}
 
<!-- ------------------ -->
<!-- ROW: world / earth -->
<!-- ------------------ -->
{{docs/world}}
 
<!-- ------------- -->
<!-- ROW: universe -->
<!-- ------------- -->
{{docs/universe}}
 
<!-- ---------- -->
<!-- ROW: books -->
<!-- ---------- -->
{{docs/books}}
 
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:
{| class=infobox
! 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.
 
=== Categories & Tags ===
Pages that make use of the ''{{t|item}}'' template will be added to [[:Category: Objects and Materials]].
 
[[Category: Infoboxes]]
 
== Articles using Template ==
{{for|Special:WhatLinksHere/{{FULLPAGENAME}}|a full listing|here|pre=This list is limited to 100 pages.}}
{{Special:WhatLinksHere/{{FULLPAGENAME}}|namespace=0|limit=100}}

Navigation menu