Template
Interface template

Infobox Settlement

From Dogcraft Wiki

m (setting image format on single images to thumb, so the infobox image can't flash over the whole page width while loading. Setting concrete pixel widths in hopes that it helps with loading)
No edit summary
 
(13 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{{Infobox2
<includeonly>{{Infobox Locatable
|name        =  
|name        =  
|above        = {{#if:{{{title|}}}|{{{title|}}}|{{PAGENAME}}}}
|above        = {{#if:{{{title|}}}|{{{title|}}}|{{PAGENAME}}}}
|subheader    = {{WorldPills|{{{world|}}}|{{{sur4subworld|}}}}}
|subheader    = {{WorldPills|{{{world|}}}|{{{subworld|{{{sur4subworld|}}}}}}}}
|image        = {{#if:{{{image2|}}}|{{#tag:gallery
|image        = {{#if:{{{image2|}}}
|{{#if: {{{image|}}}|{{{image|}}}{{!}}{{{caption|}}}|}}
  |{{#if:{{{image|}}}|{{#if:{{{collage|}}}
{{{image2|}}}{{!}}{{{caption2|}}}
    |{{Collage
{{#if: {{{image3|}}}|{{{image3|}}}{{!}}{{{caption3|}}}|}}
      |photo1a = {{{image|}}}
{{#if: {{{image4|}}}|{{{image4|}}}{{!}}{{{caption4|}}}|}}|mode="slideshow"|widths="308px"}}|{{#if:{{{image|}}}|[[File:{{{image|}}}|306px|thumb]]|}}}}
      |photo2a = {{{image2|}}}
|caption      = {{#if:{{{image2|}}}||{{{caption|}}}}}
      |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
|header1      = Settlement
|label2  = World
|label2  = World
|data2  = {{WorldSwitch|{{{world}}}|{{{sur4subworld|}}}}}
|data2  = {{WorldSwitch|{{{world}}}|{{{subworld|{{{sur4subworld|}}}}}}}}
|label3  = Founded
|label3  = Founded
|data3  = {{{founded|}}}
|data3  = {{{founded|}}}
Line 24: Line 36:
|label8  = Transport
|label8  = Transport
|data8  = {{{railway|}}}{{#if:{{{nether|}}}|<br />{{{nether|}}}}}
|data8  = {{{railway|}}}{{#if:{{{nether|}}}|<br />{{{nether|}}}}}
}}[[Category:Settlements]]{{#if:{{WorldSwitch/World|{{{world}}}|{{{sur4subworld}}}}}|[[Category:{{WorldSwitch/World|{{{world}}}|{{{sur4subworld}}}}}]]|}}
|world = {{{world|Survival 6}}}
</includeonly>
|subworld = {{{subworld|{{{sur4subworld|sheltie}}}}}}
<noinclude>
|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 33: Line 47:
|caption      =  
|caption      =  
|world        =  
|world        =  
|sur4subworld =
|subworld =
|mayors      =  
|mayors      =  
|contributors =  
|contributors =  
Line 83: Line 97:
"required": true
"required": true
},
},
"sur4subworld": {
"subworld": {
"aliases": [
"aliases": [
"subworld"
"subworld"
],
],
"label": "Survival 4 server",
"label": "Sub-world",
"description": "Which of the Survival 4 servers is the settlement located on, Options: Husky, Beagle",
"description": "Which sub-world is this settlement on? (e.g. Husky, Beagle, Akita, Labrador, etc..)",
"example": "Husky",
"example": "Husky",
"type": "string",
"type": "string",
Line 181: Line 195:
}
}
</templatedata>
</templatedata>
</noinclude>

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.

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
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 namesuggested
Railwayrailway srn

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

Example
SRN Branch Line
Page namesuggested