Difference between revisions of "Template:Infobox Town"

From PCBWiki
Jump to navigation Jump to search
(Removed unneeded field)
(Made caption suggested)
 
(22 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Infobox
{{Infobox
| title    = {{{Name|{{{name|<includeonly>{{PAGENAMEBASE}}</includeonly>}}}}}}
| title    = {{{Name|{{{name|<includeonly>{{PAGENAMEBASE}}</includeonly>}}}}}}
| image    = {{#invoke:InfoboxImage|InfoboxImage|image={{{Emblem|{{{emblem|}}}}}}|sizedefault=50px|alt={{{emblem_alt|}}}}}
| image    = {{#if:{{{screenshot|}}}|[[File:{{{screenshot}}}|250px|center|alt={{{screenshot_alt}}}]]}}
| image2    = {{#invoke:InfoboxImage|InfoboxImage|image={{{Image|{{{image|}}}}}}|upright={{{image_upright|1}}}|alt={{{alt|}}}}}
| caption = {{{Caption|{{{caption|}}}}}}
| caption2 = {{{Caption|{{{caption|}}}}}}
| label2    = Founded
| data2    = {{{Founded|{{{founded|}}}}}}
| label3    = Founder
| label3    = Founder
| data3    = {{{Founder|{{{founder|}}}}}}
| data3    = {{{Founder|{{{founder|}}}}}}
Line 12: Line 9:
| label5    = Warp
| label5    = Warp
| data5    = {{{Warp|{{{warp|}}}}}}
| data5    = {{{Warp|{{{warp|}}}}}}
| label6    = Theme
| data6    = {{{Theme|{{{theme|}}}}}}
}}<noinclude>
}}<noinclude>
{{Documentation}}</noinclude>
{{Documentation}}
<templatedata>
{
"params": {
"name": {
"type": "string",
"required": true
},
"screenshot": {
"description": "The filename WITHOUT the file prefix",
"example": "Town Hall.png",
"type": "wiki-file-name",
"suggested": true
},
"screenshot_alt": {
"default": "Description of the image",
"suggested": true
},
"caption": {
"default": "The caption for the image",
"suggested": true
},
"founder": {
"description": "The player(s) who founded the town",
"suggested": true
},
"map": {
"description": "The map this town is/was on, it should be linked",
"required": true
},
"warp": {
"description": "The name of the town's warp"
},
"theme": {
"description": "The theme of the town, if it has one",
"example": "Modern"
}
},
"description": "Infobox for a town or city"
}
</templatedata>
</noinclude>

Latest revision as of 16:34, 3 April 2018

Template documentation[view] [edit] [history] [purge]

Usage

{{{title}}}
[[File:{{{screenshot}}}|250px|center|alt={{{screenshot_alt}}}]]
{{{caption}}}
Founder {{{founder}}}
Map {{{map}}}
Warp {{{warp}}}
Theme {{{theme}}}
{{Infobox Town
| name                  =
| screenshot            =
| screenshot_alt        = 
| caption               = 
| founder               =
| map                   = 
| warp                  = 
| theme                 =
}}

Infobox for a town or city

Template parameters

ParameterDescriptionTypeStatus
namename

no description

Stringrequired
screenshotscreenshot

The filename WITHOUT the file prefix

Example
Town Hall.png
Filesuggested
screenshot_altscreenshot_alt

no description

Default
Description of the image
Unknownsuggested
captioncaption

no description

Default
The caption for the image
Unknownsuggested
founderfounder

The player(s) who founded the town

Unknownsuggested
mapmap

The map this town is/was on, it should be linked

Unknownrequired
warpwarp

The name of the town's warp

Unknownoptional
themetheme

The theme of the town, if it has one

Example
Modern
Unknownoptional