Template

Infobox Station

From Dogcraft Wiki

No edit summary
No edit summary
Line 11: Line 11:
|caption      =  
|caption      =  
|world        =  
|world        =  
|sur4subworld =
|network      = (leave blank to autofill to Survival Railway Network, dependent on the world input).
|network      = (leave blank to autofill to Survival Railway Network, dependent on the world input).
|line        =  
|line        =  
Line 38: Line 39:
|header1 = {{Large|Station}}
|header1 = {{Large|Station}}
|label2  = World
|label2  = World
|data2  = {{#if: {{{world}}} | {{#switch: {{{world}}} | Survival = [[Survival]] | Survival 1 = [[Survival 1]] | Survival 2 = [[Survival 2]] | Survival 3 = [[Survival 3]] | 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|}}}|[[Survival Railway Network ({{{world|}}})]]}}
Line 56: Line 57:
|label12  = N<u>°</u> of Branch Lines
|label12  = N<u>°</u> of Branch Lines
|data12  = {{{sur3_branchlines|}}}
|data12  = {{{sur3_branchlines|}}}
|header13 = {{#switch: {{#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]|}}|}}


}}
}}

Revision as of 11:39, 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
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:39. (2 months ago)
Background Dragon Slayer - Retriever by Ironboundred