Difference between revisions of "Template:Infobox Building"

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