Template:Structure: Difference between revisions

From 118Wiki
Jump to navigation Jump to search
mNo edit summary
(Template Data)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{| class="toccolours" style="clear:left; float:right; margin:0 0 0.5em 1em; width:22em; font-size:smaller;"
{{Infobox Wiki
|-
|image={{#if:{{{image|}}}|[[File:{{{image|}}}|{{{image size|210px}}}]]}}|image text={{{image text|}}}|header color=#AE0A0A|header text color=white|name={{{name|{{PAGENAME}}}}}}}
|colspan=2 style="text-align:center;" | {{{image}}}
{{Infobox row|type=subheader|color=#CA0B0B|text color=white|Location}}
|-
{{Infobox row|title=City|{{{city|}}}}}
!colspan=2 bgcolor="#AE0A0A" style="color:#fff; font-size:larger;" |{{{name}}}
{{Infobox row|title=Planet|{{{planet|}}}}}
|-
{{Infobox row|title=System|{{{system|}}}}}
! colspan=2 style="text-align:left; font-weight:normal; background:#CA0B0B;" | Location
{{Infobox row|title=Region|{{{region|}}}}}
|- style="vertical-align:top;"
{{Infobox row|type=subheader|color=#CA0B0B|text color=white|General Information}}
| City  
{{Infobox row|title=Constructed|{{{constructed|}}}}}
| {{{city}}}
{{Infobox row|title=Destroyed|{{{destroyed|}}}}}
|- style="vertical-align:top; background:#f0f0f0;"
{{Infobox row|title=Builder|{{{builder|}}}}}
| Planet  
{{Infobox row|title=Purpose|{{{purpose|}}}}}
| {{{planet}}}
{{Infobox row|title=Features|{{{features|}}}}}
|- style="vertical-align:top;"
{{Infobox row|title=Primary Construction Materials|{{{priconmat|}}}}}
| System  
{{Infobox row|title=Shape|{{{shape|}}}}}
| {{{system}}}
{{Infobox row|type=subheader|color=#CA0B0B|text color=white|Statistics}}
|- style="vertical-align:top; background:#f0f0f0;"
{{Infobox row|title=Length|{{{length|}}}}}
| Region  
{{Infobox row|title=Width|{{{width|}}}}}
| {{{region}}}
{{Infobox row|title=Height|{{{height|}}}}}
|-
{{Infobox row|title=Volume|{{{volume|}}}}}
! colspan=2 style="text-align:left; font-weight:normal; background:#CA0B0B;" | General Information
{{Infobox row|title=Capacity: Standard|{{{capstandard|}}}}}
|- style="vertical-align:top;"
{{Infobox row|title=Capacity: Maximum|{{{capmax|}}}}}
| Constructed
| {{{constructed}}}
|- style="vertical-align:top; background:#f0f0f0;"
| Destroyed
| {{{destroyed}}}
|- style="vertical-align:top;"
| Builder
| {{{builder}}}
|- style="vertical-align:top; background:#f0f0f0;"
| Purpose
| {{{purpose}}}
|- style="vertical-align:top;"
| Features
| {{{features}}}
|- style="vertical-align:top; background:#f0f0f0;"
| Primary Construction Materials
| {{{priconmat}}}
|- style="vertical-align:top;"
| Shape
| {{{shape}}}
|-
! colspan=2 style="text-align:left; font-weight:normal; background:#CA0B0B;" | Statistics
|- style="vertical-align:top; background:#f0f0f0;"
| Length
| {{{length}}}
|- style="vertical-align:top;"
| Width
| {{{width}}}
|- style="vertical-align:top; background:#f0f0f0;"
| Height
| {{{height}}}
|- style="vertical-align:top;"
| Volume
| {{{volume}}}
|- style="vertical-align:top; background:#f0f0f0;"
| Capacity: Standard
| {{{capstandard}}}
|- style="vertical-align:top;"
| Capacity: Maximum
| {{{capmax}}}
|}
|}
<noinclude>
<noinclude>
Line 86: Line 46:
|capstandard=
|capstandard=
|capmax=
|capmax=
}}</nowiki>
}}</nowiki></pre>
</noinclude>
 
{{Navbox|TITLE=Template Data|
<templatedata>
{
"params": {
"image": {
"label": "Image",
"description": "Adds image to the top of the infobox",
"type": "wiki-file-name"
},
"image size": {
"label": "Image size",
"description": "Size of the top image",
"type": "line",
"default": "210px"
},
"image text": {
"label": "Image text",
"description": "A short description of the top image in smaller font",
"type": "content"
},
"name": {
"label": "Name",
"description": "Name of the structure",
"type": "line",
"suggested": true
},
"city": {
"label": "City",
"description": "City in which the structure is located",
"type": "content"
},
"planet": {
"label": "Planet",
"description": "Planet in which the structure is located",
"type": "content"
},
"system": {
"label": "System",
"description": "System in which the structure is located",
"type": "content"
},
"region": {
"label": "Region",
"description": "Region in which the structure is located",
"type": "content"
},
"constructed": {
"label": "Constructed",
"description": "Time of the construction of the structure",
"type": "content"
},
"destroyed": {
"label": "Destroyed",
"description": "Time of the destruction of the structure",
"type": "content"
},
"builder": {
"label": "Builder",
"description": "Name of individual, organization or faction who created the structure",
"type": "content"
},
"purpose": {
"label": "Purpose",
"description": "What the structure was created or is used",
"type": "content"
},
"features": {
"label": "Features",
"description": "List of the most notable properties or functions of the structure",
"type": "content"
},
"priconmat": {
"label": "Primary Construction Materials",
"description": "The materials of which the structure is mostly made of",
"type": "content"
},
"shape": {
"label": "Shape",
"description": "The general shape of the structure",
"type": "content"
},
"length": {
"label": "Length",
"description": "The overall length of the structure",
"type": "content"
},
"width": {
"label": "Width",
"description": "The overall width of the structure",
"type": "content"
},
"height": {
"label": "Height",
"description": "The overall height of the structure",
"type": "content"
},
"volume": {
"label": "Volume",
"description": "The overall volume of the structure",
"type": "content"
},
"capstandard": {
"label": "Capacity: Standard",
"description": "How many crew, passengers or similar the structure typically has",
"type": "content"
},
"capmax": {
"label": "Capacity: Maximum",
"description": "How many crew, passengers or similar the structure can have at most",
"type": "content"
}
},
"description": "Infobox for structures",
"format": "block"
}
</templatedata>}}
[[Category:Infobox templates]]</noinclude>

Latest revision as of 19:54, 21 April 2024

Structure
Location
General Information
Statistics

Usage instructions

Paste the following code into the top of an article, filling all known fields:

{{structure
|name=
|image=
|city=
|planet=
|system=
|region=
|constructed=
|destroyed=
|builder=
|purpose=
|features=
|priconmat=
|shape=
|length=
|width=
|height=
|volume=
|capstandard=
|capmax=
}}
Template Data

Infobox for structures

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Imageimage

Adds image to the top of the infobox

Fileoptional
Image sizeimage size

Size of the top image

Default
210px
Lineoptional
Image textimage text

A short description of the top image in smaller font

Contentoptional
Namename

Name of the structure

Linesuggested
Citycity

City in which the structure is located

Contentoptional
Planetplanet

Planet in which the structure is located

Contentoptional
Systemsystem

System in which the structure is located

Contentoptional
Regionregion

Region in which the structure is located

Contentoptional
Constructedconstructed

Time of the construction of the structure

Contentoptional
Destroyeddestroyed

Time of the destruction of the structure

Contentoptional
Builderbuilder

Name of individual, organization or faction who created the structure

Contentoptional
Purposepurpose

What the structure was created or is used

Contentoptional
Featuresfeatures

List of the most notable properties or functions of the structure

Contentoptional
Primary Construction Materialspriconmat

The materials of which the structure is mostly made of

Contentoptional
Shapeshape

The general shape of the structure

Contentoptional
Lengthlength

The overall length of the structure

Contentoptional
Widthwidth

The overall width of the structure

Contentoptional
Heightheight

The overall height of the structure

Contentoptional
Volumevolume

The overall volume of the structure

Contentoptional
Capacity: Standardcapstandard

How many crew, passengers or similar the structure typically has

Contentoptional
Capacity: Maximumcapmax

How many crew, passengers or similar the structure can have at most

Contentoptional