Template:MaterialInfobox: Difference between revisions
Appearance
Content deleted Content added
Added missing grade 'Standard'. |
Added image support |
||
| Line 6: | Line 6: | ||
| 1:Grade = {{{grade|}}} |
| 1:Grade = {{{grade|}}} |
||
| 1:Value = {{PAGENAME}} |
| 1:Value = {{PAGENAME}} |
||
| 2:Type = |
| 2:Type = MainImage |
||
| 2:Label = |
| 2:Label = NULL |
||
| 2:Value = {{{ |
| 2:Value = {{{ModuleImage|}}} |
||
| 3:Type = |
| 3:Type = Line |
||
| 3:Label = |
| 3:Label = Grade |
||
| 3:Value = |
| 3:Value = {{{grade|}}} |
||
| 4:Type = Custom |
|||
| ⚫ | |||
| 4:Label = tr |
|||
| 4:Value = <td colspan="2">Known uses</td> |
|||
| ⚫ | |||
| 5:Type = Custom |
| 5:Type = Custom |
||
| 5:Label = |
| 5:Label = |
||
| Line 18: | Line 21: | ||
| 5:ValueMethod = TableSplitRows |
| 5:ValueMethod = TableSplitRows |
||
| 5:CssClass = custom-list |
| 5:CssClass = custom-list |
||
}} |
|||
<includeonly>[[Category:Materials]] |
|||
{{#switch:{{lc:{{{grade|}}}}} |
{{#switch:{{lc:{{{grade|}}}}} |
||
| common |
| common |
||
| Line 32: | Line 36: | ||
| Very Rare |
| Very Rare |
||
| Very rare = [[Category:Very rare materials]] |
| Very rare = [[Category:Very rare materials]] |
||
}} |
|||
</includeonly> |
|||
</onlyinclude> |
|||
<noinclude> |
<noinclude> |
||
<pre style="width: 300px"> |
<pre style="width: 300px"> |
||
{{CommodityInfobox |
{{CommodityInfobox |
||
| ModuleImage = |
|||
| grade = |
| grade = |
||
| knownuses = |
| knownuses = |
||
| Line 41: | Line 48: | ||
</pre> |
</pre> |
||
== Usage == |
== 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". |
;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}}. |
;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}}. |
||
Revision as of 01:43, 29 November 2017
{{#infoboxbuilder: | 0:Theme = eInfobox | 0:CustomModule = Module:Infobox Material | 1:Type = Title
| 1:Label = NULL | 1:ValueMethod = PreTitleIcon | 1:Grade = | 1:Value = MaterialInfobox
| 2:Type = MainImage
| 2:Label = NULL | 2:Value =
| 3:Type = Line
| 3:Label = Grade | 3:Value =
| 4:Type = Custom
| 4:Label = tr
| 4:Value = Known uses
| 4:CssClass = custom-listheader
| 5:Type = Custom
| 5:Label = | 5:Value = | 5:ValueMethod = TableSplitRows | 5:CssClass = custom-list
}}
{{CommodityInfobox
| ModuleImage =
| grade =
| knownuses =
}}
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 icon templates such as {{Material ship}}.