Template:Infobox Settlement: Difference between revisions
More languages
More actions
No edit summary |
No edit summary |
||
(4 intermediate revisions by the same user not shown) | |||
Line 7: | Line 7: | ||
| header1 = General info |
| header1 = General info |
||
| |
| label2 = Owner |
||
| |
| data2 = {{{owner|}}} |
||
| |
| label3 = Foundation date |
||
| |
| data3 = {{#if:{{{foundation_year|}}}{{{foundation_month|}}}{{{foundation_day|}}} |
||
| {{#formatdate:{{{foundation_day}}}.{{#switch:{{#sub:{{lc:{{{foundation_month}}}}}|0|3}} |
| {{#formatdate:{{{foundation_day}}}.{{#switch:{{#sub:{{lc:{{{foundation_month}}}}}|0|3}} |
||
| jan = 01 |
| jan = 01 |
||
Line 27: | Line 27: | ||
| {{padleft:{{{foundation_month}}}|2}} |
| {{padleft:{{{foundation_month}}}|2}} |
||
}}.{{{foundation_year}}}}}}} |
}}.{{{foundation_year}}}}}}} |
||
| |
| label4 = Coördinates |
||
| |
| data4 = {{#if:{{{xcoord|}}}|X = {{{xcoord|}}} <br /> Y = {{{ycoord|}}} <br /> Z = {{{zcoord|}}}|}} |
||
| |
| header5 = Statistics |
||
| |
| label6 = Population |
||
| |
| data6 = {{{population|}}} |
||
| |
| label7 = Width (X) |
||
| |
| data7 = {{{width|}}} |
||
| |
| label8 = Length (Z) |
||
| |
| data8 = {{{length|}}} |
||
| header9 = Transport |
| header9 = Transport |
||
Line 53: | Line 53: | ||
| label13 = Warp |
| label13 = Warp |
||
| data13 = {{#ifeq:{{lc:{{{warp|}}}}}|yes| |
| data13 = {{#ifeq:{{lc:{{{warp|}}}}}|yes|Yes[[Category:Warps|{{uc:{{{name|}}}}}]]|No}} |
||
| label14 = Warp Name |
| label14 = Warp Name |
||
| data14 = {{{warp_name|}}} |
| data14 = {{{warp_name|}}} |
||
Line 166: | Line 166: | ||
"warp_name": { |
"warp_name": { |
||
"label": "Warp Name", |
"label": "Warp Name", |
||
"description": "Name of the warp, if |
"description": "Name of the warp, if isn't the town name straight up", |
||
"type": "string", |
"type": "string", |
||
"required": false |
"required": false |
Latest revision as of 15:31, 13 August 2025
Infobox for a settlement on the server
Parameter | Description | Type | Status | |
---|---|---|---|---|
Name | name | Name of the settlement | String | required |
Image | image | Filename of an image to display | File | optional |
Image caption | caption | Caption for the image | String | optional |
Owner | owner | Owner of the settlement | String | optional |
Foundation Year | foundation_year | Year the settlement was founded | Number | optional |
Foundation Month | foundation_month | Month the settlement was founded (e.g., Jan, Feb, etc. or number) | String | optional |
Foundation Day | foundation_day | Day of the month the settlement was founded | Number | optional |
X Coordinate | xcoord | X coordinate of the settlement | Number | required |
Y Coordinate | ycoord | Y coordinate of the settlement | Number | required |
Z Coordinate | zcoord | Z coordinate of the settlement | Number | required |
Population | population | Population of the settlement | Number | optional |
Width (X) | width | Width of the area in the X direction | Number | optional |
Length (Z) | length | Length of the area in the Z direction | Number | optional |
Road Connection | road | Indicates if there is a road connection (Yes/No) | String | optional |
Rail Connection | rail | Indicates if there is a rail connection (Yes/No) | String | optional |
Boat Route | boat_route | Indicates if there is a boat route at the settlement(Yes/No) | String | optional |
Warp | warp | Indicates if the settlement has a warp (Yes/No). | String | optional |
Warp Name | warp_name | Name of the warp, if isn't the town name straight up | String | optional |