Template:Infobox: Difference between revisions

From Space Exploration
Jump to navigation Jump to search
imported>Vicarious
No edit summary
imported>Pandana
No edit summary
Line 1: Line 1:
<includeonly><div class="infobox">
{{Infobox
<div class="infobox-header
  |name        =  
{{#switch: {{{category}}}
  |bodystyle    =  
  | Logistics            = logistics
 
  | Production            = production
  |titlestyle  =  
  | Intermediate products = intermediates
  |abovestyle = background:#cfc;
  | Combat                = combat
  |subheaderstyle =
  | Technology            = technology
  |title        = Test Infobox
  | #default              = default-infobox
  |above        = Above text
  }}
|subheader    = Subheader above image
">
|subheader2  = Second subheader
{| style="padding: 5px 0;"
 
| valign="top" style="width:32px;" |{{Icon|{{{icon|{{No language suffix/No namespace}}}}}||{{No language suffix/No namespace}}{{If language suffix}}}}
|imagestyle  =  
| class="infobox-header-text" | <span>{{Translation|{{{name|{{#replace: {{No language suffix/No namespace}} | (research)|}} }}} }}</span>
|captionstyle =  
|class="plainlinks infobox-edit-link" valign="top" style="display: none;" | [{{fullurl:{{ns:3002}}:{{#replace:{{No language suffix/No namespace}}| |_}}|action=edit}} {{Translation|Edit}}]
| image     = [[File:Example-serious.jpg|200px|alt=Example alt text]]
|}
|caption      = Caption displayed below Example-serious.jpg
</div>
 
{{#if: {{{image|}}}
|headerstyle  = background:#ccf;
|<div class="infobox-image">
|labelstyle  = background:#ddf;
[[File:{{{image}}}{{#ifeq: {{#explode: {{{image}}}|.|1}}||.png}}]]
|datastyle    =
</div>
 
}}{{#if: {{{expensive-recipe|}}} |
|header1 = Mechanics
<tabber>
| label1 =  
{{Translation|Normal mode}}=
| data1 =
<table>
|header2 =
{{Infobox/vrow |Recipe                      |{{{recipe|}}}                      |{{Crafting/parsing|{{{recipe}}} }} }}
| label2 = Label defined alone does not display (needs data, or is suppressed)
{{Infobox/vrow |Total raw                    |{{{recipe|}}}                      |{{Crafting/raw|{{{total-raw|{{{recipe}}} }}} }} }}
| data2 =
</table>
|header3 =
\-\
| label3 =
{{Translation|Expensive mode}}=
| data3 = Data defined alone
<table>
|header4 = All three defined (header, label, data, all with same number)
{{Infobox/vrow |Recipe                      |{{{expensive-recipe|}}}                      |{{Crafting/parsing|{{{expensive-recipe}}} }} }}
| label4 = does not display (same number as a header)
{{Infobox/vrow |Total raw                    |{{{expensive-recipe|}}}                      |{{Crafting/raw|{{{expensive-total-raw|{{{expensive-recipe}}} }}} }} }}
| data4 = does not display (same number as a header)
</table>
|header5 =
</tabber>
| label5 = Label and data defined (label)
|
| data5 = Label and data defined (data)
{{#if: {{{expensive-total-raw|}}} |
 
<tabber>
|belowstyle = background:#ddf;
{{Translation|Normal mode}}=
|below      = Below text
<table>
{{Infobox/vrow |Recipe                      |{{{recipe|}}}                      |{{Crafting/parsing|{{{recipe}}} }} }}
{{Infobox/vrow |Total raw                    |{{{recipe|}}}                      |{{Crafting/raw|{{{total-raw|{{{recipe}}} }}} }} }}
</table>
\-\
{{Translation|Expensive mode}}=
<table>
{{Infobox/vrow |Recipe                      |{{{recipe|}}}                      |{{Crafting/parsing|{{{recipe}}} }} }}
{{Infobox/vrow |Total raw                    |{{{expensive-total-raw|}}}          |{{Crafting/raw|{{{expensive-total-raw}}} }} }}
</table>
</tabber>
|
{{#if: {{{recipe|}}} |
<tabber>
{{Translation|Normal mode & expensive mode}}=
<table>
{{Infobox/vrow |Recipe                      |{{{recipe|}}}                      |{{Crafting/parsing|{{{recipe}}} }} }}
{{Infobox/vrow |Total raw                    |{{{recipe|}}}                      |{{Crafting/raw|{{{total-raw|{{{recipe}}} }}} }} }}
</table>
</tabber>
}}
}}
}}
}}{{#if: {{{expensive-cost-multiplier|}}} |
<tabber>
{{Translation|Normal mode}}=
<table>
{{Infobox/vrow |Cost                        |{{{cost|}}}                        |{{Item/parsing|{{{cost|}}} }} {{#if: {{{cost-multiplier|}}}|✖ <big>{{{cost-multiplier|}}}</big>}} }}
</table>
\-\
{{Translation|Expensive mode}}=
<table>
{{Infobox/vrow |Cost                        |{{{cost|}}}                        |{{Item/parsing|{{{cost|}}} }} ✖ <big>{{{expensive-cost-multiplier|}}}</big>}}
</table>
</tabber>
|
{{#if: {{{cost|}}} |
<tabber>
{{Translation|Normal mode & expensive mode}}=
<table>
{{Infobox/vrow |Cost                        |{{{cost|}}}                        |{{Item/parsing|{{{cost|}}} }} {{#if: {{{cost-multiplier|}}}|✖ <big>{{{cost-multiplier|}}}</big>}} }}
</table>
</tabber>
}}
}}
<table>
{{Infobox/extra|{{{extra1|}}} }}
{{Infobox/row  |Map color                    |{{{map-color|}}}                    |{{Color|{{{map-color|}}}}} }}
{{Infobox/row  |Map icon                    |{{{map-icon|}}} }}
{{Infobox/row  |Added in                    |{{{added-in|}}} }}
{{Infobox/row  |Walking speed                |{{{walking-speed|}}} }}
{{Infobox/row  |Storage size                |{{{storage-size|}}} }}
{{Infobox/row  |Fluid storage volume        |{{{fluid-storage-volume|}}} }}
{{#if: {{{expected-resources|}}} |
<tr class="border-top">
<td>
{{Translation|Expected resources }}
</td>
<td style="width: 70%;">
{{{expected-resources}}}
</td>
</tr>
}}
{{Infobox/row  |Health                      |{{{health|}}} }}
{{Infobox/row  |Restores                    |{{{restores|}}}                    |{{{restores}}} {{Translation|health}} }}
{{Infobox/row  |Resistances                  |{{{resistance|}}} }}
{{Infobox/row  |Lifespan                    |{{{lifespan|}}}                    |{{{lifespan}}} {{Translation|seconds}} }}
{{Infobox/row  |Inventory size bonus        |{{{inventory-size-bonus|}}} }}
{{Infobox/row  |Equipment grid size          |{{{grid-size|}}} }}
{{Infobox/row  |Stack size                  |{{{stack-size|}}} }}
{{Infobox/row  |Range                        |{{{range|}}} }}
{{Infobox/row  |Shooting speed              |{{{shooting-speed|}}} }}
{{Infobox/row  |Damage                      |{{{damage|}}} }}
{{Infobox/row  |Damage bonus                |{{{damage-bonus|}}} }}
{{Infobox/row  |Cluster size                |{{{cluster-size|}}} }}
{{Infobox/row  |Area of effect size          |{{{area-of-effect-size|}}} }}
{{Infobox/row  |Durability                  |{{{durability|}}} }}
{{Infobox/row  |Magazine size                |{{{magazine-size|}}} }}
{{Infobox/row  |Ammunition                  |{{{ammunition|}}}                  |{{Item/parsing|{{{ammunition}}} }} }}
{{Infobox/vrow |Used as ammunition by        |{{{used-as-ammo-by|}}}              |{{Item/parsing|{{{used-as-ammo-by}}} }} }}
{{Infobox/row  |Efficiency                  |{{{efficiency|}}} }}
{{Infobox/row  |Dimensions                  |{{{dimensions|}}} }}
{{Infobox/row  |Energy consumption          |{{{energy|}}}                      |{{Type|{{{energy}}} }} }}
{{Infobox/row  |Drain                        |{{{drain|}}}                        |{{Type|{{{drain}}} }} }}
{{Infobox/row  |Robot recharge rate          |{{{robot-recharge-rate|}}}          |{{Type|{{{robot-recharge-rate}}} }} }}
{{Infobox/row  |Internal buffer recharge rate|{{{internal-buffer-recharge-rate|}}}|{{Type|{{{internal-buffer-recharge-rate}}} }} }}
{{Infobox/vrow |Placed in                    |{{{equipped-in|}}}                  |{{Item/parsing|{{{equipped-in}}} }} }}
{{Infobox/row  |Robot limit                  |{{{robot-limit|}}} }}
{{Infobox/row  |Repair speed                |{{{repair-speed|}}} }}
{{Infobox/row  |Charging stations            |{{{charging-stations|}}} }}
{{Infobox/row  |Belt speed                  |{{{belt-speed|}}} }}
{{Infobox/row  |Movement bonus              |{{{movement-bonus|}}} }}
{{Infobox/row  |Energy capacity              |{{{energy-capacity|}}}              |{{Type|{{{energy-capacity}}} }} }}
{{Infobox/row  |Power input                  |{{{power-input|}}} }}
{{Infobox/row  |Power output                |{{{power-output|}}} }}
{{Infobox/row  |Maximum temperature          |{{{maximum-temperature|}}} }}
{{Infobox/row  |Fluid consumption            |{{{fluid-consumption|}}} }}
{{Infobox/row  |Shield hitpoints            |{{{shield|}}} }}
{{Infobox/row  |Energy per hitpoint          |{{{energy-per-hitpoint|}}}              |{{Type|{{{energy-per-hitpoint}}} }} }}
{{Infobox/row  |Maximum recharge speed      |{{{maximum-recharge-speed|}}} }}
{{Infobox/row  |Crafting speed              |{{{crafting-speed|}}} }}
{{Infobox/row  |Pumping speed                |{{{pumping-speed|}}} }}
{{Infobox/row  |Mining time                  |{{{mining-time|}}} }}
{{Infobox/row  |Speed                        |{{{speed|}}} }}
{{Infobox/row  |Productivity                |{{{productivity|}}} }}
{{Infobox/row  |Mining speed                |{{{mining-speed|}}}                |{{{mining-speed}}} }}
{{Infobox/row  |Mining area                  |{{{mining-area|}}}                  |{{{mining-area}}} {{Translation|tiles}} }}
{{Infobox/row  |Fuel value                  |{{{fuel-value|}}}                  |{{Type|{{{fuel-value}}} }} }}
{{Infobox/row  |Vehicle acceleration        |{{{vehicle-acceleration|}}} }}
{{Infobox/row  |Vehicle top speed            |{{{vehicle-top-speed|}}} }}
{{Infobox/row  |Supply area                  |{{{supply-area|}}}                  |{{{supply-area}}} {{Translation|tiles}} }}
{{Infobox/row  |Wire reach                  |{{{wire-reach|}}}                  |{{{wire-reach}}} {{Translation|tiles}} }}
{{Infobox/row  |Construction area            |{{{construction-area|}}}            |{{{construction-area}}} {{Translation|tiles}} }}
{{Infobox/row  |Pollution                    |{{{pollution|}}} }}
{{Infobox/row  |Weight                      |{{{weight|}}} }}
{{Infobox/row  |Module slots                |{{{modules|}}}                      |{{{modules}}} {{Translation|slots}} }}
{{Infobox/row  |Prototype type              |{{{prototype-type|}}}              |{{Prototype page|{{{prototype-type}}}}} }}
{{Infobox/row  |Internal name                |{{{internal-name|}}} }}
{{Infobox/vrow |Accepted equipment          |{{{equipment|}}}                    |{{Item/parsing|{{{equipment}}} }} }}
{{Infobox/vrow |Required technologies        |{{{required-technologies|}}}        |{{Technology/parsing/sandbox|{{{required-technologies}}}|color=228B22}}                          |{{Translation|None required}}}}
{{Infobox/vrow |Allows                      |{{{allows|}}}                      |{{Technology/parsing/sandbox|{{{allows}}}|color=228B22}} }}
{{Infobox/vrow |Effects                      |{{{effects|}}}                      |{{Item/parsing|{{{effects}}} }} }}
{{Infobox/vrow |Boosting technologies        |{{{boosting-technologies|}}}        |{{Technology/parsing/sandbox|{{{boosting-technologies}}}|color=228B22}} }}
{{Infobox/vrow |Produced by                  |{{{producers|}}}                    |{{Item/parsing|{{{producers}}} }} }}
{{Infobox/vrow |Consumed by                  |{{{consumers|}}}                    |{{Item/parsing|{{{consumers}}} }} }}
{{Infobox/vrow |Valid fuel                  |{{{valid-fuel|}}}                  |{{Item/parsing|{{{valid-fuel}}} }} }}
{{Infobox/vrow |Used as fuel by              |{{{used-as-fuel-by|}}}              |{{Item/parsing|{{{used-as-fuel-by}}} }} }}
{{Infobox/extra|{{{extra2|}}} }}
</table>
</div></includeonly><noinclude>
{{Documentation}}
</noinclude>

Revision as of 01:49, 7 September 2021

Template loop detected: Template:Infobox