Difference between pages "Template:Infobox material" and "Template:Infobox material/sandbox"
(Difference between pages)
m (Define size of the image) |
|||
Line 7: | Line 7: | ||
--><div class="inner-header"><!-- | --><div class="inner-header"><!-- | ||
--><div class="title"><!-- | --><div class="title"><!-- | ||
-->{{#if: {{{Name| | -->{{#if: {{{Name|}}}<!-- | ||
-->| {{{Name | -->| {{{Name}}}<!-- | ||
** This variable is used in footer template ** | ** This variable is used in footer template ** | ||
-->{{#vardefine:game_object_type|material}}<!-- | -->{{#vardefine:game_object_type|material}}<!-- | ||
Line 17: | Line 17: | ||
** Image and Description ** | ** Image and Description ** | ||
--><div class="inner-main"><!-- | --><div class="inner-main"><!-- | ||
-->[[File:{{#if: {{{Image|}}} | {{{Image}}} | {{#if: {{{Name| | -->[[File:{{#if: {{{Image|}}} | {{{Image}}} | {{#if: {{{Name|}}} | {{{Name}}} | Placeholder material}}.png}}]]<br><!-- | ||
-->{{#if: {{{Description|}}} | <!-- | -->{{#if: {{{Description|}}} | <!-- | ||
--><div class="description">{{{Description}}}</div><!-- | --><div class="description">{{{Description}}}</div><!-- | ||
Line 62: | Line 62: | ||
--><td class="table-td-right"><!-- | --><td class="table-td-right"><!-- | ||
-->{{#if: {{{TransportedBy|}}} |<!-- | -->{{#if: {{{TransportedBy|}}} |<!-- | ||
-->{{{TransportedBy}}}{{#if: {{NAMESPACE}} || [[Category: | -->{{{TransportedBy}}}{{#if: {{NAMESPACE}} || [[Category:Cleanup1]] }} |<!-- | ||
-->{{#switch: {{lc:{{{State|}}}}} |<!-- | -->{{#switch: {{lc:{{{State|}}}}} |<!-- | ||
-->| loose = {{variants|U-shape Conveyor}}<!-- | -->| loose = {{variants|U-shape Conveyor}}<!-- | ||
Line 72: | Line 72: | ||
-->| molten = [[Molten Channel]]<!-- | -->| molten = [[Molten Channel]]<!-- | ||
-->| virtual = [[Virtual product|Magic]]<!-- | -->| virtual = [[Virtual product|Magic]]<!-- | ||
-->| #default = <span style="color: red;">Unknown <nowiki>{{{State}}}</nowiki></span><!-- | -->| #default = <span style="color: red;">Unknown <nowiki>{{{State}}}</nowiki>[[Category:Material redtext]]</span><!-- | ||
-->}}<!-- | -->}}<!-- | ||
-->{{#if: {{{OtherTransport|}}} | <br>{{{OtherTransport}}}}}<!-- | -->{{#if: {{{OtherTransport|}}} | <br>{{{OtherTransport}}}}}<!-- | ||
Line 88: | Line 88: | ||
-->{{#if:{{{StoredIn|}}}{{{State|}}}|<!-- | -->{{#if:{{{StoredIn|}}}{{{State|}}}|<!-- | ||
-->{{#if: {{{StoredIn|}}} |<!-- | -->{{#if: {{{StoredIn|}}} |<!-- | ||
-->{{{StoredIn}}}{{#if: {{NAMESPACE}} || [[Category: | -->{{{StoredIn}}}{{#if: {{NAMESPACE}} || [[Category:Cleanup1]] }} |<!-- | ||
-->{{#switch: {{lc:{{{State|}}}}} |<!-- | -->{{#switch: {{lc:{{{State|}}}}} |<!-- | ||
-->| loose = {{variants|Loose Storage}}<!-- | -->| loose = {{variants|Loose Storage}}<!-- | ||
Line 101: | Line 101: | ||
-->| molten = None<!-- | -->| molten = None<!-- | ||
-->| virtual = [[Virtual product|Ethereal plane]]<!-- | -->| virtual = [[Virtual product|Ethereal plane]]<!-- | ||
-->| #default = <span style="color: red;">Unknown <nowiki>{{{State}}}</nowiki></span><!-- | -->| #default = <span style="color: red;">Unknown <nowiki>{{{State}}}</nowiki>[[Category:Material redtext]]</span><!-- | ||
-->}}<!-- | -->}}<!-- | ||
-->{{#if: {{{OtherStorage|}}} | <br>{{{OtherStorage}}}}}<!-- | -->{{#if: {{{OtherStorage|}}} | <br>{{{OtherStorage}}}}}<!-- | ||
Line 114: | Line 114: | ||
| fields = Building | | fields = Building | ||
| where = Building != "" AND Building IS NOT NULL | | where = Building != "" AND Building IS NOT NULL | ||
AND ( Output1Name = "{{{Name | AND ( Output1Name = "{{{Name}}}" OR Output2Name = "{{{Name}}}" | ||
OR Output3Name = "{{{Name | OR Output3Name = "{{{Name}}}" OR Output4Name = "{{{Name}}}" | ||
OR Output5Name = "{{{Name | OR Output5Name = "{{{Name}}}" OR Output6Name = "{{{Name}}}") | ||
| group by = Building | | group by = Building | ||
| format = template | | format = template | ||
Line 138: | Line 138: | ||
| fields = Building | | fields = Building | ||
| where = Building != "" AND Building IS NOT NULL | | where = Building != "" AND Building IS NOT NULL | ||
AND ( Input1Name = "{{{Name | AND ( Input1Name = "{{{Name}}}" OR Input2Name = "{{{Name}}}" | ||
OR Input3Name = "{{{Name | OR Input3Name = "{{{Name}}}" OR Input4Name = "{{{Name}}}" | ||
OR Input5Name = "{{{Name | OR Input5Name = "{{{Name}}}" OR Input6Name = "{{{Name}}}") | ||
| group by = Building | | group by = Building | ||
| format = template | | format = template | ||
Line 176: | Line 176: | ||
--></div><!-- | --></div><!-- | ||
--></div><!-- | --></div><!-- | ||
--></includeonly><noinclude>{{ | --></includeonly><noinclude> | ||
{{Infobox material/sandbox | |||
| Name = Construction Parts | |||
| Type1 = Crafted material | |||
| State = Unit | |||
| StartingQty = Sailor: 987<br>Captain: 654<br>Admiral: 321 | |||
| Variants = [[Construction Parts II]]<br>[[Construction Parts III]]<br>[[Construction Parts IV]] | |||
}} | |||
The template accepts the following parameters: | |||
;Basic parameters | |||
:*<code>Name</code>: Name of items. | |||
:*<code>Type1</code>, <code>Type2</code>: Types of items. It is used to categorize item in this wiki. | |||
:*<code>State</code>: Loose, Fluid, Unit, Molten, or Virtual. | |||
:*<code>Variants</code>: Variant of the items. | |||
;Parameters for transportation | |||
:Buildings and vehicles for transporting are automatically listed depending on State. But, it should be modified with the following parameters in some cases. | |||
:*<code>TrackTransport</code>: Set no if tracks cannot transport the item (Default: yes). | |||
:*<code>TransportedBy</code>(rare): Only if transport override is needed. | |||
:*<code>OtherTransport</code>(rare): To add an extra transport to auto-generated list. | |||
;Parameters for storage | |||
:Buildings for storing are automatically listed depending on State. But, it should be modified with the following parameters in some cases. | |||
:*<code>StoredInShipyard</code>: Set no if the shipyard cannot store the items (Default: yes). | |||
:*<code>StoredInCargoModules</code>: Set yes if cargo modules can store the items (Default: no). | |||
:*<code>StoredIn</code>: Only if storage override is needed. Set to "None" to suppress the field. | |||
:*<code>OtherStorage</code>(rare): To add an extra storage to auto-generated list. | |||
;Parameters for buildings that creates/uses this item | |||
:Buildings that create/use the item are automatically listed from the table made by [[Template:Recipe define]]. But, it should be added with the following parameters in some cases. | |||
:*<code>CreatedIn</code>: To add an extra buildings to auto-generated list. | |||
:*<code>UsedIn</code>: To add an extra buildings to auto-generated list. | |||
;Miscellaneous parameters | |||
:*<code>Radiation</code>: Radiation Level of the items. | |||
:*<code>StartingQty</code>: The number of the items stored in the [[Shipyard]] on game start. | |||
:*<code>Image</code> (rare): Only if image override is needed. | |||
:*<code>Description</code> (rare): To add an in-game description, though not currently implemented in-game. | |||
== Examples == | |||
;Example usage for standard item | |||
{{markup|<nowiki> | |||
{{Infobox material/sandbox | |||
| Name = Electronics III | |||
| Type1 = Crafted material | |||
| State = Unit | |||
| StartingQty = Sailor: 987<br>Captain: 654<br>Admiral: 321 | |||
| Variants = [[Electronics]]<br>[[Electronics II]] | |||
}} </nowiki> | | |||
{{Infobox material/sandbox | |||
| Name = Electronics III | |||
| Type1 = Crafted material | |||
| State = Unit | |||
| StartingQty = Sailor: 987<br>Captain: 654<br>Admiral: 321 | |||
| Variants = [[Electronics]]<br>[[Electronics II]] | |||
}} | |||
}} | |||
;Example usage for items that tracks cannot transport or storage cannot store | |||
{{markup|<nowiki> | |||
{{Infobox material/sandbox | |||
| Name = Chilled Water | |||
| State = Fluid | |||
| TrackTransport = no | |||
| StoredIn = none | |||
}} </nowiki> | | |||
{{Infobox material/sandbox | |||
| Name = Chilled Water | |||
| State = Fluid | |||
| TrackTransport = no | |||
| StoredIn = none | |||
}} | |||
}} | |||
;Example usage for items that the shipyard cannot store | |||
{{markup|<nowiki> | |||
{{Infobox material/sandbox | |||
| Name = Seawater | |||
| Type1 = Natural resource | |||
| State = Fluid | |||
| StoredInShipyard = no | |||
}} </nowiki> | | |||
{{Infobox material/sandbox | |||
| Name = Seawater | |||
| Type1 = Natural resource | |||
| State = Fluid | |||
| StoredInShipyard = no | |||
}} | |||
}} | |||
;Example usage for items having Radiation Level | |||
{{markup|<nowiki> | |||
{{Infobox material/sandbox | |||
| Name = Spent Fuel | |||
| Type1 = Radioactive waste | |||
| Radiation = 2 | |||
| State = Unit | |||
}} </nowiki> | | |||
{{Infobox material/sandbox | |||
| Name = Spent Fuel | |||
| Type1 = Radioactive waste | |||
| Radiation = 2 | |||
| State = Unit | |||
}} | |||
}} | |||
;Example usage for items stored in special storage | |||
{{markup|<nowiki> | |||
{{Infobox material/sandbox | |||
| Name = Spent Fuel | |||
| Type1 = Radioactive waste | |||
| State = Unit | |||
| StoredIn = [[Radioactive Waste Storage]] | |||
}} </nowiki> | | |||
{{Infobox material/sandbox | |||
| Name = Spent Fuel | |||
| Type1 = Radioactive waste | |||
| State = Unit | |||
| StoredIn = [[Radioactive Waste Storage]] | |||
}} | |||
}} | |||
;Example usage for items stored in cargo modules | |||
{{markup|<nowiki> | |||
{{Infobox material/sandbox | |||
| Name = Uranium Ore | |||
| Type1 = Natural resources | |||
| State = Loose | |||
| StoredInCargoModules = yes | |||
}} </nowiki> | | |||
{{Infobox material/sandbox | |||
| Name = Uranium Ore | |||
| Type1 = Natural resources | |||
| State = Loose | |||
| StoredInCargoModules = yes | |||
}} | |||
}} | |||
;Example usage for items created/used in non-production-machines | |||
{{markup|<nowiki> | |||
{{Infobox material/sandbox | |||
| Name = Coal | |||
| Type1 = Natural resources | |||
| State = Loose | |||
| CreatedIn = [[Coal Mine]] | |||
| UsedIn = Foo | |||
}} </nowiki> | | |||
{{Infobox material/sandbox | |||
| Name = Coal | |||
| Type1 = Natural resources | |||
| State = Loose | |||
| CreatedIn = [[Coal Mine]] | |||
| UsedIn = Foo | |||
}} | |||
}} |