The PCB wiki has now been archived and is read-only. |
Difference between revisions of "Template:Infobox Town"
Jump to navigation
Jump to search
(fix thumbnailing) |
TheOctopus (talk | contribs) (Made caption suggested) |
||
(17 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 = {{# | | image = {{#if:{{{screenshot|}}}|[[File:{{{screenshot}}}|250px|center|alt={{{screenshot_alt}}}]]}} | ||
| caption = {{{Caption|{{{caption|}}}}}} | | caption = {{{Caption|{{{caption|}}}}}} | ||
| label3 = Founder | | label3 = Founder | ||
Line 10: | Line 10: | ||
| data5 = {{{Warp|{{{warp|}}}}}} | | data5 = {{{Warp|{{{warp|}}}}}} | ||
| label6 = Theme | | label6 = Theme | ||
| data6 = {{{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
Usage
[[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 = }}
The above documentation is transcluded from Template:Infobox Town/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |
Infobox for a town or city
Parameter | Description | Type | Status | |
---|---|---|---|---|
name | name | no description | String | required |
screenshot | screenshot | The filename WITHOUT the file prefix
| File | suggested |
screenshot_alt | screenshot_alt | no description
| Unknown | suggested |
caption | caption | no description
| Unknown | suggested |
founder | founder | The player(s) who founded the town | Unknown | suggested |
map | map | The map this town is/was on, it should be linked | Unknown | required |
warp | warp | The name of the town's warp | Unknown | optional |
theme | theme | The theme of the town, if it has one
| Unknown | optional |