Jump to content

Template:MaterialInfobox: Difference between revisions

From Elite Dangerous Wiki
Content deleted Content added
m Undo revision 94314 by Nanite2000 (talk)
Infobox updated using the portable infobox migration tool
Line 1: Line 1:
<infobox theme="portInfobox">
<onlyinclude>{{#infoboxbuilder:
<title source="grade"><format>{{#switch: {{{grade|}}}
| 0:Theme = eInfobox | 0:CustomModule = Module:Infobox Material
⚫
| Very rare | Very Rare | very rare = [[File:Very_Rare_material.svg|35px|link=]][[Category:Very rare materials]]
| 1:Type = Title
⚫
| Rare | rare = [[File:Rare_material.svg|35px|link=]][[Category:Rare materials]]
| 1:Label = NULL
⚫
| Common | common = [[File:Common material.svg|35px|link=]][[Category:Common materials]]
| 1:ValueMethod = PreTitleIcon
⚫
| Very common | Very Common | very common = [[File:Very common material.svg|35px|link=]][[Category:Very common materials]]
| 1:Grade = {{{grade|}}}
⚫
| Standard | standard = [[File:Standard_material.svg|35px|link=]][[Category:Standard materials]]
| 1:Value = {{PAGENAME}}
}} {{PAGENAME}}</format></title>
| 2:Type = MainImage
<image source="image"/>
| 2:Label = NULL
<data source="grade">
| 2:Value = {{#if:{{{image|}}}|[[File:{{{image|}}}|306px]]}}
<label>Grade</label>
| 3:Type = Line
</data>
| 3:Label = Grade
<group layout="horizontal">
| 3:Value = {{{grade|}}}
<data source="knownuses">
| 4:Type = Custom
<label>Known Uses</label>
| 4:Label = tr
<!-- <format></format>
| 4:Value = <td colspan="2">Known uses</td>
TODO: Write a Lua function with Dev:List
| 4:CssClass = custom-listheader
L.makeList('unbulleted', mw.text.split(args.knownuses, ';'))
| 5:Type = Custom
-->
| 5:Label =
</data>
| 5:Value = {{{knownuses|}}}
</group>
| 5:ValueMethod = TableSplitRows
</infobox>
| 5:CssClass = custom-list
⚫
<includeonly>[[Category:Materials]]</includeonly>
}}
⚫
<includeonly>[[Category:Materials]]
{{#switch:{{lc:{{{grade|}}}}}
| common
⚫
| Common = [[Category:Common materials]]
| rare
⚫
| Rare = [[Category:Rare materials]]
| standard
⚫
| Standard = [[Category:Standard materials]]
| very common
| Very Common
⚫
| Very common = [[Category:Very common materials]]
| very rare
| Very Rare
⚫
| Very rare = [[Category:Very rare materials]]
}}
</includeonly>
</onlyinclude>
<noinclude>
<noinclude>
<pre style="width: 300px">
<pre style="width: 300px">
{{CommodityInfobox
{{CommodityInfobox
| ModuleImage =
| image =
| grade =
| grade =
| knownuses =
| knownuses =

Revision as of 06:43, 30 August 2019


{{CommodityInfobox
| image = 
| grade      = 
| knownuses  = 
}}

Usage

grade
The grade or rating on how difficult it is to find. Can either be "Very common", "Common", "Standard", "Rare", or "Very rare".
image
The image to display in the material infobox.
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}}.