Template
Interface template

Infobox Settlement

From Dogcraft Wiki

No edit summary
m (Attempting to depracate (via templatedata) the railway and nether parameters in favor of transport)
 
(28 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}}}}}
|header8 = {{#if: {{{transport|}}} | Transport }}
|label9  = Transport
|data9  = {{#if: {{{transport|}}} | {{{transport|}}} | {{{railway|}}}{{#if:{{{nether|}}}|<br />{{{nether|}}}}} }}
|label10 = Teleport
|data10 = {{{teleport|{{{phome|}}}}}}
|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 50:
|caption      =  
|caption      =  
|world        =  
|world        =  
|subworld =
|mayors      =  
|mayors      =  
|contributors =  
|contributors =  
Line 18: Line 63:
}}
}}
</pre>
</pre>
</noinclude>
<includeonly>{{Infobox
|name        =
|bodystyle    =
|title        = {{#if:{{{title|}}}|{{{title|}}}|{{PAGENAME}}}}
|titlestyle  =
|image        = {{#if:{{{image|}}}|[[File:{{{image|}}}|250px]]}}
|imagestyle  =
|caption      = {{{caption|<br />}}}
|captionstyle = color:#000;
|headerstyle  = background:#8b0024; color:#fff;
|labelstyle  = padding: 3px;
|datastyle    = padding: 3px;
|header1 = {{Large|Settlement}}
|label2  = World
|data2  = {{#if: {{{world}}} | {{#switch: {{{world}}} | Survival = [[Survival]] | Survival 1 = [[Survival 1]] | Survival 2 = [[Survival 2]] | Survival 3 = [[Survival 3]] | Survival 4 = {{#switch: {{{sur4subworld|}}} | Husky = [[Survival 4]] (Husky) | Beagle = [[Survival 4]] (Beagle)) | [[Survival 4]]}} | Amplified = [[Amplified]] | Skyblock = [[Skyblock]] | Creative = [[Creative]] | MCMMO = [[MCMMO]] | {{{world}}} }}|}}
|label3  = <nowiki>Mayor(s)</nowiki>
|data3  = {{{mayors|}}}
|label4  = Contributors
|data4  = {{{contributors|}}}
|label5  = Founded
|data5  = {{{founded|}}}
|label6  = Location
|data6  = {{#if:{{{xcoord|}}}|X={{{xcoord|}}} <br /> Y={{{ycoord|}}} <br /> Z={{{zcoord|}}}|}}
|label7  = Dimension
|data7  = {{{dimension|Overworld}}}
|label8  = [[Status]]
|data8  = {{{status|Unknown}}}
|header9 = {{#if: {{{nether}}}|{{Large|Transport}}|}}
|label10  = Railway
|data10  = {{{railway|}}}
|label11  = Nether
|data11  = {{{nether|}}}
|header12 = {{#switch: {{#if: {{{dimension|}}}|{{{dimension|}}}|Overworld}} | Overworld = {{#if: {{{sur4subworld|}}} | {{#if:{{{xcoord|}}} | [https://dogcraft.net/map/{{{sur4subworld|}}}?zoom=3&x={{{xcoord|0}}}&z={{{zcoord|0}}}  <span class="fa fa-map-marker"></span>&nbsp;View on Map]|}}|}}|}}
}}


[[Category:Settlements]]
<templatedata>
</includeonly>
{
"params": {
"title": {
"label": "Header",
"description": "Infobox header, for use when it should be different from the pagename.",
"type": "string",
"autovalue": "{{subst:PAGENAME}}"
},
"image": {
"type": "wiki-file-name",
"autovalue": "",
"aliases": [
"picture",
"file",
"img"
],
"label": "Image",
"description": "The name of an image (without \"File:\") to display at the top of the infobox.",
"example": "Examplet.png",
"required": true
},
"caption": {
"label": "Caption",
"description": "Description of the Image parameter",
"type": "string",
"suggested": true
},
"world": {
"label": "World",
"description": "The world in which the settlement was built. Options: Survival, Survival 1, Survival 2, Survival 3, Survival 4, Amplified, Skyblock, Creative, MCMMO, other.",
"example": "Survival 4",
"type": "string",
"default": "Survival 4",
"required": true
},
"subworld": {
"aliases": [
"subworld"
],
"label": "Sub-world",
"description": "Which sub-world is this settlement on? (e.g. Husky, Beagle, Akita, Labrador, etc..)",
"example": "Husky",
"type": "string",
"required": true
},
"mayors": {
"aliases": [
"mayor"
],
"label": "Mayor(s)",
"description": "The leader(s) of the settlement. Use {{Player|<playername>}}",
"example": "{{Player|Example}}",
"type": "string",
"suggested": true
},
"contributors": {
"aliases": [
"builders"
],
"label": "Contributor(s)",
"description": "Major contributors to the settlement. Use {{Player|<playername>}}",
"example": "{{Player|Example}}",
"type": "string",
"suggested": true
},
"founded": {
"label": "Founded",
"description": "The date of the founding of the settlement",
"type": "date",
"suggested": true
},
"xcoord": {
"label": "X-coordinate",
"description": "The x coordinate of the settlement's location.",
"example": "0",
"type": "number",
"required": true
},
"ycoord": {
"label": "Y-coordinate",
"description": "The y coordinate of the settlement's location (height)",
"example": "64",
"type": "number",
"autovalue": "64",
"suggested": true
},
"zcoord": {
"label": "Z-coordinate",
"description": "The z coordinate of the settlement's location.",
"example": "0",
"type": "number",
"required": true
},
"dimension": {
"label": "Dimension",
"description": "The dimension in which the settlement is located.",
"example": "Overworld",
"type": "string",
"default": "Overworld",
"autovalue": ""
},
"status": {
"label": "Status",
"description": "Expects one of the [[Status|status templates]]. Use {{Defunct}} for settlements on past worlds.",
"example": "{{Active}}",
"type": "wiki-template-name",
"required": true
},
"nether": {
"aliases": [
"ntn"
],
"label": "Nether access",
"description": "Name of the NTN line, door, or station from which the settlement can be accessed, if there is one.",
"example": "Nether Transport Network ",
"type": "wiki-page-name",
"deprecated": "Use Transport instead"
},
"railway": {
"aliases": [
"srn"
],
"label": "Railway",
"description": "Name of the railway or station by which the settlement can be accessed, if there is one.",
"example": "SRN Branch Line",
"type": "wiki-page-name",
"deprecated": "Use Transport instead"
},
"transport": {
"label": "Transport",
"description": "Name of the railway, road, station, stop, port or shelter by which the settlement can be accessed, if there is one.",
"example": "{{RHN|Egg Shelter}} (on Egg Road), {{CSC|Egg Port}}, {{SRN|Egg Station}} (on North Line), {{NTN|Egg Stop}} (on North Line)",
"type": "string",
"suggested": true
},
"teleport": {
"aliases": [
"phome"
],
"label": "Teleport",
"description": "Name of the phome by which the settlement can be accessed, if there is one.",
"example": "{{Phome|Egg Town}}",
"type": "string",
"suggested": true
}
},
"description": "Infobox template to be used on ingame settlements (towns, cities, ect.) on the server.",
"format": "block",
"paramOrder": [
"title",
"image",
"caption",
"world",
"subworld",
"mayors",
"contributors",
"founded",
"xcoord",
"ycoord",
"zcoord",
"transport",
"teleport",
"dimension",
"status",
"nether",
"railway"
]
}
</templatedata>

Latest revision as of 23:57, 31 July 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.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Headertitle

Infobox header, for use when it should be different from the pagename.

Auto value
{{subst:PAGENAME}}
Stringoptional
Imageimage picture file img

The name of an image (without "File:") to display at the top of the infobox.

Example
Examplet.png
Auto value
Filerequired
Captioncaption

Description of the Image parameter

Stringsuggested
Worldworld

The world in which the settlement was built. Options: Survival, Survival 1, Survival 2, Survival 3, Survival 4, Amplified, Skyblock, Creative, MCMMO, other.

Default
Survival 4
Example
Survival 4
Stringrequired
Sub-worldsubworld subworld

Which sub-world is this settlement on? (e.g. Husky, Beagle, Akita, Labrador, etc..)

Example
Husky
Stringrequired
Mayor(s)mayors mayor

The leader(s) of the settlement. Use {{Player|<playername>}}

Example
{{Player|Example}}
Stringsuggested
Contributor(s)contributors builders

Major contributors to the settlement. Use {{Player|<playername>}}

Example
{{Player|Example}}
Stringsuggested
Foundedfounded

The date of the founding of the settlement

Datesuggested
X-coordinatexcoord

The x coordinate of the settlement's location.

Example
0
Numberrequired
Y-coordinateycoord

The y coordinate of the settlement's location (height)

Example
64
Auto value
64
Numbersuggested
Z-coordinatezcoord

The z coordinate of the settlement's location.

Example
0
Numberrequired
Transporttransport

Name of the railway, road, station, stop, port or shelter by which the settlement can be accessed, if there is one.

Example
{{RHN|Egg Shelter}} (on Egg Road), {{CSC|Egg Port}}, {{SRN|Egg Station}} (on North Line), {{NTN|Egg Stop}} (on North Line)
Stringsuggested
Teleportteleport phome

Name of the phome by which the settlement can be accessed, if there is one.

Example
{{Phome|Egg Town}}
Stringsuggested
Dimensiondimension

The dimension in which the settlement is located.

Default
Overworld
Example
Overworld
Auto value
Stringoptional
Statusstatus

Expects one of the [[Status|status templates]]. Use {{Defunct}} for settlements on past worlds.

Example
{{Active}}
Templaterequired
Nether accessnether ntn

Name of the NTN line, door, or station from which the settlement can be accessed, if there is one.

Example
Nether Transport Network
Page namedeprecated
Railwayrailway srn

Name of the railway or station by which the settlement can be accessed, if there is one.

Example
SRN Branch Line
Page namedeprecated
Background Dragon Slayer - Retriever by Ironboundred