Difference between revisions of "Template:Infobox Building"

From Foundation - Wiki
Jump to navigation Jump to search
m
(Working on infobox)
Line 1: Line 1:
{| class="infobox"
! class="infobox-label" colspan=2 | {{{title|{{PAGENAME}}}}}
|-
| class="infobox-image" colspan=2 | {{{image|}}}
|-
!Prerequisites
|-
| splendour    = {{prerequisites|}}}
|-
!Production
|-
|label2    = Workers
| workers    = {{workers|}}}
|-
|label3    = Best suited to:
| class    = {{workerclass|}}}
|-
|label4    = Consumes
| input    = {{input|}}}
|-
|label5    = Produces
| output    = {{output|}}}
|-
|label6    = Monthly maintenance
| maintenance    = {{maintenance|}}}
|-
!Construction Requirements
| construction    = {{construction|}}}
|}
<noinclude>
<noinclude>
<infobox>
<templatedata>
<title source="title"><default>{{PAGENAME}}</default></title>
{
<image source="image"><default>[[File:{{PAGENAME:{{{image}}}}}|260px]]</default></image>
"params": {
<!->
"image": {
<group>
"type": "wiki-file-name",
<header>Prerequisites</header>
"default": "[[File:{{PAGENAME:{{{image}}}}}|260px]]",
<data source="splendour">
"suggested": true
  <label>Splendour</label>
},
  <format></format>
"splendour": {
</data>
"label": "Splendour",
</group>
"suggested": true
<!->
},
<group>
"workers": {
<header>Production</header>
"label": "Workers",
<data source="workers">
"type": "string",
  <label>Workers</label>
"suggested": true
  <data source="class">
},
  <label font-style: italic>Best suited to</label>
"workerclass": {
</data>
"suggested": true,
</data>
"label": "Best suited for:",
<data source="input">
"type": "string"
  <label>Consumes</label>
},
</data>
"input": {
<data source="output">
"required": true,
  <label>Produces</label>
"label": "Consumes",
</data>
"type": "string"
</group>
},
<!->
"output": {
<group-layout: horizontal>
"required": true,
<header>Construction Requirements</header>
"label": "Produces",
<data source="construction"></data>
"type": "string"
  <data source="maintenance">
},
  <label>Maintenance Cost</label>
"construction": {
</group>
"label": "Construction",
</infobox>
"type": "string",
</noinclude>
"suggested": true
},
"maintenance": {
"label": "Monthly Maintenance",
"type": "number",
"suggested": true
}
},
"description": "A template for manual infobox editing."
}
</templatedata></noinclude>

Revision as of 18:52, 15 April 2025

Infobox Building
Prerequisites
splendour = Template:Prerequisites}
Production
label2 = Workers workers = Template:Workers}
label3 = Best suited to: class = Template:Workerclass}
label4 = Consumes input = Template:Input}
label5 = Produces output = Template:Output}
label6 = Monthly maintenance maintenance = Template:Maintenance}
Construction Requirements construction = Template:Construction}

A template for manual infobox editing.

Template parameters

ParameterDescriptionTypeStatus
imageimage

no description

Default
[[File:{{PAGENAME:{{{image}}}}}|260px]]
Filesuggested
Splendoursplendour

no description

Unknownsuggested
Workersworkers

no description

Stringsuggested
Best suited for:workerclass

no description

Stringsuggested
Consumesinput

no description

Stringrequired
Producesoutput

no description

Stringrequired
Constructionconstruction

no description

Stringsuggested
Monthly Maintenancemaintenance

no description

Numbersuggested