Template:InfoBox: Difference between revisions

From Foundry Wiki
No edit summary
mNo edit summary
 
(30 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{| class="wikitable" style="margin-left:5px;float:right;"
{{(!}} class="wikitable" style="margin-left:5px;float:right;"
! scope="col" colspan="2"|{{{name}}}
! scope="col" colspan="2" {{!}} {{{name}}}
|-
{{!-}}
|-
! scope="col" colspan="2" {{!}} [[Image:Item {{{name}}}.png{{!}}160px{{!}}alt={{{name}}}]]
! scope="col" colspan="2" | Power
{{#if:{{{requiresFoundation|}}} |
|-
{{!-}}
! scope="row" | Type:
! scope="col" colspan="2" style="text-align: center; background-color:#322077; color:#ffffff" {{!}} Requires Foundation
| style="text-align: right;" | {{#switch: {{{powerType}}}
| HEV = High Voltage Energy (HEV)
| LEV = Low Voltage Energy (LEV)
| default = N/A
}}
}}
|-
{{#if:{{{powerType|}}} |
! scope="row" | Usage:
{{!-}}
| style="text-align: right;" | {{{ powerUsage }}}
! scope="col" colspan="2" {{!}} Power
|-
{{!-}}
! colspan="2" | Dimensions
{{!}} Type:  
{{#if:{{{width|}}}
{{!}} style="text-align: right;" {{!}} {{#switch: {{{powerType}}}
|<tr><th scope="row">Width:</th><td style="text-align: right;">{{{width}}}</td></tr>}}
      | HEV = High Voltage Energy (HEV)
{{#if:{{{length|}}}
      | HVG = High Voltage Grid (HVG)
|<tr><th scope="row">Length:</th><td style="text-align: right;">{{{length}}}</td></tr>}}
      | LEV = Low Voltage Energy (LEV)
{{#if:{{{height|}}}
      | LVG = Low Voltage Grid (LVG)
|<tr><th scope="row">Height:</th><td style="text-align: right;">{{{height}}}</td></tr>}}
      | N/A
{{#if:{{{slots|}}}
      }}
|<tr><th scope="col">Other:</th></tr><tr><th scope="row">Slots:</th><td style="text-align: right;">{{{slots}}}</td></tr>}}
{{#if:{{{powerUsage|}}} |
|}
  {{!-}}
  {{!}} Usage:
  {{!}} style="text-align: right;" {{!}} {{{powerUsage}}}
}}
}}
{{!-}}
{{#if:{{{width|}}} |
! colspan="2" {{!}} Dimensions
{{!-}}
{{!}} Width
{{!}} style="text-align: right;" {{!}} {{{width}}}
{{#if:{{{length|}}} |
  {{!-}}
  {{!}} Length
  {{!}} style="text-align: right;" {{!}} {{{length}}}
}}
{{#if:{{{height}}} |
  {{!-}}
  {{!}} Height
  {{!}} style="text-align: right;" {{!}} {{{height}}}
}}
}}
{{#if:{{{slots|}}} |
{{!-}}
! colspan="2" {{!}} Other
{{!-}}
{{!}} Slots:
{{!}} style="text-align: right;" {{!}} {{{slots}}}
}}
{{#if:{{{SlotsPerSide|}}} |
  {{!-}}
  {{!}} Slots Per Side:
  {{!}} style="text-align: right;" {{!}} {{{SlotsPerSide}}}  
}}
{{!)}}
<noinclude>
<noinclude>
<templatedata>
<templatedata>
Line 46: Line 76:
"type": "number"
"type": "number"
},
},
        "requiresFoundation": {
            "description": "Requires a foundation",
            "type": "boolean"
        },
"powerType": {
"powerType": {
"description": "Either LVE or HVE (Low Voltage Energy or High Voltage Energy, respectively)",
"description": "Either LVG (Low Voltage Grid) or HVG (High Voltage Grid)",
"example": "HVE",
"example": "HVG",
"type": "string"
"type": "string"
},
},
Line 60: Line 94:
"example": "3",
"example": "3",
"type": "number"
"type": "number"
},
        "SlotsPerSide": {
"description": "Side information for Number of loading/unloading slots",
"example": "3/side , 5 front/5 back/4 sides",
"type": "string"
}
}
},
},
Line 67: Line 106:
"length",
"length",
"height",
"height",
        "requiresFoundation",
"powerType",
"powerType",
"powerUsage",
"powerUsage",
"slots"
"slots",
        "SlotsPerSide"
]
]
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>

Latest revision as of 21:16, 6 June 2024

{{{name}}}
[[Image:Item {{{name}}}.png|160px|alt={{{name}}}]]


No description.

Template parameters

ParameterDescriptionTypeStatus
namename

no description

Example
Rail Mining Depot
Stringrequired
widthwidth

no description

Example
1
Numberoptional
lengthlength

no description

Example
2
Numberoptional
heightheight

no description

Example
3
Numberoptional
requiresFoundationrequiresFoundation

Requires a foundation

Booleanoptional
powerTypepowerType

Either LVG (Low Voltage Grid) or HVG (High Voltage Grid)

Example
HVG
Stringoptional
powerUsagepowerUsage

The power the device consumes while running.

Example
1.0 MW
Stringoptional
slotsslots

Number of loading/unloading slots the machine has

Example
3
Numberoptional
SlotsPerSideSlotsPerSide

Side information for Number of loading/unloading slots

Example
3/side , 5 front/5 back/4 sides
Stringoptional