Difference between revisions of "Template:Itembox"
From Space Engineers Wiki
(little guide) |
|||
Line 1: | Line 1: | ||
− | + | <div style="width:370px;float:right">{{#ifeq: {{lc:{{{largeship|yes}}} }}|yes| | |
{{componentbox|l|{{{item|No Image}}}|{{{lcomponent1|}}}|{{{lcomponent1amt|}}}|{{{lcomponent2|}}}|{{{lcomponent2amt|}}}|{{{lcomponent3|}}}|{{{lcomponent3amt|}}}|{{{lcomponent4|}}}|{{{lcomponent4amt|}}}|{{{lcomponent5|}}}|{{{lcomponent5amt|}}}|{{{lcomponent6|}}}|{{{lcomponent6amt|}}}|{{{lcomponent7|}}}|{{{lcomponent7amt|}}}|{{{lcomponent8|}}}|{{{lcomponent8amt|}}}|{{{lcomponent9|}}}|{{{lcomponent9amt|}}}| structure = {{{lcomponentstructure}}} }} | {{componentbox|l|{{{item|No Image}}}|{{{lcomponent1|}}}|{{{lcomponent1amt|}}}|{{{lcomponent2|}}}|{{{lcomponent2amt|}}}|{{{lcomponent3|}}}|{{{lcomponent3amt|}}}|{{{lcomponent4|}}}|{{{lcomponent4amt|}}}|{{{lcomponent5|}}}|{{{lcomponent5amt|}}}|{{{lcomponent6|}}}|{{{lcomponent6amt|}}}|{{{lcomponent7|}}}|{{{lcomponent7amt|}}}|{{{lcomponent8|}}}|{{{lcomponent8amt|}}}|{{{lcomponent9|}}}|{{{lcomponent9amt|}}}| structure = {{{lcomponentstructure}}} }} | ||
|}}{{#ifeq: {{lc:{{{smallship|yes}}} }}|yes| | |}}{{#ifeq: {{lc:{{{smallship|yes}}} }}|yes| | ||
Line 10: | Line 10: | ||
{{componentbox|r|{{{item|No Image}}} }} | {{componentbox|r|{{{item|No Image}}} }} | ||
|}}</div><noinclude> | |}}</div><noinclude> | ||
+ | Itembox template | ||
==Usage== | ==Usage== | ||
+ | Even though the language options are not yet implemented, please fill them in if you are using them on translated pages, the template will support them in the future, and will save having to go back and re-edit all translated pages. | ||
+ | Note that only item is required, designations are highly recommended, if not specified the template will assume you want it, components are all optional arguments, if your item only has 1 component you only need to use the first component variable. | ||
<pre> | <pre> | ||
{{itembox | {{itembox | ||
Line 22: | Line 25: | ||
| rawmaterial = yes/no (is this a raw material?) | | rawmaterial = yes/no (is this a raw material?) | ||
| ccomponent1 = First build component for component/tool | | ccomponent1 = First build component for component/tool | ||
+ | | ccomponent1name = translated name (not implemented yet) | ||
| ccomponent1amt = amount | | ccomponent1amt = amount | ||
| ccomponent2 ... 9 = Second through ninth build components | | ccomponent2 ... 9 = Second through ninth build components | ||
+ | | ccomponent2 ... 9name = translated name (not implemented yet) | ||
| ccomponent2 ... 9amt = amount | | ccomponent2 ... 9amt = amount | ||
| scomponentstructure = 1 | | scomponentstructure = 1 | ||
| scomponent1 = Steel Plate | | scomponent1 = Steel Plate | ||
+ | | scomponent1name = translated name (not implemented yet) | ||
| scomponent1amt = 1 First build component for small ships | | scomponent1amt = 1 First build component for small ships | ||
| scomponent2 ... 9 = Second through ninth build components | | scomponent2 ... 9 = Second through ninth build components | ||
+ | | scomponent2 ... 9name = translated name (not implemented yet) | ||
| scomponent2 ... amt = amount | | scomponent2 ... amt = amount | ||
| lcomponentstructure = number where structure begins (red line in user interface in game while building) | | lcomponentstructure = number where structure begins (red line in user interface in game while building) | ||
| lcomponent1 = First build component for large ships | | lcomponent1 = First build component for large ships | ||
+ | | lcomponent1name = translated name (not implemented yet) | ||
| lcomponent1amt = amount | | lcomponent1amt = amount | ||
| lcomponent2 ... 9 = Second through ninth build components | | lcomponent2 ... 9 = Second through ninth build components | ||
+ | | lcomponent2 ... 9name = translated name (not implemented yet) | ||
| lcomponent2 ... 9amt = amount | | lcomponent2 ... 9amt = amount | ||
}} | }} | ||
</pre>[[Category:Templates]]</noinclude> | </pre>[[Category:Templates]]</noinclude> |
Revision as of 21:19, 14 March 2014
Itembox template
Usage
Even though the language options are not yet implemented, please fill them in if you are using them on translated pages, the template will support them in the future, and will save having to go back and re-edit all translated pages. Note that only item is required, designations are highly recommended, if not specified the template will assume you want it, components are all optional arguments, if your item only has 1 component you only need to use the first component variable.
{{itembox | item = Item name, use caps on each part, English only | lang = language code (not implemented yet) | translation = translated item name (not implemented yet) | tool = yes/no (engineer tool?) | largeship = yes/no (large ship part?) | smallship = yes/no (small ship part?) | component = yes/no (is this a component made by the assembler?) | rawmaterial = yes/no (is this a raw material?) | ccomponent1 = First build component for component/tool | ccomponent1name = translated name (not implemented yet) | ccomponent1amt = amount | ccomponent2 ... 9 = Second through ninth build components | ccomponent2 ... 9name = translated name (not implemented yet) | ccomponent2 ... 9amt = amount | scomponentstructure = 1 | scomponent1 = Steel Plate | scomponent1name = translated name (not implemented yet) | scomponent1amt = 1 First build component for small ships | scomponent2 ... 9 = Second through ninth build components | scomponent2 ... 9name = translated name (not implemented yet) | scomponent2 ... amt = amount | lcomponentstructure = number where structure begins (red line in user interface in game while building) | lcomponent1 = First build component for large ships | lcomponent1name = translated name (not implemented yet) | lcomponent1amt = amount | lcomponent2 ... 9 = Second through ninth build components | lcomponent2 ... 9name = translated name (not implemented yet) | lcomponent2 ... 9amt = amount }}