Difference between revisions of "Template:Infobox Building"

From Foundation - Wiki
Jump to navigation Jump to search
m
m
 
(26 intermediate revisions by the same user not shown)
Line 1: Line 1:
<style>
{| class="infobox" style="border-collapse:collapse;"
.infobox_building {
!class="infobox-title" colspan=2 | {{{title|{{PAGENAME}}}}}
    width: 260px;
|-
    float: right;
| class="infobox-image" colspan=2 | [[image]]
    margin: 10px;
|-
    clear: both;
|class="infobox-label" | Workers
    --margin-v: 10px;
|class="infobox-data" | Best suited to:
    --margin-h: 10px;
|-
|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>
<templatedata>
{
"params": {
"title": {
"type": "string",
"default": "{{PAGENAME}}",
"suggested": true
},
"image": {
"type": "wiki-file-name",
"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. NOTE: not complete!! Still has some wonky parts."
}
}
 
</templatedata></noinclude>
.infobox_building-title {
    font-size: 1.5em;
    font-weight: bold;
    text-align: center;
}
 
.infobox_building-caption {
    display: block;
    text-align: center;
}
 
.infobox_building-header {
    width: 100%;
    text-align: center;
    font-size: 1.25em;
    font-weight: bold;
}
 
.infobox_building-label {
    display: flex;
    width: 50%;
}
 
.infobox_building-data-section {
    display: flex;
    flex-direction: row;
}
 
.infobox_building-data {
    width: 50%;
}
 
.infobox_building-label, .infobox_building-data {
    font-size: 0.75em;
    padding: calc(var(--margin-v) /2) calc(var(--margin-h)/2);
}
 
.infobox_building-data-section:nth-of-type(odd):last-child {
    width: 100%;
}
</style>

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