The PCB wiki has now been archived and is read-only. |
Difference between revisions of "Template:Infobox Town"
Jump to navigation
Jump to search
TheOctopus (talk | contribs) m (Additional template fixes) |
TheOctopus (talk | contribs) (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 | |||
}, | }, | ||
"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
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 | optional |
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 |