Template
Interface template

Infobox Settlement

From Dogcraft Wiki

m (The way this one does transport is probably due for an update soon, this will do for now; Added a general "transport" property.)
m (Attempting to depracate (via templatedata) the railway and nether parameters in favor of transport)
 
(One intermediate revision by the same user 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}}}}}
|label8 = Transport
|header8 = {{#if: {{{transport|}}} | Transport }}
|data8 = {{#if: {{{transport|}}} | {{{transport|}}} | {{{railway|}}}{{#if:{{{nether|}}}|<br />{{{nether|}}}}} }}
|label9 = Transport
|data9 = {{#if: {{{transport|}}} | {{{transport|}}} | {{{railway|}}}{{#if:{{{nether|}}}|<br />{{{nether|}}}}} }}
|label10 = Teleport
|data10 = {{{teleport|{{{phome|}}}}}}
|world = {{{world|Survival 6}}}
|world = {{{world|Survival 6}}}
|subworld = {{{subworld|{{{sur4subworld|sheltie}}}}}}
|subworld = {{{subworld|{{{sur4subworld|sheltie}}}}}}
Line 178: Line 181:
"example": "Nether Transport Network ",
"example": "Nether Transport Network ",
"type": "wiki-page-name",
"type": "wiki-page-name",
"suggested": true
"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",
"suggested": true
"deprecated": "Use Transport instead"
},
},
        "transport": {
"transport": {
"label": "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.",
"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)",
"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",
"type": "string",
"suggested": true
"suggested": true
Line 199: Line 212:
},
},
"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.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Headertitle

Infobox header, for use when it should be different from the pagename.

Auto value
{{subst:PAGENAME}}
Stringoptional
Imageimage picture file img

The name of an image (without "File:") to display at the top of the infobox.

Example
Examplet.png
Auto value
Filerequired
Captioncaption

Description of the Image parameter

Stringsuggested
Worldworld

The world in which the settlement was built. Options: Survival, Survival 1, Survival 2, Survival 3, Survival 4, Amplified, Skyblock, Creative, MCMMO, other.

Default
Survival 4
Example
Survival 4
Stringrequired
Sub-worldsubworld subworld

Which sub-world is this settlement on? (e.g. Husky, Beagle, Akita, Labrador, etc..)

Example
Husky
Stringrequired
Mayor(s)mayors mayor

The leader(s) of the settlement. Use {{Player|<playername>}}

Example
{{Player|Example}}
Stringsuggested
Contributor(s)contributors builders

Major contributors to the settlement. Use {{Player|<playername>}}

Example
{{Player|Example}}
Stringsuggested
Foundedfounded

The date of the founding of the settlement

Datesuggested
X-coordinatexcoord

The x coordinate of the settlement's location.

Example
0
Numberrequired
Y-coordinateycoord

The y coordinate of the settlement's location (height)

Example
64
Auto value
64
Numbersuggested
Z-coordinatezcoord

The z coordinate of the settlement's location.

Example
0
Numberrequired
Transporttransport

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)
Stringsuggested
Teleportteleport phome

Name of the phome by which the settlement can be accessed, if there is one.

Example
{{Phome|Egg Town}}
Stringsuggested
Dimensiondimension

The dimension in which the settlement is located.

Default
Overworld
Example
Overworld
Auto value
Stringoptional
Statusstatus

Expects one of the [[Status|status templates]]. Use {{Defunct}} for settlements on past worlds.

Example
{{Active}}
Templaterequired
Nether accessnether ntn

Name of the NTN line, door, or station from which the settlement can be accessed, if there is one.

Example
Nether Transport Network
Page namedeprecated
Railwayrailway srn

Name of the railway or station by which the settlement can be accessed, if there is one.

Example
SRN Branch Line
Page namedeprecated
Background SRN Opening by Montenator