Template

Infobox Station

From Dogcraft Wiki

No edit summary
No edit summary
Line 41: Line 41:
|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}}} }}|}}
|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  = Network
|label3  = Network
|data3  = {{#if:{{{network|}}}|{{{network|}}}|[[Survival Railway Network ({{{world|}}})]]}}
|data3  = {{#if:{{{network|}}}|{{{network|}}}|{{switch: {{{world|}}} | Survival 4 = [[Survival Railway Network (Survival 4)|Survival 4 {{{sur4subworld|}}} Railway Network]]|[[Survival Railway Network ({{{world|}}})]]}}}}
|label4  = Line
|label4  = Line
|data4  = {{{line|}}}
|data4  = {{{line|}}}
Line 136: Line 136:
"default": "Use for station pages on Survival 3 and Survival 4.",
"default": "Use for station pages on Survival 3 and Survival 4.",
"type": "string"
"type": "string"
},
"sur4subworld": {
"label": "Survival 4 Sub World",
"description": "If it's a Survival 4 station, is it on Husky or Beagle?",
"type": "string",
"suggested": true
}
}
}
},
"paramOrder": [
"title",
"image",
"caption",
"world",
"sur4subworld",
"network",
"line",
"xcoord",
"ycoord",
"zcoord",
"builders",
"opened",
"mainlines",
"sur1-2_secondarylines",
"sur3_branchlines"
]
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>

Revision as of 11:42, 10 May 2020

An infobox for usage on pages about Railway Stations.

Note

{{Infobox Station
|title        = 
|image        = 
|caption      = 
|world        = 
|sur4subworld = 
|network      = (leave blank to autofill to Survival Railway Network, dependent on the world input).
|line         = 
|builders     = 
|opened       = 
|xcoord       = 
|ycoord       = 
|zcoord       = 
|mainlines    = 
|sur3_branchlines      = 
|sur1-2_secondarylines      = 
}}


No description.

Template parameters

ParameterDescriptionTypeStatus
Station Nametitle

Defaults to page title.

Stringoptional
Imageimage

no description

Default
Image name, e.g "East_Station.png"
Stringoptional
Image Captioncaption

no description

Stringoptional
Worldworld

no description

Default
e.g Survival 1, Survival 2, Survival 3
Unknownoptional
Survival 4 Sub Worldsur4subworld

If it's a Survival 4 station, is it on Husky or Beagle?

Stringsuggested
Networknetwork

no description

Default
Leave blank for SRN.
Stringoptional
Lineline

no description

Default
Line the station is on (e.g East Line, Super Awesome Branch Line)
Stringoptional
X-Coordinatexcoord

no description

Numberoptional
Y-Coordinateycoord

no description

Numberoptional
Z-Coordinatezcoord

no description

Stringoptional
Buildersbuilders

People who built the station. Use <code>{{Player|<playername>}}</code> template

Stringoptional
Openedopened

Date of the station opening.

Stringoptional
Main Linesmainlines

no description

Stringoptional
Secondary Linessur1-2_secondarylines secondarylines

Use for station pages on Survival 1 and Survival 2.

Stringoptional
Branch Linessur3_branchlines branchlines

no description

Default
Use for station pages on Survival 3 and Survival 4.
Stringoptional
This page was last modified on 10 May 2020, at 11:42. (2 months ago)