Difference between revisions of "Template:Metal/art"

From The Coppermind
Jump to navigation Jump to search
m (+cat:Infoboxes (like {{character/family}} has))
m (Add docs, because why not)
 
(One intermediate revision by the same user not shown)
Line 8: Line 8:
 
{{#if:{{{power|}}}|{{row/kv|Power|{{{power}}}}}}}
 
{{#if:{{{power|}}}|{{row/kv|Power|{{{power}}}}}}}
 
{{#if:{{{type|}}}|{{row/kv|Type|{{{type}}}}}}}
 
{{#if:{{{type|}}}|{{row/kv|Type|{{{type}}}}}}}
  +
{{#if:{{{user|}}}|{{row/kv|{{#switch:{{{art}}}|Allomancy=Misting|Feruchemy=Ferring}}|{{{user}}}}}}}
 
{{!}}}
 
{{!}}}
 
{{!}}-<noinclude>
 
{{!}}-<noinclude>
 
}}
 
}}
  +
The {{t|metal/art}} template is used for adding a subbox to the {{t|metal}} infobox with information on a metal's properties in one of the [[Metallic Arts]].
  +
  +
=== Template ===
  +
<pre class=mw-code>
  +
{{metal/art
  +
|art=
  +
|power=
  +
|type=
  +
|user=
  +
}}
  +
</pre>
  +
  +
=== Parameters ===
  +
Highlighted lines indicate '''mandatory''' parameters.
  +
  +
{{docs|title={{t|Metal}} Parameters}}
  +
  +
<!-- -------- -->
  +
<!-- ROW: art -->
  +
<!-- -------- -->
  +
{{docs/row/required
  +
|param= art
  +
|desc= Use this to specify which one of the Metallic Arts this subbox is about<br />'''Note:''' The {{t|metal}} infobox calls this template three times, one for each Metallic Art; the values for this parameter are hard-coded in that template
  +
|eg=
  +
<code><nowiki>|art=Allomancy</nowiki></code><br />
  +
<code><nowiki>|art=Feruchemy</nowiki></code><br />
  +
<code><nowiki>|art=Hemalurgy</nowiki></code>
  +
}}
  +
  +
<!-- ---------- -->
  +
<!-- ROW: power -->
  +
<!-- ---------- -->
  +
{{docs/row/optional
  +
|param= power
  +
|desc= Use this to specify the metal's power in the relevant Metallic Art
  +
|eg=
  +
<code><nowiki>|power={{{allomancy|}}}</nowiki></code><br />
  +
<code><nowiki>|power=Store wakefulness</nowiki></code><br />
  +
}}
  +
  +
<!-- --------- -->
  +
<!-- ROW: type -->
  +
<!-- --------- -->
  +
{{docs/row/optional
  +
|param= type
  +
|desc= Use this to specify how the metal is categorized in the relevant Metallic Art
  +
|eg=
  +
<code><nowiki>|type={{{type-a|}}}</nowiki></code><br />
  +
<code><nowiki>|type=Cognitive</nowiki></code><br />
  +
}}
  +
  +
<!-- --------- -->
  +
<!-- ROW: user -->
  +
<!-- --------- -->
  +
{{docs/row/optional
  +
|param= user
  +
|desc= Use this to specify how the name for someone who can use this metal in the relevant Metallic Art<br />'''Note:''' The row generated by this parameter uses the <code><nowiki>{{{art}}}</nowiki></code> parameter to decide the title of the row (e.g. if passed <code>art=Allomancy</code>, the title of the row will be "Misting"); currently it is only valid for Allomancy and Feruchemy
  +
|eg=
  +
<code><nowiki>|user={{{misting|}}}</nowiki></code><br />
  +
<code><nowiki>|user=Sentry</nowiki></code><br />
  +
}}
  +
  +
|}
  +
 
[[Category: Infoboxes]]
 
[[Category: Infoboxes]]

Latest revision as of 16:37, 6 August 2020

Metal subbox
[[{{{art}}}]]

The {{metal/art}} template is used for adding a subbox to the {{metal}} infobox with information on a metal's properties in one of the Metallic Arts.

Template[edit]

{{metal/art
|art=
|power=
|type=
|user=
}}

Parameters[edit]

Highlighted lines indicate mandatory parameters.

{{Metal}} Parameters
Parameter Description Examples
art Use this to specify which one of the Metallic Arts this subbox is about
Note: The {{metal}} infobox calls this template three times, one for each Metallic Art; the values for this parameter are hard-coded in that template

|art=Allomancy
|art=Feruchemy
|art=Hemalurgy

power Use this to specify the metal's power in the relevant Metallic Art

|power={{{allomancy|}}}
|power=Store wakefulness

type Use this to specify how the metal is categorized in the relevant Metallic Art

|type={{{type-a|}}}
|type=Cognitive

user Use this to specify how the name for someone who can use this metal in the relevant Metallic Art
Note: The row generated by this parameter uses the {{{art}}} parameter to decide the title of the row (e.g. if passed art=Allomancy, the title of the row will be "Misting"); currently it is only valid for Allomancy and Feruchemy

|user={{{misting|}}}
|user=Sentry