Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Infobox Settlement: Difference between revisions

Template page
More languages
Added template data!
No edit summary
 
(21 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Infobox
<includeonly>{{Skeleton Infobox
| name    =  
| name    =  
| title    = {{{name|}}}
| title    = {{{name|}}}
| image    = [[File:{{{image|}}}|250px]]
| image    = {{{image|}}}
| caption  = {{{caption|}}}
| caption  = {{{caption|}}}


| header1  = General info
| header1  = General info


| label1   = Owner
| label2   = Owner
data1   = {{{owner|}}}
data2   = {{{owner|}}}


| label2   = Foundation date
| label3   = Foundation date
data2   = {{#if:{{{foundation_year|}}}{{{foundation_month|}}}{{{foundation_day|}}}
data3   = {{#if:{{{foundation_year|}}}{{{foundation_month|}}}{{{foundation_day|}}}
             | {{#formatdate:{{{foundation_year}}}-{{#switch:{{#sub:{{lc:{{{foundation_month}}}}}|0|3}}
             | {{#formatdate:{{{foundation_day}}}.{{#switch:{{#sub:{{lc:{{{foundation_month}}}}}|0|3}}
               | jan = 01
               | jan = 01
               | feb = 02
               | feb = 02
Line 26: Line 26:
               | dec = 12
               | dec = 12
               | {{padleft:{{{foundation_month}}}|2}}
               | {{padleft:{{{foundation_month}}}|2}}
               }}-{{{foundation_day}}}}}}}
               }}.{{{foundation_year}}}}}}}
| label3 = Coördinates
| label4 = Coördinates
| data3  = {{#if:{{{xcoord|}}}|X={{{xcoord|}}} <br /> Y={{{ycoord|}}} <br /> Z={{{zcoord|}}}|}}
| data4 = {{#if:{{{xcoord|}}}|X = {{{xcoord|}}}<br />Y = {{{ycoord|}}}<br />Z = {{{zcoord|}}}|}}<br />[http://map.moxiecraft.org:{{#switch:{{lc:{{{world|Terrafirma}}}}}|luna=25580|terrafirma=26346|#default=26346}}/#{{#switch:{{lc:{{{world|Terrafirma}}}}}|luna=luna|terrafirma=terrafirma|#default=terrafirma}}:{{{xcoord|}}}:{{{ycoord|}}}:{{{zcoord|}}}:1500:0:0:0:0:perspective Map Link]


| header4 = Statistics
| label5  = World
| data5  = {{#switch:{{lc:{{{world|Terrafirma}}}}}
            | luna=[[Luna]]
            | terrafirma=[[Terrafirma]]
            | #default=[[Terrafirma]]
            }}


| label5  = Population
| header6 = Statistics
|  data5  = {{{population|}}}


| label6 = Width (X)
| label7 = Population
| data6  = {{{width|}}}
| data7  = {{{population|}}}


| label7 = Length (Z)
| label8 = Width (X)
| data7  = {{{length|}}}
| data8  = {{{width|}}}


| header9 = Transport
| label9  = Length (Z)
| data9  = {{{length|}}}


| label10 = Road Connection
| header10 = Transport
|  data10 = {{{road|No}}}


| label11 = Rail Connection
| label11 = Road Connection
data11 = {{{rail|No}}}
| data11 = {{{road|No}}}


| label12 = Boat Route
| label12 = Rail Connection
data12 = {{{boat_route|No}}}
| data12 = {{{rail|No}}}


| label13 = Warp
| label13 = Boat Route
data13 = {{{warp|No}}}
| data13  = {{{boat_route|No}}}
| label14 = Warp Name
 
data14 = {{{warp_name|}}}
| label14 = Warp
| data14 = {{#ifeq:{{lc:{{{warp|}}}}}|yes|Yes[[Category:Warps|{{uc:{{{name|}}}}}]]|No}}
 
| label15 = Warp Name
| data15 = {{{warp_name|}}}
}}
}}
<templatedata>
[[Category:Settlements]]</includeonly>
<noinclude><templatedata>
{
{
  "description": "Infobox for displaying general, statistical, and transport information.",
"description": "Infobox for a settlement on the server",
  "params": {
"params": {
    "name": {
"name": {
      "label": "Name",
"label": "Name",
      "description": "Name of the settlement",
"description": "Name of the settlement",
      "type": "string",
"type": "string",
      "required": true
"required": true
    },
},
    "image": {
"image": {
      "label": "Image",
"label": "Image",
      "description": "Filename of an image to display",
"description": "Filename of an image to display",
      "type": "string",
"type": "wiki-file-name",
      "required": false
"required": false
    },
},
    "caption": {
"caption": {
      "label": "Image caption",
"label": "Image caption",
      "description": "Caption for the image",
"description": "Caption for the image",
      "type": "string",
"type": "string",
      "required": false
"required": false
    },
},
    "owner": {
"owner": {
      "label": "Owner",
"label": "Owner",
      "description": "Owner of the settlement",
"description": "Owner of the settlement",
      "type": "string",
"type": "string",
      "required": false
"required": false,
    },
"example": "{{playerhead|SiOtter}}"
    "foundation_year": {
},
      "label": "Foundation Year",
"foundation_year": {
      "description": "Year the settlement was founded",
"label": "Foundation Year",
      "type": "number",
"description": "Year the settlement was founded",
      "required": false
"type": "number",
    },
"required": false
    "foundation_month": {
},
      "label": "Foundation Month",
"foundation_month": {
      "description": "Month the settlement was founded (e.g., Jan, Feb, etc. or number)",
"label": "Foundation Month",
      "type": "string",
"description": "Month the settlement was founded (e.g., Jan, Feb, etc. or number)",
      "required": false
"type": "string",
    },
"required": false
    "foundation_day": {
},
      "label": "Foundation Day",
"foundation_day": {
      "description": "Day of the month the settlement was founded",
"label": "Foundation Day",
      "type": "number",
"description": "Day of the month the settlement was founded",
      "required": false
"type": "number",
    },
"required": false
    "xcoord": {
},
      "label": "X Coordinate",
"xcoord": {
      "description": "X coordinate of the settlement",
"label": "X Coordinate",
      "type": "number",
"description": "X coordinate of the settlement",
      "required": true
"type": "number",
    },
"required": true
    "ycoord": {
},
      "label": "Y Coordinate",
"ycoord": {
      "description": "Y coordinate of the settlement",
"label": "Y Coordinate",
      "type": "number",
"description": "Y coordinate of the settlement",
      "required": true
"type": "number",
    },
"required": true
    "zcoord": {
},
      "label": "Z Coordinate",
"zcoord": {
      "description": "Z coordinate of the settlement",
"label": "Z Coordinate",
      "type": "number",
"description": "Z coordinate of the settlement",
      "required": true
"type": "number",
    },
"required": true
    "population": {
},
      "label": "Population",
"population": {
      "description": "Population of the settlement",
"label": "Population",
      "type": "number",
"description": "Population of the settlement",
      "required": false
"type": "number",
    },
"required": false
    "width": {
},
      "label": "Width (X)",
"width": {
      "description": "Width of the area in the X direction",
"label": "Width (X)",
      "type": "number",
"description": "Width of the area in the X direction",
      "required": false
"type": "number",
    },
"required": false
    "length": {
},
      "label": "Length (Z)",
"length": {
      "description": "Length of the area in the Z direction",
"label": "Length (Z)",
      "type": "number",
"description": "Length of the area in the Z direction",
      "required": false
"type": "number",
    },
"required": false
    "road": {
},
      "label": "Road Connection",
"road": {
      "description": "Indicates if there is a road connection (Yes/No)",
"label": "Road Connection",
      "type": "string",
"description": "Indicates if there is a road connection (Yes/No)",
      "required": false
"type": "string",
    },
"required": false
  "rail": {
},
      "label": "Rail Connection",
"rail": {
      "description": "Indicates if there is a rail connection (Yes/No)",
"label": "Rail Connection",
      "type": "string",
"description": "Indicates if there is a rail connection (Yes/No)",
      "required": false
"type": "string",
    },
"required": false
    "boat_route": {
},
      "label": "Boat Route",
"boat_route": {
      "description": "Indicates if there is a boat route at the settlement(Yes/No)",
"label": "Boat Route",
      "type": "string",
"description": "Indicates if there is a boat route at the settlement(Yes/No)",
      "required": false
"type": "string",
    },
"required": false
    "warp": {
},
      "label": "Warp",
"warp": {
      "description": "Indicates if the settlement has a warp (Yes/No).",
"label": "Warp",
      "type": "string",
"description": "Indicates if the settlement has a warp (Yes/No).",
      "required": false
"type": "string",
    },
"required": false
    "warp_name": {
},
      "label": "Warp Name",
"warp_name": {
      "description": "Name of the warp, if applicable",
"label": "Warp Name",
      "type": "string",
"description": "Name of the warp, if isn't the town name straight up",
      "required": false
"type": "string",
    }
"required": false
  }
},
"world": {
"label": "World",
"description": "The world in which the settlement resides",
"example": "Terrafirma",
"type": "wiki-page-name",
"default": "Terrafirma",
"autovalue": "",
"suggested": true
}
},
"paramOrder": [
"name",
"image",
"caption",
"owner",
"foundation_year",
"foundation_month",
"foundation_day",
"xcoord",
"ycoord",
"zcoord",
"world",
"population",
"width",
"length",
"road",
"rail",
"boat_route",
"warp",
"warp_name"
]
}
}
</templatedata>
</templatedata></noinclude>

Latest revision as of 10:27, 30 May 2026

Infobox for a settlement on the server

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Namename

Name of the settlement

Stringrequired
Imageimage

Filename of an image to display

Fileoptional
Image captioncaption

Caption for the image

Stringoptional
Ownerowner

Owner of the settlement

Example
{{playerhead|SiOtter}}
Stringoptional
Foundation Yearfoundation_year

Year the settlement was founded

Numberoptional
Foundation Monthfoundation_month

Month the settlement was founded (e.g., Jan, Feb, etc. or number)

Stringoptional
Foundation Dayfoundation_day

Day of the month the settlement was founded

Numberoptional
X Coordinatexcoord

X coordinate of the settlement

Numberrequired
Y Coordinateycoord

Y coordinate of the settlement

Numberrequired
Z Coordinatezcoord

Z coordinate of the settlement

Numberrequired
Worldworld

The world in which the settlement resides

Default
Terrafirma
Example
Terrafirma
Auto value
Page namesuggested
Populationpopulation

Population of the settlement

Numberoptional
Width (X)width

Width of the area in the X direction

Numberoptional
Length (Z)length

Length of the area in the Z direction

Numberoptional
Road Connectionroad

Indicates if there is a road connection (Yes/No)

Stringoptional
Rail Connectionrail

Indicates if there is a rail connection (Yes/No)

Stringoptional
Boat Routeboat_route

Indicates if there is a boat route at the settlement(Yes/No)

Stringoptional
Warpwarp

Indicates if the settlement has a warp (Yes/No).

Stringoptional
Warp Namewarp_name

Name of the warp, if isn't the town name straight up

Stringoptional