Template:MaterialInfobox: Difference between revisions
Content deleted Content added
No edit summary |
|||
| (4 intermediate revisions by 2 users not shown) | |||
Line 1:
<infobox>
<title source="name"><default>{{#switch: {{{grade}}}
| 4:Value = <td colspan="2">Recipes and Unlocks</td>▼
| common
| Common = [[
| rare
| Rare = [[
| standard
| Standard = [[
| very common
| Very Common
| Very common = [[
| very rare
| Very Rare
| Very rare = [[
}}</default></title>
<image source="image"/>
<header>Classification</header>
<data source="grade"><label>Grade</label><format>{{#switch: {{{grade}}}
| common
| Common = Common (Grade 2) [[Category:Common materials]]
| rare
| Rare = Rare (Grade 4) [[Category:Rare materials]]
| standard
| Standard = Standard (Grade 3) [[Category:Standard materials]]
| very common
| Very Common
| Very common = Very Common (Grade 1) [[Category:Very common materials]]
| very rare
| Very Rare
| Very rare = Very Rare (Grade 5) [[Category:Very rare materials]]
}}</format></data>
<data source="type"><label>Type</label><format>{{#switch: {{{type}}}
| E = [[Encoded Materials|Encoded Material]] [[Category:Encoded materials]]
| M = [[Manufactured Materials|Manufactured Material]] [[Category:Manufactured materials]]
| R = [[Raw Materials|Raw Material]] [[Category:Raw materials]]
}}</format></data>
<data source="knownuses"/>
</infobox><includeonly>{{#if: {{NAMESPACE}} || [[Category:Materials]]}}</includeonly><noinclude>
Example usage:<pre>
{{MaterialInfobox
| image =
| grade =
| type =
| knownuses =
}}
</pre>
== Usage ==
;image: The image to display in the material infobox, preferably of the item as seen in the game.▼
;grade: The grade or rating on how difficult it is to find.
▲;image:The image to display in the material infobox.
;type: The type of material, which indicates its source. There are three types: "E" (Encoded/Data), "M" (Manufactured), and "R" (Raw).
;knownuses: The known uses listed in the information of the material
[[Category:Infobox templates|{{PAGENAME}}]]
</noinclude>
| |||