Want to contribute? Join the Discord and ask for the editor role.
Template:Town Infobox: Difference between revisions
Template page
No edit summary Tag: 2017 source edit |
No edit summary Tag: 2017 source edit |
||
(45 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Infobox | |||
|bodyclass = mw-collapsible floatright | |||
|image1 = [[File:{{{image|Soon.png}}}|325px|center]] | |||
|imagerowclass1 = infobox-image | |||
|header2 = {{{name|}}} | |||
|rowclass2 = infobox-title | |||
|label3 = {{#if: {{{founded|}}} | Founded }} | |||
|data3 = {{{founded|}}} | |||
|rowclass3 = infobox-data infobox-col2 | |||
<noinclude> | |label4 = {{#if: {{{mayor|}}} | Mayor }} | ||
|data4 = {{{mayor|}}} | |||
|rowclass4 = infobox-data infobox-col2 | |||
|label5 = {{#if: {{{population|}}} | Population }} | |||
|data5 = {{{population|}}} | |||
|rowclass5 = infobox-data infobox-col2 | |||
|label6 = {{#if: {{{status|}}} | Status }} | |||
|data6 = {{{status|}}} | |||
|rowclass6 = infobox-data infobox-col1 | |||
|label7 = {{#if: {{{keypeople|}}} | Key People }} | |||
|data7 = {{{keypeople|}}} | |||
|rowclass7 = infobox-data infobox-col1 | |||
|header20 = {{#if: {{{coordinates|}}}{{{path|}}} | Location }} | |||
|rowclass20 = infobox-header | |||
|label21 = {{#if: {{{coordinates|}}} | Coordinates }} | |||
|data21 = {{{coordinates|}}} | |||
|rowclass21 = infobox-data infobox-col2 | |||
|label22 = {{#if: {{{coordinates|}}}{{{path|}}} | World}} | |||
|data22 = {{{world|}}} | |||
|rowclass22 = infobox-data infobox-col2 | |||
|label23 = {{#if: {{{path|}}} | Nether Path}} | |||
|data23 = {{{path|}}} | |||
|rowclass23 = infobox-data infobox-col1 | |||
|header30 = {{#if: {{{dynmap|}}}{{{discord|}}} | Links}} | |||
|rowclass30 = infobox-header | |||
|label31 = {{#if: {{{dynmap|}}}|[{{{dynmap}}} Dynmap]}} | |||
|data31 = {{#if: {{{dynmap|}}}| }} | |||
|rowclass31 = infobox-data infobox-col2 | |||
|label32 = {{#if: {{{discord|}}}|[{{{discord}}} Discord Server]}} | |||
|data32 = {{#if: {{{discord|}}}| }} | |||
|rowclass32 = infobox-data infobox-col2 | |||
|data33 = {{#if: {{{dynmap|}}}{{{discord|}}} || }} | |||
}}<noinclude> | |||
{{clear}} | |||
{{documentation}} | {{documentation}} | ||
[[Category:Minecraft templates]] | [[Category:Minecraft templates]] | ||
</noinclude> | <templatedata> | ||
{ | |||
"params": { | |||
"image": { | |||
"label": "Image", | |||
"description": "Image of the town", | |||
"type": "wiki-file-name", | |||
"suggested": true | |||
}, | |||
"name": { | |||
"label": "Name", | |||
"description": "Name of the town", | |||
"required": true, | |||
"suggested": true, | |||
"example": "Genericville", | |||
"type": "string" | |||
}, | |||
"founded": { | |||
"label": "Founded", | |||
"description": "Date the town was founded", | |||
"type": "date", | |||
"suggested": true | |||
}, | |||
"mayor": { | |||
"description": "Current mayor of the town", | |||
"type": "string", | |||
"label": "Mayor", | |||
"example": "NotKatuen" | |||
}, | |||
"population": { | |||
"label": "Population", | |||
"description": "Current population of the town", | |||
"type": "number" | |||
}, | |||
"status": { | |||
"label": "Status", | |||
"description": "Activity status of the town", | |||
"example": "Inactive", | |||
"type": "string" | |||
}, | |||
"coordinates": { | |||
"label": "Coordinates", | |||
"description": "X/Z Coordinates of the town's location", | |||
"suggested": true, | |||
"example": "6969,420", | |||
"type": "string" | |||
}, | |||
"world": { | |||
"label": "World", | |||
"description": "Name of the world the town is located in", | |||
"example": "Overworld", | |||
"type": "string", | |||
"default": "Overworld" | |||
}, | |||
"path": { | |||
"label": "Nether path", | |||
"description": "Details for finding the town in the nether.", | |||
"example": "Blue path, Diorite block", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"dynmap": { | |||
"label": "Dynmap Link", | |||
"description": "URL for the dynmap view of the town", | |||
"example": "https://minecraft.rtgame.co.uk/map/survival/#world;flat;-784,64,1413;3", | |||
"type": "url", | |||
"suggested": true | |||
}, | |||
"discord": { | |||
"label": "Discord Server", | |||
"description": "Link to the Discord Server related to the town, if you absolutely need to have one. Please be sensible and ensure the link doesn't expire.", | |||
"type": "url" | |||
}, | |||
"keypeople": { | |||
"label": "Key People", | |||
"description": "Noteworthy individuals who are involved in the Town's creation or ongoing activities.", | |||
"type": "string" | |||
} | |||
}, | |||
"description": "Outputs an infobox for a Minecraft server town", | |||
"paramOrder": [ | |||
"name", | |||
"image", | |||
"coordinates", | |||
"world", | |||
"dynmap", | |||
"founded", | |||
"mayor", | |||
"keypeople", | |||
"population", | |||
"status", | |||
"path", | |||
"discord" | |||
], | |||
"format": "block" | |||
} | |||
</templatedata></noinclude> |
Latest revision as of 20:37, 7 May 2021
This documentation is transcluded from Template:Town Infobox/doc. Changes can be proposed in the talk page.
Outputs an infobox for a Minecraft server town
Parameter | Description | Type | Status | |
---|---|---|---|---|
Name | name | Name of the town
| String | required |
Image | image | Image of the town | File | suggested |
Coordinates | coordinates | X/Z Coordinates of the town's location
| String | suggested |
World | world | Name of the world the town is located in
| String | optional |
Dynmap Link | dynmap | URL for the dynmap view of the town
| URL | suggested |
Founded | founded | Date the town was founded | Date | suggested |
Mayor | mayor | Current mayor of the town
| String | optional |
Key People | keypeople | Noteworthy individuals who are involved in the Town's creation or ongoing activities. | String | optional |
Population | population | Current population of the town | Number | optional |
Status | status | Activity status of the town
| String | optional |
Nether path | path | Details for finding the town in the nether.
| String | suggested |
Discord Server | discord | Link to the Discord Server related to the town, if you absolutely need to have one. Please be sensible and ensure the link doesn't expire. | URL | optional |