Difference between revisions of "Template:Infobox Building"

From Foundation - Wiki
Jump to navigation Jump to search
m
m
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| class="infobox" style="border-collapse:collapse;"
!class="infobox-title" colspan=2 | {{{title|{{PAGENAME}}}}}
|-
| class="infobox-image" colspan=2 | [[image]]
|-
|class="infobox-label" | Workers
|class="infobox-data" | Best suited to:
|-
|class="infobox-data" | {{{workers}}}
|class="infobox-data" | {{{workerclass}}}
|-
!class="infobox-header" colspan=2 |Production
|-
|class="infobox-label" | Consumes
|class="infobox-data" style="word-wrap:normal;" | {{{input}}}
|-
|class="infobox-label" | Produces
|class="infobox-data" | {{{output}}}
|-
!class="infobox-header" colspan=2 | Prerequisites
|-
|class="infobox-data" colspan=2 | {{{splendour}}}
|-
!class="infobox-header" colspan=2 |Construction Requirements
|-
|class="infobox-data" colspan=2 | {{{construction}}}
|
|-
|class="infobox-label" | Maintenance
|class="infobox-data" | {{{maintenance}}}
|}
<noinclude>
<noinclude>
<infobox>
<templatedata>
<title source="title"><default>{{PAGENAME}}</default></title>
{
<image source="image"><default>[[File:{{PAGENAME:{{{image}}}}}|260px]]</default></image>
"params": {
<!->
"title": {
<group>
"type": "string",
<header>Prerequisites</header>
"default": "{{PAGENAME}}",
<data source="splendour">
"suggested": true
  <label>Splendour</label>
},
  <format></format>
"image": {
</data>
"type": "wiki-file-name",
</group>
"default": "[[File:{{PAGENAME:{{{image}}}}}|260px]]",
<!->
"suggested": true
<group>
},
<header>Production</header>
"splendour": {
<data source="workers">
"label": "Splendour",
  <label>Workers</label>
"suggested": true
  <data source="class">
},
  <label font-style: italic>Best suited to</label>
"workers": {
</data>
"label": "Workers",
</data>
"type": "string",
<data source="input">
"suggested": true
  <label>Consumes</label>
},
</data>
"workerclass": {
<data source="output">
"suggested": true,
  <label>Produces</label>
"label": "Best suited for:",
</data>
"type": "string"
</group>
},
<!->
"input": {
<group-layout: horizontal>
"required": true,
<header>Construction Requirements</header>
"label": "Consumes",
<data source="construction"></data>
"type": "string"
  <data source="maintenance">
},
  <label>Maintenance Cost</label>
"output": {
</group>
"required": true,
</infobox>
"label": "Produces",
</noinclude>
"type": "string"
},
"construction": {
"label": "Construction",
"type": "string",
"suggested": true
},
"maintenance": {
"label": "Monthly Maintenance",
"type": "number",
"suggested": true
}
},
"description": "A template for manual infobox editing. NOTE: not complete!! Still has some wonky parts."
}
</templatedata></noinclude>

Latest revision as of 23:30, 17 April 2025

Infobox Building
image
Workers Best suited to:
{{{workers}}} {{{workerclass}}}
Production
Consumes {{{input}}}
Produces {{{output}}}
Prerequisites
{{{splendour}}}
Construction Requirements
{{{construction}}}
Maintenance {{{maintenance}}}

A template for manual infobox editing. NOTE: not complete!! Still has some wonky parts.

Template parameters

ParameterDescriptionTypeStatus
titletitle

no description

Default
{{PAGENAME}}
Stringsuggested
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