Template
Infobox Settlement
From Dogcraft Wiki
(switch to Infobox Locatable) |
m (Attempting to depracate (via templatedata) the railway and nether parameters in favor of transport) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 34: | Line 34: | ||
|label7 = {{#ifeq:{{{dimension|Overworld}}}|Overworld||Dimension}} | |label7 = {{#ifeq:{{{dimension|Overworld}}}|Overworld||Dimension}} | ||
|data7 = {{#ifeq:{{{dimension|Overworld}}}|Overworld||{{{dimension}}}}} | |data7 = {{#ifeq:{{{dimension|Overworld}}}|Overworld||{{{dimension}}}}} | ||
| | |header8 = {{#if: {{{transport|}}} | Transport }} | ||
| | |label9 = Transport | ||
|world = {{{world|}}} | |data9 = {{#if: {{{transport|}}} | {{{transport|}}} | {{{railway|}}}{{#if:{{{nether|}}}|<br />{{{nether|}}}}} }} | ||
|subworld = {{{subworld|}}} | |label10 = Teleport | ||
|xcoord = {{{xcoord|}}} | |data10 = {{{teleport|{{{phome|}}}}}} | ||
|zcoord = {{{zcoord|}}} | |world = {{{world|Survival 6}}} | ||
|subworld = {{{subworld|{{{sur4subworld|sheltie}}}}}} | |||
|xcoord = {{{xcoord|0}}} | |||
|zcoord = {{{zcoord|0}}} | |||
}}[[Category:Settlements]]{{#if:{{WorldSwitch/World|{{{world}}}|{{{subworld|{{{sur4subworld|}}}}}}}}|[[Category:{{WorldSwitch/World|{{{world}}}|{{{subworld|{{{sur4subworld|}}}}}}}}]]|}}</includeonly><noinclude>{{Interface template}}[[Category:Infoboxes]] | }}[[Category:Settlements]]{{#if:{{WorldSwitch/World|{{{world}}}|{{{subworld|{{{sur4subworld|}}}}}}}}|[[Category:{{WorldSwitch/World|{{{world}}}|{{{subworld|{{{sur4subworld|}}}}}}}}]]|}}</includeonly><noinclude>{{Interface template}}[[Category:Infoboxes]] | ||
<pre> | <pre> | ||
Line 178: | Line 181: | ||
"example": "Nether Transport Network ", | "example": "Nether Transport Network ", | ||
"type": "wiki-page-name", | "type": "wiki-page-name", | ||
" | "deprecated": "Use Transport instead" | ||
}, | }, | ||
"railway": { | "railway": { | ||
Line 188: | Line 191: | ||
"example": "SRN Branch Line", | "example": "SRN Branch Line", | ||
"type": "wiki-page-name", | "type": "wiki-page-name", | ||
"deprecated": "Use Transport instead" | |||
}, | |||
"transport": { | |||
"label": "Transport", | |||
"description": "Name of the railway, road, station, stop, port or shelter by which the settlement can be accessed, if there is one.", | |||
"example": "{{RHN|Egg Shelter}} (on Egg Road), {{CSC|Egg Port}}, {{SRN|Egg Station}} (on North Line), {{NTN|Egg Stop}} (on North Line)", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"teleport": { | |||
"aliases": [ | |||
"phome" | |||
], | |||
"label": "Teleport", | |||
"description": "Name of the phome by which the settlement can be accessed, if there is one.", | |||
"example": "{{Phome|Egg Town}}", | |||
"type": "string", | |||
"suggested": true | "suggested": true | ||
} | } | ||
}, | }, | ||
"description": "Infobox template to be used on ingame settlements (towns, cities, ect.) on the server.", | "description": "Infobox template to be used on ingame settlements (towns, cities, ect.) on the server.", | ||
"format": "block" | "format": "block", | ||
"paramOrder": [ | |||
"title", | |||
"image", | |||
"caption", | |||
"world", | |||
"subworld", | |||
"mayors", | |||
"contributors", | |||
"founded", | |||
"xcoord", | |||
"ycoord", | |||
"zcoord", | |||
"transport", | |||
"teleport", | |||
"dimension", | |||
"status", | |||
"nether", | |||
"railway" | |||
] | |||
} | } | ||
</templatedata> | </templatedata> |
Latest revision as of 23:57, 31 July 2024
{{Infobox Settlement |title = |image = |caption = |world = |subworld = |mayors = |contributors = |founded = |xcoord = |ycoord = |zcoord = |dimension = |status = |railway = |nether = }}
Infobox template to be used on ingame settlements (towns, cities, ect.) on the server.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Header | title | Infobox header, for use when it should be different from the pagename.
| String | optional |
Image | image picture file img | The name of an image (without "File:") to display at the top of the infobox.
| File | required |
Caption | caption | Description of the Image parameter | String | suggested |
World | world | The world in which the settlement was built. Options: Survival, Survival 1, Survival 2, Survival 3, Survival 4, Amplified, Skyblock, Creative, MCMMO, other.
| String | required |
Sub-world | subworld subworld | Which sub-world is this settlement on? (e.g. Husky, Beagle, Akita, Labrador, etc..)
| String | required |
Mayor(s) | mayors mayor | The leader(s) of the settlement. Use {{Player|<playername>}}
| String | suggested |
Contributor(s) | contributors builders | Major contributors to the settlement. Use {{Player|<playername>}}
| String | suggested |
Founded | founded | The date of the founding of the settlement | Date | suggested |
X-coordinate | xcoord | The x coordinate of the settlement's location.
| Number | required |
Y-coordinate | ycoord | The y coordinate of the settlement's location (height)
| Number | suggested |
Z-coordinate | zcoord | The z coordinate of the settlement's location.
| Number | required |
Transport | transport | Name of the railway, road, station, stop, port or shelter by which the settlement can be accessed, if there is one.
| String | suggested |
Teleport | teleport phome | Name of the phome by which the settlement can be accessed, if there is one.
| String | suggested |
Dimension | dimension | The dimension in which the settlement is located.
| String | optional |
Status | status | Expects one of the [[Status|status templates]]. Use {{Defunct}} for settlements on past worlds.
| Template | required |
Nether access | nether ntn | Name of the NTN line, door, or station from which the settlement can be accessed, if there is one.
| Page name | deprecated |
Railway | railway srn | Name of the railway or station by which the settlement can be accessed, if there is one.
| Page name | deprecated |