Template:MaterialInfobox: Difference between revisions
Appearance
Content deleted Content added
No edit summary |
|||
| (10 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
<infobox |
<infobox> |
||
<title source=" |
<title source="name"><default>{{#switch: {{{grade}}} |
||
| common |
|||
| ⚫ | |||
| Common = [[File:Common material.svg|34px|link=]] {{PAGENAME}} |
|||
| rare |
|||
| ⚫ | |||
| Rare = [[File:Rare material.svg|34px|link=]] {{PAGENAME}} |
|||
| standard |
|||
| ⚫ | |||
| Standard = [[File:Standard material.svg|34px|link=]] {{PAGENAME}} |
|||
| ⚫ | |||
| very common |
|||
| ⚫ | |||
| Very Common |
|||
| ⚫ | |||
| Very common = [[File:Very common material.svg|34px|link=]] {{PAGENAME}} |
|||
<label>Grade</label> |
|||
| very rare |
|||
</data> |
|||
| Very Rare |
|||
<group layout="horizontal"> |
|||
| Very rare = [[File:Very Rare material.svg|34px|link=]] {{PAGENAME}} |
|||
<data source="knownuses"> |
|||
}}</default></title> |
|||
<label>Known Uses</label> |
|||
| ⚫ | |||
<!-- <format></format> |
|||
<header>Classification</header> |
|||
TODO: Write a Lua function with Dev:List |
|||
<data source="grade"><label>Grade</label><format>{{#switch: {{{grade}}} |
|||
L.makeList('unbulleted', mw.text.split(args.knownuses, ';')) |
|||
| common |
|||
--> |
|||
| ⚫ | |||
</data> |
|||
| rare |
|||
</group> |
|||
| Rare = Rare (Grade 4) [[Category:Rare materials]] |
|||
</infobox> |
|||
| standard |
|||
| ⚫ | |||
| ⚫ | |||
<noinclude> |
|||
| very common |
|||
<pre style="width: 300px"> |
|||
| Very Common |
|||
| Very common = Very Common (Grade 1) [[Category:Very common materials]] |
|||
| very rare |
|||
| Very Rare |
|||
| ⚫ | |||
| ⚫ | |||
<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> |
|||
<header>Recipes and Unlocks</header> |
|||
| ⚫ | |||
| ⚫ | |||
Example usage:<pre> |
|||
{{MaterialInfobox |
{{MaterialInfobox |
||
| image |
| image = |
||
| grade |
| grade = |
||
| |
| type = |
||
| knownuses = |
|||
}} |
}} |
||
</pre> |
</pre> |
||
== Usage == |
== Usage == |
||
| ⚫ | |||
;grade:The grade or rating on how difficult it is to find. |
;grade: The grade or rating on how difficult it is to find. There are five grades: "Very Common", "Common", "Standard", "Rare", and "Very Rare". |
||
| ⚫ | |||
;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 |
;knownuses: The known uses listed in the information of the material. Names must be exact in terms of both name and capitalisation, and ordered alphabetically. [[:Category:Icon templates|icon templates]] should precede each name: {{t|Material ship}} for ship Synthesis recipes and Technology Broker unlocks, {{t|Material Engineer}} for Engineer recipes, and {{t|SRV}} for SRV Synthesis recipes. |
||
[[Category:Infobox templates|{{PAGENAME}}]] |
|||
</noinclude> |
</noinclude> |
||
Latest revision as of 09:50, 3 March 2021
Example usage:
{{MaterialInfobox
| image =
| grade =
| type =
| knownuses =
}}
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. There are five grades: "Very Common", "Common", "Standard", "Rare", and "Very Rare".
- 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. Names must be exact in terms of both name and capitalisation, and ordered alphabetically. icon templates should precede each name: {{Material ship}} for ship Synthesis recipes and Technology Broker unlocks, {{Material Engineer}} for Engineer recipes, and {{SRV}} for SRV Synthesis recipes.