Difference between revisions of "Template:Infobox material/sandbox"

From Captain of Industry Wiki
Jump to: navigation, search
Line 17: Line 17:
   ** Image and Description **
   ** Image and Description **
   --><div class="inner-main"><!--
   --><div class="inner-main"><!--
     -->[[File:{{#if: {{{Image|}}} | {{{Image}}} | {{#if: {{{Name|}}} | {{{Name}}} | Placeholder material}}.png}}]]<br/><!--
     -->[[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 33: Line 33:
             --><td class="table-td-left">Type</td><!--
             --><td class="table-td-left">Type</td><!--
             --><td class="table-td-right">{{{Type1}}}{{#if:{{NAMESPACE}}||[[Category:{{{Type1}}}{{#switch:{{lc:{{{Type1}}}}}|food|pollution=|s}}]]}}<!--
             --><td class="table-td-right">{{{Type1}}}{{#if:{{NAMESPACE}}||[[Category:{{{Type1}}}{{#switch:{{lc:{{{Type1}}}}}|food|pollution=|s}}]]}}<!--
             -->{{#if: {{{Type2|}}} | <br/>{{{Type2|}}}{{#if:{{NAMESPACE}}||[[Category:{{{Type2}}}{{#switch:{{lc:{{{Type2}}}}}|food|pollution=|s}}]]}}}}</td><!--
             -->{{#if: {{{Type2|}}} | <br>{{{Type2|}}}{{#if:{{NAMESPACE}}||[[Category:{{{Type2}}}{{#switch:{{lc:{{{Type2}}}}}|food|pollution=|s}}]]}}}}</td><!--
           --></tr>}}<!--
           --></tr>}}<!--
          
          
Line 51: Line 51:
                 -->{{#switch: {{lc:{{{State|}}}}} |<!--
                 -->{{#switch: {{lc:{{{State|}}}}} |<!--
                   -->| loose    = {{variants|U-shape Conveyor}}<!--
                   -->| loose    = {{variants|U-shape Conveyor}}<!--
                     -->{{#ifeq:{{{TrackTransport|yes}}} | no || <br/>[[Pickup]] &bull; [[Truck]] &bull; [[Haul Truck (Dump)]] }}<!--
                     -->{{#ifeq:{{{TrackTransport|yes}}} | no || <br>[[Pickup]]&bull;[[Truck]]<br>[[Haul Truck (Dump)]] }}<!--
                   -->| fluid    = {{variants|Pipe}}<!--
                   -->| fluid    = {{variants|Pipe}}<!--
                     -->{{#ifeq:{{{TrackTransport|yes}}} | no || <br/>[[Pickup]] &bull; [[Truck]] &bull; [[Haul Truck (Tank)]] }}<!--
                     -->{{#ifeq:{{{TrackTransport|yes}}} | no || <br>[[Pickup]]&bull;[[Truck]]<br>[[Haul Truck (Tank)]] }}<!--
                   -->| unit    = {{variants|Flat Conveyor}}<!--
                   -->| unit    = {{variants|Flat Conveyor}}<!--
                     -->{{#ifeq:{{{TrackTransport|yes}}} | no || <br/>[[Pickup]] &bull; [[Truck]] }}<!--
                     -->{{#ifeq:{{{TrackTransport|yes}}} | no || <br>[[Pickup]]&bull;[[Truck]] }}<!--
                   -->| molten  = [[Molten Channel]]<!--
                   -->| molten  = [[Molten Channel]]<!--
                   -->| virtual  = [[Virtual product|Magic]]<!--
                   -->| virtual  = [[Virtual product|Magic]]<!--
                   -->| #default = <span style="color: red;">Unknown <nowiki>{{{State}}}</nowiki>[[Category:Material redtext]]</span><!--
                   -->| #default = <span style="color: red;">Unknown <nowiki>{{{State}}}</nowiki>[[Category:Material redtext]]</span><!--
                 -->}}<!--
                 -->}}<!--
                 -->{{#if: {{{OtherTransport|}}} | <br/>{{{OtherTransport}}}}}<!--
                 -->{{#if: {{{OtherTransport|}}} | <br>{{{OtherTransport}}}}}<!--
               -->}}<!--
               -->}}<!--
             --></td><!--
             --></td><!--
Line 74: Line 74:
                 -->{{#switch: {{lc:{{{State|}}}}} |<!--
                 -->{{#switch: {{lc:{{{State|}}}}} |<!--
                   -->| loose    = {{variants|Loose Storage}}<!--
                   -->| loose    = {{variants|Loose Storage}}<!--
                     -->{{#ifeq: {{{StoredInShipyard|yes}}} | no ||<br/>[[Shipyard]]}}<!--
                     -->{{#ifeq: {{{StoredInShipyard|yes}}} | no ||<br>[[Shipyard]]}}<!--
                     -->{{#ifeq: {{{StoredInCargoModules|no}}} | yes |<br/>{{variants|Loose Module}}}}<!--
                     -->{{#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: {{{StoredInCargoModules|no}}} | yes |<br/>{{variants|Fluid Module}}}}<!--
                     -->{{#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: {{{StoredInCargoModules|no}}} | yes |<br/>{{variants|Unit Module}}}}<!--
                     -->{{#ifeq: {{{StoredInCargoModules|no}}} | yes |<br>{{variants|Unit Module}}}}<!--
                   -->| molten  = None<!--
                   -->| molten  = None<!--
                   -->| virtual  = [[Virtual product|Ethereal plane]]<!--
                   -->| virtual  = [[Virtual product|Ethereal plane]]<!--
                   -->| #default = <span style="color: red;">Unknown <nowiki>{{{State}}}</nowiki>[[Category:Material redtext]]</span><!--
                   -->| #default = <span style="color: red;">Unknown <nowiki>{{{State}}}</nowiki>[[Category:Material redtext]]</span><!--
                 -->}}<!--
                 -->}}<!--
                 -->{{#if: {{{OtherStorage|}}} | <br/>{{{OtherStorage}}}}}<!--
                 -->{{#if: {{{OtherStorage|}}} | <br>{{{OtherStorage}}}}}<!--
               --></td><!--
               --></td><!--
             --></tr><!--
             --></tr><!--
Line 162: Line 162:
--></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]]
}}


== Parameters ==
The template accepts the following parameters:
The template accepts the following parameters:
;Basic parameters
;Basic parameters
:*<code>Name</code>: Name of items (example: Construction Parts).
:*<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>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>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.
:*<code>Variants</code>: Variant of the items.
;Advanced parameters
;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>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 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>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>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 this 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>CreatedIn</code>: To add an extra buildings to auto-generated list.
:*<code>UsedIn</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>StartingQty</code>: The number of items stored in the [[Shipyard]] on game start.  
:*<code>StartingQty</code>: The number of items stored in the [[Shipyard]] on game start.  
;Rarely used parameters
:*<code>Image</code> (rare): Only if image override is needed.
:*<code>TransportedBy</code>:  Only if transport override is needed.
:*<code>Description</code> (rare): To add an in-game description, though not currently implemented in-game.
:*<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.




Line 191: Line 201:
{{markup|<nowiki>
{{markup|<nowiki>
   {{Infobox material/sandbox
   {{Infobox material/sandbox
     | Name          = Construction Parts II
     | Name          = Electronics III
     | Type1          = Crafted material
     | Type1          = Crafted material
     | State          = Unit
     | State          = Unit
     | StartingQty    = Sailor: 987<br/>Captain: 654<br/>Admiral: 321
     | StartingQty    = Sailor: 987<br>Captain: 654<br>Admiral: 321
     | Variants      = [[Construction Parts II]]<br/>[[Construction Parts III]]<br/>[[Construction Parts IV]]
     | Variants      = [[Electronics]]<br>[[Electronics II]]
   }} </nowiki> |  
   }} </nowiki> |  
   {{Infobox material/sandbox
   {{Infobox material/sandbox
     | Name          = Construction Parts II
     | Name          = Electronics III
     | Type1          = Crafted material
     | Type1          = Crafted material
     | State          = Unit
     | State          = Unit
     | StartingQty    = Sailor: 987<br/>Captain: 654<br/>Admiral: 321
     | StartingQty    = Sailor: 987<br>Captain: 654<br>Admiral: 321
     | Variants      = [[Construction Parts II]]<br/>[[Construction Parts III]]<br/>[[Construction Parts IV]]
     | Variants      = [[Electronics]]<br>[[Electronics II]]
   }}
   }}
}}
}}
Line 270: Line 280:
     | Name            = Iron Ore
     | Name            = Iron Ore
     | Type1            = Natural resources
     | Type1            = Natural resources
     | State            = Unit
     | State            = Loose
     | CreatedIn        = [[Excavator]]
     | CreatedIn        = [[Excavator]]
     | UsedIn          = [[Stacker]]
     | UsedIn          = [[Stacker]]
Line 277: Line 287:
     | Name            = Iron Ore
     | Name            = Iron Ore
     | Type1            = Natural resources
     | Type1            = Natural resources
     | State            = Unit
     | State            = Loose
     | CreatedIn        = [[Excavator]]
     | CreatedIn        = [[Excavator]]
     | UsedIn          = [[Stacker]]
     | UsedIn          = [[Stacker]]
   }}
   }}
}}
}}

Revision as of 11:07, 19 May 2023

The template accepts the following parameters:

Basic parameters
  • Name: Name of items.
  • Type1, Type2: Types of items. It is used to categorize item in this wiki.
  • State: Loose, Fluid, Unit, Molten, or Virtual.
  • Variants: 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.
  • TrackTransport: Set no if tracks cannot transport the item (Default: yes).
  • TransportedBy(rare): Only if transport override is needed.
  • OtherTransport(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.
  • 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.
  • OtherStorage(rare): To add an extra storage to auto-generated list.
Parameters for buildings that creates/uses this item
Buildings that create/use this item are automatically listed from the table made by Template:Recipe define. But, it should be added with the following parameters in some cases.
  • CreatedIn: To add an extra buildings to auto-generated list.
  • UsedIn: To add an extra buildings to auto-generated list.
Miscellaneous parameters
  • StartingQty: The number of items stored in the Shipyard on game start.
  • Image (rare): Only if image override is needed.
  • Description (rare): 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           = Electronics III
    | Type1          = Crafted material
    | State          = Unit
    | StartingQty    = Sailor: 987<br>Captain: 654<br>Admiral: 321
    | Variants       = [[Electronics]]<br>[[Electronics II]]
  }} 
Electronics III
Electronics III.png
TypeCrafted material
StateUnit
Transported byFlat Conveyor [IIIII]
PickupTruck
Stored inUnit Storage [IIIIIIV]
Shipyard
Created inAssembly (Robotic)
Assembly (Robotic) II
Used inAssembly (Robotic)
Assembly (Robotic) II
Maintenance III Depot
Starting amountSailor: 987
Captain: 654
Admiral: 321
VariantsElectronics
Electronics 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
Chilled Water.png
StateFluid
Transported byPipe [IIIII]
Stored inFluid Storage [IIIIIIV]
Shipyard
Created inWater Chiller
Used inNone
Example usage for items that the shipyard cannot store
Markup Renders as
  {{Infobox material/sandbox
    | Name             = Seawater
    | Type1            = Natural resource
    | State            = Fluid
    | StoredInShipyard = no
  }} 
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
Spent Fuel.png
TypeRadioactive waste
StateUnit
Transported byFlat Conveyor [IIIII]
PickupTruck
Stored inRadioactive Waste Storage
Created inNuclear Reactor
Nuclear Reactor II
Used inNuclear Reprocessing Plant
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
Uranium Ore.png
TypeNatural resources
StateLoose
Transported byU-shape Conveyor [IIIII]
PickupTruck
Haul Truck (Dump)
Stored inLoose Storage [IIIIIIV]
Shipyard
Loose Module (S) [ML]
Created inNone
Used inCrusher
Crusher (Large)
Example usage for items created/used in non-production-machines
Markup Renders as
  {{Infobox material/sandbox
    | Name             = Iron Ore
    | Type1            = Natural resources
    | State            = Loose
    | CreatedIn        = [[Excavator]]
    | UsedIn           = [[Stacker]]
  }}