Difference between revisions of "Template:Infobox Town"

From PCBWiki
Jump to navigation Jump to search
m (Additional template fixes)
(Added descriptions)
Line 16: Line 16:
{
{
"params": {
"params": {
"name": {},
"name": {
"type": "string",
"required": true
},
"screenshot": {
"screenshot": {
"description": "The filename WITHOUT the file prefix",
"description": "The filename WITHOUT the file prefix",
"example": "Town Hall.png",
"example": "Town Hall.png",
"type": "wiki-file-name"
"type": "wiki-file-name",
"suggested": true
},
"screenshot_alt": {
"default": "Description of the image",
"suggested": true
},
},
"screenshot_alt": {},
"caption": {},
"caption": {},
"founder": {},
"founder": {
"map": {},
"description": "The player(s) who founded the town",
"warp": {},
"suggested": true
"theme": {}
},
}
"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>
</templatedata>
</noinclude>
</noinclude>

Revision as of 15:42, 24 March 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

Unknownoptional
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