Template
Infobox Settlement
From Dogcraft Wiki
m (Appending edit summary: Adding template data) |
No edit summary |
||
(20 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <includeonly>{{Infobox Locatable | ||
|name = | |||
|above = {{#if:{{{title|}}}|{{{title|}}}|{{PAGENAME}}}} | |||
|subheader = {{WorldPills|{{{world|}}}|{{{subworld|{{{sur4subworld|}}}}}}}} | |||
|image = {{#if:{{{image2|}}} | |||
|{{#if:{{{image|}}}|{{#if:{{{collage|}}} | |||
|{{Collage | |||
|photo1a = {{{image|}}} | |||
|photo2a = {{{image2|}}} | |||
|photo2b = {{#if: {{{image3|}}}|{{{image3|}}}}} | |||
|photo3a = {{#if: {{{image4|}}}|{{{image4|}}}}} | |||
|photo3b = {{#if: {{{image5|}}}|{{{image5|}}}}} | |||
}}}} | |||
|{{#tag:gallery | |||
|{{#if: {{{image|}}}|{{{image|}}}{{!}}{{{caption|}}}|}} | |||
{{{image2|}}}{{!}}{{{caption2|}}} | |||
{{#if: {{{image3|}}}|{{{image3|}}}{{!}}{{{caption3|}}}|}} | |||
{{#if: {{{image4|}}}|{{{image4|}}}{{!}}{{{caption4|}}}|}} | |||
|mode="slideshow"|widths="308px"}} | |||
}} | |||
|{{#if:{{{image|}}}|[[File:{{{image|}}}|306px|thumb]]|}}}} | |||
|caption = {{#if:{{{image2|}}}|{{#if:{{{collage|}}}|'''Clockwise from top''': {{{caption|}}}{{#if:{{{caption2|}}}|, {{{caption2|}}}}}{{#if:{{{caption3|}}}|, {{{caption3|}}}}}{{#if:{{{caption4|}}}|, {{{caption4|}}}}}|}}{{#if:{{{caption5|}}}|, {{{caption5|}}}}}|{{{caption|}}}}} | |||
|header1 = Settlement | |||
|label2 = World | |||
|data2 = {{WorldSwitch|{{{world}}}|{{{subworld|{{{sur4subworld|}}}}}}}} | |||
|label3 = Founded | |||
|data3 = {{{founded|}}} | |||
|label4 = <nowiki>Mayor(s)</nowiki> | |||
|data4 = {{{mayors|}}} | |||
|label5 = Contributors | |||
|data5 = {{{contributors|}}} | |||
|label6 = Location | |||
|data6 = {{#if:{{{xcoord|}}}|X= {{{xcoord|}}}{{#if:{{{ycoord|}}}|<br /> Y= {{{ycoord|}}}}}<br /> Z= {{{zcoord|}}}|}} | |||
|label7 = {{#ifeq:{{{dimension|Overworld}}}|Overworld||Dimension}} | |||
|data7 = {{#ifeq:{{{dimension|Overworld}}}|Overworld||{{{dimension}}}}} | |||
|label8 = Transport | |||
|data8 = {{{railway|}}}{{#if:{{{nether|}}}|<br />{{{nether|}}}}} | |||
|world = {{{world|Survival 6}}} | |||
|subworld = {{{subworld|{{{sur4subworld|sheltie}}}}}} | |||
|xcoord = {{{xcoord|0}}} | |||
|zcoord = {{{zcoord|0}}} | |||
}}[[Category:Settlements]]{{#if:{{WorldSwitch/World|{{{world}}}|{{{subworld|{{{sur4subworld|}}}}}}}}|[[Category:{{WorldSwitch/World|{{{world}}}|{{{subworld|{{{sur4subworld|}}}}}}}}]]|}}</includeonly><noinclude>{{Interface template}}[[Category:Infoboxes]] | |||
<pre> | <pre> | ||
{{Infobox Settlement | {{Infobox Settlement | ||
Line 6: | Line 47: | ||
|caption = | |caption = | ||
|world = | |world = | ||
| | |subworld = | ||
|mayors = | |mayors = | ||
|contributors = | |contributors = | ||
Line 19: | Line 60: | ||
}} | }} | ||
</pre> | </pre> | ||
<templatedata> | <templatedata> | ||
{ | { | ||
Line 94: | Line 97: | ||
"required": true | "required": true | ||
}, | }, | ||
" | "subworld": { | ||
"aliases": [ | "aliases": [ | ||
"subworld" | "subworld" | ||
], | ], | ||
"label": " | "label": "Sub-world", | ||
"description": "Which | "description": "Which sub-world is this settlement on? (e.g. Husky, Beagle, Akita, Labrador, etc..)", | ||
"example": "Husky", | "example": "Husky", | ||
"type": "string", | "type": "string", | ||
Line 192: | Line 195: | ||
} | } | ||
</templatedata> | </templatedata> | ||
Latest revision as of 16:00, 13 February 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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Header | title | Infobox header, for use when it should be different from the pagename.
| String | optional |
Image | image picture file img | The name of an image (without "File:") to display at the top of the infobox.
| File | required |
Caption | caption | Description of the Image parameter | String | suggested |
World | world | The world in which the settlement was built. Options: Survival, Survival 1, Survival 2, Survival 3, Survival 4, Amplified, Skyblock, Creative, MCMMO, other.
| String | required |
Sub-world | subworld subworld | Which sub-world is this settlement on? (e.g. Husky, Beagle, Akita, Labrador, etc..)
| String | required |
Mayor(s) | mayors mayor | The leader(s) of the settlement. Use {{Player|<playername>}}
| String | suggested |
Contributor(s) | contributors builders | Major contributors to the settlement. Use {{Player|<playername>}}
| String | suggested |
Founded | founded | The date of the founding of the settlement | Date | suggested |
X-coordinate | xcoord | The x coordinate of the settlement's location.
| Number | required |
Y-coordinate | ycoord | The y coordinate of the settlement's location (height)
| Number | suggested |
Z-coordinate | zcoord | The z coordinate of the settlement's location.
| Number | required |
Dimension | dimension | The dimension in which the settlement is located.
| String | optional |
Status | status | Expects one of the [[Status|status templates]]. Use {{Defunct}} for settlements on past worlds.
| Template | required |
Nether access | nether ntn | Name of the NTN line, door, or station from which the settlement can be accessed, if there is one.
| Page name | suggested |
Railway | railway srn | Name of the railway or station by which the settlement can be accessed, if there is one.
| Page name | suggested |