Difference between revisions of "Template:Infobox material/sandbox"
From Captain of Industry Wiki
Line 75: | Line 75: | ||
-->| loose = {{variants|Loose Storage}}<!-- | -->| loose = {{variants|Loose Storage}}<!-- | ||
-->{{#ifeq: {{{StoredInShipyard|yes}}} | no ||<br/>[[Shipyard]]}}<!-- | -->{{#ifeq: {{{StoredInShipyard|yes}}} | no ||<br/>[[Shipyard]]}}<!-- | ||
-->{{#ifeq: {{{ | -->{{#ifeq: {{{StoredInCargoModules|no}}} | yes |<br/>{{variants|Loose Module}}}}<!-- | ||
-->| fluid = {{variants|Fluid Storage}}<!-- | -->| fluid = {{variants|Fluid Storage}}<!-- | ||
-->{{#ifeq: {{{StoredInShipyard|yes}}} | no ||<br/>[[Shipyard]]}}<!-- | -->{{#ifeq: {{{StoredInShipyard|yes}}} | no ||<br/>[[Shipyard]]}}<!-- | ||
-->{{#ifeq: {{{ | -->{{#ifeq: {{{StoredInCargoModules|no}}} | yes |<br/>{{variants|Fluid Module}}}}<!-- | ||
-->| unit = {{variants|Unit Storage}}<!-- | -->| unit = {{variants|Unit Storage}}<!-- | ||
-->{{#ifeq: {{{StoredInShipyard|yes}}} | no ||<br/>[[Shipyard]]}}<!-- | -->{{#ifeq: {{{StoredInShipyard|yes}}} | no ||<br/>[[Shipyard]]}}<!-- | ||
-->{{#ifeq: {{{ | -->{{#ifeq: {{{StoredInCargoModules|no}}} | yes |<br/>{{variants|Unit Module}}}}<!-- | ||
-->| molten = None<!-- | -->| molten = None<!-- | ||
-->| virtual = [[Virtual product|Ethereal plane]]<!-- | -->| virtual = [[Virtual product|Ethereal plane]]<!-- | ||
Line 163: | Line 163: | ||
--></includeonly><noinclude> | --></includeonly><noinclude> | ||
== Parameters == | |||
The template accepts the following parameters: | |||
;Basic parameters | |||
:*<code>Name</code>: Name of items (example: Construction Parts). | |||
:*<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. | |||
::<nowiki>*</nowiki> Virtual means items are never transported. (example: Electricity) | |||
:*<code>Variants</code>: Variant of the items. | |||
;Advanced parameters | |||
:*<code>TrackTransport</code>: Set no if tracks cannot transport the item (Default: yes). | |||
:*<code>StoredInShipyard</code>: Set no if the shipyard cannot store the item (Default: yes). | |||
:*<code>StoredInCargoModules</code>: Set yes if cargo modules can store the item (Default: no). | |||
:*<code>StoredIn</code>: Only if storage override is needed. Set to "None" to suppress the field. | |||
:*<code>CreatedIn</code>: To add an extra buildings to auto-generated list. | |||
:*<code>UsedIn</code>: To add an extra buildings to auto-generated list. | |||
:*<code>StartingQty</code>: The number of items stored in the [[Shipyard]] on game start. | |||
;Rarely used parameters | |||
:*<code>TransportedBy</code>: Only if transport override is needed. | |||
:*<code>OtherTransport</code>: To add an extra transport to auto-generated list. | |||
:*<code>OtherStorage</code>: To add an extra storage to auto-generated list | |||
:*<code>Image</code>: Only if image override is needed. | |||
:*<code>Description</code>: To add an in-game description, though not currently implemented in-game. | |||
== Examples == | |||
| | ;Example usage for standard item | ||
{{markup|<nowiki> | |||
{{Infobox material/sandbox | |||
< | | Name = Construction Parts II | ||
| | | 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]] | |||
}} </nowiki> | | |||
{{Infobox material/sandbox | |||
| Name = Construction Parts II | |||
| 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]] | |||
}} | |||
}} | }} | ||
Example usage | ;Example usage for items that tracks cannot transport or storage cannot store | ||
{{Infobox material/sandbox | {{markup|<nowiki> | ||
{{Infobox material/sandbox | |||
| Name = Chilled Water | |||
| State = Fluid | |||
| TrackTransport = no | |||
| StoreIn = no | |||
}} </nowiki> | | |||
{{Infobox material/sandbox | |||
| Name = Chilled Water | |||
| State = Fluid | |||
| TrackTransport = no | |||
| StoreIn = no | |||
}} | |||
{{Infobox material/sandbox | |||
}} | }} | ||
{{Infobox material/sandbox | ;Example usage for items that the shipyard cannot store | ||
< | {{markup|<nowiki> | ||
| Name | {{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 | |||
}} | |||
}} | }} | ||
{{Infobox material/sandbox | ;Example usage for items stored in special storage | ||
< | {{markup|<nowiki> | ||
| Name | {{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]] | |||
}} | |||
}} | }} | ||
{{Infobox material/sandbox | ;Example usage for items stored in cargo modules | ||
< | {{markup|<nowiki> | ||
| Name = | {{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 | |||
}} | |||
}} | }} | ||
{{Infobox material/sandbox | ;Example usage for items created/used in non-production-machines | ||
< | {{markup|<nowiki> | ||
| Name | {{Infobox material/sandbox | ||
| Name = Iron Ore | |||
| Type1 = Natural resources | |||
| State = Unit | |||
| CreatedIn = [[Excavator]] | |||
| UsedIn = [[Stacker]] | |||
}} </nowiki> | | |||
{{Infobox material/sandbox | |||
| Name = Iron Ore | |||
| Type1 = Natural resources | |||
| State = Unit | |||
| CreatedIn = [[Excavator]] | |||
| UsedIn = [[Stacker]] | |||
}} | |||
}} | }} |
Revision as of 10:40, 19 May 2023
Parameters
The template accepts the following parameters:
- Basic parameters
-
Name
: Name of items (example: Construction Parts).Type1
,Type2
: Types of items. It is used to categorize item in this wiki.State
: Loose, Fluid, Unit, Molten, or Virtual.
- * Virtual means items are never transported. (example: Electricity)
Variants
: Variant of the items.
- Advanced parameters
-
TrackTransport
: Set no if tracks cannot transport the item (Default: yes).StoredInShipyard
: Set no if the shipyard cannot store the item (Default: yes).StoredInCargoModules
: Set yes if cargo modules can store the item (Default: no).StoredIn
: Only if storage override is needed. Set to "None" to suppress the field.CreatedIn
: To add an extra buildings to auto-generated list.UsedIn
: To add an extra buildings to auto-generated list.StartingQty
: The number of items stored in the Shipyard on game start.
- Rarely used parameters
-
TransportedBy
: Only if transport override is needed.OtherTransport
: To add an extra transport to auto-generated list.OtherStorage
: To add an extra storage to auto-generated listImage
: Only if image override is needed.Description
: To add an in-game description, though not currently implemented in-game.
Examples
- Example usage for standard item
Markup | Renders as | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{Infobox material/sandbox | Name = Construction Parts II | 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]] }} |
Construction Parts II
| ||||||||||||||||
- Example usage for items that tracks cannot transport or storage cannot store
Markup | Renders as | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
{{Infobox material/sandbox | Name = Chilled Water | State = Fluid | TrackTransport = no | StoreIn = no }} |
Chilled Water
| ||||||||||
- Example usage for items that the shipyard cannot store
Markup | Renders as | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{Infobox material/sandbox | Name = Seawater | Type1 = Natural resource | State = Fluid | StoredInShipyard = no }} |
Seawater
| ||||||||||||
- Example usage for items stored in special storage
Markup | Renders as | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{Infobox material/sandbox | Name = Spent Fuel | Type1 = Radioactive waste | State = Unit | StoredIn = [[Radioactive Waste Storage]] }} |
Spent Fuel
| ||||||||||||
- Example usage for items stored in cargo modules
Markup | Renders as | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{Infobox material/sandbox | Name = Uranium Ore | Type1 = Natural resources | State = Loose | StoredInCargoModules = yes }} |
Uranium Ore
| ||||||||||||
- Example usage for items created/used in non-production-machines
Markup | Renders as | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{Infobox material/sandbox | Name = Iron Ore | Type1 = Natural resources | State = Unit | CreatedIn = [[Excavator]] | UsedIn = [[Stacker]] }} |
Iron Ore
| ||||||||||||