Template:Town Infobox/doc: Difference between revisions

Template page
(Created page with "This infobox template can be used to display images and basic information pertaining to Towns. This infobox should be present on all Town pages.")
 
No edit summary
Tag: 2017 source edit
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
This infobox template can be used to display images and basic information pertaining to Towns. This infobox should be present on all Town pages.
This infobox template can be used to display images and basic information pertaining to Towns. This infobox should be present on all Town pages. Use this via inserting "Town Infobox" template.
<templatedata>
{
"params": {
"name": {
"aliases": [
"townname",
"town"
],
"label": "Name",
"description": "Name of the Town",
"example": "Exampleville",
"type": "wiki-file-name",
"required": true
},
"image": {
"label": "Image",
"description": "Image of the town skyline",
"example": "Sakurium.png",
"type": "wiki-file-name",
"suggested": true
},
"founded": {
"aliases": [
"date"
],
"label": "Founded",
"description": "Date the Town was founded",
"example": "July 2018",
"type": "line",
"suggested": true
},
"mayor": {
"aliases": [
"mayor"
],
"label": "Mayor",
"description": "Current Mayor of the Town",
"example": "NotKatuen",
"type": "line",
"suggested": true
},
"population": {
"label": "Population",
"description": "Population of the town",
"example": "16",
"type": "line",
"suggested": true
},
"status": {
"label": "Status",
"description": "Status of the town (Active,Pending,Inactive)",
"example": "Abandoned",
"type": "line",
"default": "Active",
"required": true
},
"coordinates": {
"aliases": [
"coords",
"location",
"position"
],
"label": "Coordinates",
"description": "Coordinates of the town.",
"example": "-6969,4200",
"type": "line",
"required": true
},
"path": {
"label": "Nether Path",
"description": "Which Nether Path to reach the location (and directory block, if applicable)",
"example": "Blue, Lapis block",
"type": "line",
"suggested": true
},
"dynmap": {
"label": "Dynmap Link",
"description": "Link to town on the server dynmap. Use the link button in the bottom left of dynmap to get this.",
"example": "https://minecraft.rtgame.co.uk/map/survival/#world;flat;176,64,1917;6",
"type": "url",
"suggested": true
},
"world": {
"label": "World",
"description": "World name town is located in (world, world_nether, world_the_end...)",
"example": "world_nether",
"type": "line",
"default": "world",
"suggested": true
}
},
"description": "Template used to display an infobox containing information about a town. Should be added to the top of all town pages.",
"paramOrder": [
"name",
"image",
"founded",
"mayor",
"population",
"status",
"coordinates",
"path",
"dynmap",
"world"
],
"format": "block"
}
</templatedata>
<noinclude>
[[Category:Minecraft templates]]
</noinclude>

Latest revision as of 13:04, 4 May 2021

This infobox template can be used to display images and basic information pertaining to Towns. This infobox should be present on all Town pages. Use this via inserting "Town Infobox" template.

Template used to display an infobox containing information about a town. Should be added to the top of all town pages.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Namename townname town

Name of the Town

Example
Exampleville
Filerequired
Imageimage

Image of the town skyline

Example
Sakurium.png
Filesuggested
Foundedfounded date

Date the Town was founded

Example
July 2018
Linesuggested
Mayormayor mayor

Current Mayor of the Town

Example
NotKatuen
Linesuggested
Populationpopulation

Population of the town

Example
16
Linesuggested
Statusstatus

Status of the town (Active,Pending,Inactive)

Default
Active
Example
Abandoned
Linerequired
Coordinatescoordinates coords location position

Coordinates of the town.

Example
-6969,4200
Linerequired
Nether Pathpath

Which Nether Path to reach the location (and directory block, if applicable)

Example
Blue, Lapis block
Linesuggested
Dynmap Linkdynmap

Link to town on the server dynmap. Use the link button in the bottom left of dynmap to get this.

Example
https://minecraft.rtgame.co.uk/map/survival/#world;flat;176,64,1917;6
URLsuggested
Worldworld

World name town is located in (world, world_nether, world_the_end...)

Default
world
Example
world_nether
Linesuggested