Difference between revisions of "Template:Infobox Building"

From Foundation - Wiki
Jump to navigation Jump to search
m
m
 
(27 intermediate revisions by the same user not shown)
Line 1: Line 1:
.infobox_building {
{| class="infobox" style="border-collapse:collapse;"
    width: 260px;
!class="infobox-title" colspan=2 | {{{title|{{PAGENAME}}}}}
    float: right;
|-
    margin: 10px;
| class="infobox-image" colspan=2 | [[image]]
    clear: both;
|-
    --margin-v: 10px;
|class="infobox-label" | Workers
    --margin-h: 10px;
|class="infobox-data" | Best suited to:
}
|-
 
|class="infobox-data" | {{{workers}}}
.infobox_building-title {
|class="infobox-data" | {{{workerclass}}}
    font-size: 1.5em;
|-
    font-weight: bold;
!class="infobox-header" colspan=2 |Production
    text-align: center;
|-
}
|class="infobox-label" | Consumes
 
|class="infobox-data" style="word-wrap:normal;" | {{{input}}}
.infobox_building-caption {
|-
    display: block;
|class="infobox-label" | Produces
    text-align: center;
|class="infobox-data" | {{{output}}}
}
|-
 
!class="infobox-header" colspan=2 | Prerequisites
.infobox_building-header {
|-
    width: 100%;
|class="infobox-data" colspan=2 | {{{splendour}}}
    text-align: center;
|-
    font-size: 1.25em;
!class="infobox-header" colspan=2 |Construction Requirements
    font-weight: bold;
|-
}
|class="infobox-data" colspan=2 | {{{construction}}}
 
|
.infobox_building-label {
|-
    display: flex;
|class="infobox-label" | Maintenance
    width: 50%;
|class="infobox-data" | {{{maintenance}}}
}
|}
 
<noinclude>
.infobox_building-data-section {
<templatedata>
    display: flex;
{
    flex-direction: row;
"params": {
}
"title": {
 
"type": "string",
.infobox_building-data {
"default": "{{PAGENAME}}",
    width: 50%;
"suggested": true
}
},
 
"image": {
.infobox_building-label, .infobox_building-data {
"type": "wiki-file-name",
    font-size: 0.75em;
"default": "[[File:{{PAGENAME:{{{image}}}}}|260px]]",
    padding: calc(var(--margin-v) /2) calc(var(--margin-h)/2);
"suggested": true
}
},
 
"splendour": {
.infobox_building-data-section:nth-of-type(odd):last-child {
"label": "Splendour",
    width: 100%;
"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>

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