Template:MaterialInfobox: Difference between revisions

Content deleted Content added
Added missing grade 'Standard'.
Added image support
Line 6:
| 1:Grade = {{{grade|}}}
| 1:Value = {{PAGENAME}}
| 2:Type = LineMainImage
| 2:Label = GradeNULL
| 2:Value = {{{gradeModuleImage|}}}
| 3:Type = CustomLine
| 3:Label = trGrade
| 3:Value = <td colspan="2">Known uses</td>{{{grade|}}}
| 4:Type = Custom
| 3:CssClass = custom-listheader▼
| 4:Label = tr
| 4:Value = <td colspan="2">Known uses</td>
▲ | 34:CssClass = custom-listheader
| 5:Type = Custom
| 5:Label =
Line 18 ⟶ 21:
| 5:ValueMethod = TableSplitRows
| 5:CssClass = custom-list
}}
}}<includeonly>[[Category:Materials]]
{{#switch:{{lc:{{{grade|}}}}}
| common
Line 32 ⟶ 36:
| Very Rare
| Very rare = [[Category:Very rare materials]]
}}
}}</includeonly></onlyinclude>
</onlyinclude>
<noinclude>
<pre style="width: 300px">
{{CommodityInfobox
| ModuleImage =
| grade =
| knownuses =
Line 41 ⟶ 48:
</pre>
== Usage ==
;ModuleImage:The image to display in the material infobox.
;grade:The grade or rating on how difficult it is to find. Can either be "Very common", "Common", "Standard", "Rare", or "Very rare".
;knownuses:The known uses listed in the information of the material. New material are separated by semi-colon (";"). Names have to be '''exact''' in terms of both name and capitalisation. Please use [[:Category:Icon templates|icon templates]] such as {{t|Material ship}}.