Template

Infobox Station

From Dogcraft Wiki

No edit summary
No edit summary
 
(11 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<noinclude>
<includeonly>{{Infobox Locatable
An infobox for usage on pages about Railway Stations.
 
==== Note ====
* sur3_branchlines is for use on stations in the [[Survival 3]] world.
* sur1-2_secondarylines is for use on stations in the [[Survival 2]] / [[Survival 1]] world.
<pre>
{{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      =
}}
</pre>
</noinclude>
<includeonly>{{Infobox
|name        =  
|name        =  
|bodystyle    =
|above       = {{#if:{{{title|}}}|{{{title|}}}|{{PAGENAME}}}}
|title       = {{#if:{{{title|}}}|{{{title|}}}|{{PAGENAME}}}}
|subheader    = {{WorldPills|{{{world|}}}|{{{subworld|{{{sur4subworld|}}}}}}}}
|titlestyle  =  
|image        = {{#if:{{{image2|}}}|{{#tag:gallery
|image        = {{#if:{{{image|}}}|[[File:{{{image|}}}|250px]]}}
|{{#if: {{{image|}}}|{{{image|}}}{{!}}{{{caption|}}}|}}
|imagestyle  =
{{{image2|}}}{{!}}{{{caption2|}}}
|caption      = {{{caption|}}}
{{#if: {{{image3|}}}|{{{image3|}}}{{!}}{{{caption3|}}}|}}
|captionstyle = color:#000;
{{#if: {{{image4|}}}|{{{image4|}}}{{!}}{{{caption4|}}}|}}|mode="slideshow"|widths="308px"}}|{{#if:{{{image|}}}|[[File:{{{image|}}}|306px|thumb]]|}}}}
|headerstyle  = background:#3C8DBC; color:#fff;
|caption      = {{#if:{{{image2|}}}||{{{caption|}}}}}
|labelstyle  = padding: 3px;
|header1      = Station
|datastyle    = padding: 3px;
|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]] | Survival 4 = {{#switch: {{{sur4subworld|}}} | Husky = [[Survival 4]] (Husky) | Beagle = [[Survival 4]] (Beagle)) | [[Survival 4]]}} | Amplified = [[Amplified]] | Skyblock = [[Skyblock]] | Creative = [[Creative]] | MCMMO = [[MCMMO]] | {{{world}}} }}|}}
|data2  = {{WorldSwitch|{{{world}}}|{{{subworld|{{{sur4subworld|}}}}}}}}
|label3  = Network
|label3  = Network
|data3  = {{#if:{{{network|}}}|{{{network|}}}|{{#switch: {{{world|}}} | Survival 4 = [[Survival Railway Network (Survival 4)|Survival 4 {{{sur4subworld|}}} Railway Network]]|[[Survival Railway Network ({{{world|}}})]]}}}}
|data3  = {{#if:{{{network|}}}|{{{network|}}}|{{WorldSwitch|{{{world}}}|{{{subworld|{{{sur4subworld|}}}}}}|mode=Network}}}}
|label4  = Line
|label4  = Line
|data4  = {{{line|}}}
|data4  = {{{line|}}}
|label5  = Location
|label5  = Opened
|data5  = {{#if:{{{xcoord|}}}|X={{{xcoord|}}} <br /> Y={{{ycoord|}}} <br /> Z={{{zcoord|}}}|}}
|data5  = {{{opened|}}}
|label6  = Builder(s)
|label6  = <nowiki>Builder(s)</nowiki>
|data6  = {{{builders|}}}
|data6  = {{{builders|}}}
|label7  = Opened
|label7  = Location
|data7 = {{{opened|}}}
|data7   = {{#if:{{{xcoord|}}}|X= {{{xcoord|}}}{{#if:{{{ycoord|}}}|<br /> Y= {{{ycoord|}}}}}<br /> Z= {{{zcoord|}}}|}}
|header8 = {{Large|Station Stats}}
|label8 = NTN Connection
|label10  = N<u>°</u> of Main Lines
|data8  = {{{ntnconnection|}}}
|data10  = {{{mainlines|}}}
|label9  = Connections
|label11  = N<u>°</u> of Secondary Lines
|data9  = {{#if:{{{mainlines|}}}|<span class="playername" style="white-space:nowrap;">[[File:Main Connections Icon.png|24px|Main-line connections]]{{{mainlines|}}}</span>|}}&nbsp;{{#if:{{{branchlines|}}}|<span class="playername" style="white-space:nowrap;">[[File:Branch Connections Icon.png|24px|Branch connections]]{{{branchlines|}}}</span>|}}
|data11  = {{{sur1-2_secondarylines|}}}
|world = {{{world|Survival 6}}}
|label12 = N<u>°</u> of Branch Lines
|subworld = {{{subworld|{{{sur4subworld|sheltie}}}}}}
|data12  = {{{sur3_branchlines|}}}
|xcoord = {{{xcoord|0}}}
|header13 = {{#switch: 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]|}}|}}|}}
|zcoord = {{{zcoord|0}}}
}}
[[Category:Stations]][[Category:Builds]]{{#if:{{WorldSwitch/World|{{{world}}}|{{{subworld|{{{sur4subworld|}}}}}}}}|[[Category:{{WorldSwitch/World|{{{world}}}|{{{subworld|{{{sur4subworld|}}}}}}}}]]|}}</includeonly>


<noinclude>
{{Infobox Station
|title        = Spawn Station
|image        = 2018-11-21_18.13.23.png
|caption      = [[Spawn Station (Survival 2)|Spawn Station]] on Survival 2
|world        = Survival 2
|subworld    =
|network      =
|line        = North Line
|builders    = {{Player|_edo}}<br/>{{Player|Brianetta}}<br/>{{Player|darparniox}}
|opened      = September 2<sup>nd</sup>, 2017
|xcoord      = -1775
|ycoord      =
|zcoord      = 2490
|mainlines    = 2
|branchlines  = 0
}}
}}
An infobox for railway network stations.


[[Category:Stations]]
<pre>
</includeonly>
{{Infobox Station
<noinclude>
|title           =
<templatedata>
|image           =
{
|caption         =
"params": {
|world           =
"title": {
|subworld        =
"label": "Station Name",
|network         =
"description": "Defaults to page title.",
|line           =
"type": "string"
|builders        =
},
|opened          =
"image": {
|xcoord         =
"label": "Image",
|ycoord         =
"type": "string",
|zcoord         =
"default": "Image name, e.g \"East_Station.png\""
|ntnconnection  =
},
|mainlines      =
"caption": {
|branchlines    =
"label": "Image Caption",
}}
"type": "string"
</pre>
},
{{clear}}
"world": {
"label": "World",
"default": "e.g Survival 1, Survival 2, Survival 3"
},
"network": {
"label": "Network",
"type": "string",
"default": "Leave blank for SRN."
},
"line": {
"label": "Line",
"type": "string",
"default": "Line the station is on (e.g East Line, Super Awesome Branch Line)"
},
"xcoord": {
"label": "X-Coordinate",
"type": "number"
},
"ycoord": {
"label": "Y-Coordinate",
"type": "number"
},
"zcoord": {
"label": "Z-Coordinate",
"type": "string"
},
"builders": {
"label": "Builders",
"type": "string",
"description": "People who built the station. Use <code>{{Player|<playername>}}</code> template"
},
"opened": {
"label": "Opened",
"type": "string",
"description": "Date of the station opening."
},
"mainlines": {
"label": "Main Lines",
"type": "string"
},
"sur1-2_secondarylines": {
"aliases": [
"secondarylines"
],
"label": "Secondary Lines",
"description": "Use for station pages on Survival 1 and Survival 2.",
"type": "string"
},
"sur3_branchlines": {
"aliases": [
"branchlines"
],
"label": "Branch Lines",
"default": "Use for station pages on Survival 3 and Survival 4.",
"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>
</noinclude>

Latest revision as of 15:57, 13 February 2024


Spawn Station
Survival 2
2018-11-21 18.13.23.png
Spawn Station on Survival 2
Station
WorldSurvival 2
NetworkSurvival Railway Network (Survival 2)
LineNorth Line
OpenedSeptember 2nd, 2017
Builder(s)20.png _edo
20.png Brianetta
20.png darparniox
LocationX= -1775
Z= 2490
ConnectionsMain-line connections2 Branch connections0


An infobox for railway network stations.

{{Infobox Station
|title           = 
|image           = 
|caption         = 
|world           = 
|subworld        = 
|network         =
|line            = 
|builders        = 
|opened          = 
|xcoord          = 
|ycoord          = 
|zcoord          = 
|ntnconnection   =
|mainlines       = 
|branchlines     = 
}}