Jump to content

Template:MaterialInfobox: Difference between revisions

From Elite Dangerous Wiki
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 = Line
| 2:Type = MainImage
| 2:Label = Grade
| 2:Label = NULL
| 2:Value = {{{grade|}}}
| 2:Value = {{{ModuleImage|}}}
| 3:Type = Custom
| 3:Type = Line
| 3:Label = tr
| 3:Label = Grade
| 3:Value = <td colspan="2">Known uses</td>
| 3:Value = {{{grade|}}}
| 4:Type = Custom
⚫
| 3:CssClass = custom-listheader
| 4:Label = tr
| 4:Value = <td colspan="2">Known uses</td>
⚫
| 4:CssClass = custom-listheader
| 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]]
<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>
</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}}.