Template

Infobox Transport

From Dogcraft Wiki

(Bugfix: Had forgotten to put link brackets around 'Category:Stations')
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|}}}}}
|label1  = World
|label1  = World
|data1  = {{WorldSwitch|{{{world}}}|{{{sur4subworld|}}}}}
|data1  = {{WorldSwitch|{{{world}}}|{{{subworld|{{{sur4subworld|}}}}}}}}
|label2  = Opened
|label2  = Opened
|data2  = {{{opened|}}}
|data2  = {{{opened|}}}
Line 21: Line 33:
|label6  = NTN Connection
|label6  = NTN Connection
|data6  = {{{ntnconnection|}}}
|data6  = {{{ntnconnection|}}}
|header7 = {{#if:{{{networkstation|}}}{{{line|}}}{{{mainlines|}}}{{{sur3_branchlines|}}}|Station}}
|label7  = Phome
   |label8 = Network
|data7  = {{{phome|}}}
   |data8   = {{#if:{{{networkstation|}}}|{{{networkstation|}}}|{{WorldSwitch|{{{world}}}|{{{sur4subworld}}}|mode=Network}}}}
|header8 = {{#if:{{{networkstation|}}}{{{line|}}}{{{mainlines|}}}{{{sur3_branchlines|}}}|Station}}
   |label9  = Line
   |label9 = Network
   |data9  = {{{line|}}}
   |data9   = {{#if:{{{networkstation|}}}|{{{networkstation|}}}|{{WorldSwitch|{{{world}}}|{{{subworld|{{{sur4subworld|}}}}}}|mode=Network}}}}
   |label10 = Connections
   |label10 = Line
   |data10 = {{#if:{{{mainlines|}}}|<span class="playername" style="white-space:nowrap;">[[File:Main Connections Icon.png|24px|Main-line connections]]{{{mainlines|}}}</span>|}}&nbsp;{{#if:{{{sur3_branchlines|{{{sur1-2_secondarylines|{{{branchlines|}}}}}}}}}|<span class="playername" style="white-space:nowrap;">[[File:Branch Connections Icon.png|24px|Branch connections]]{{{sur3_branchlines|{{{sur1-2_secondarylines|{{{branchlines|}}}}}}}}}</span>|}}
   |data10  = {{{line|}}}
|header11 = {{#if:{{{networkshelter|}}}|Shelter}}
   |label11 = Connections
   |label12 = Network
   |data11 = {{#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>|}}
   |data12 = {{{networkshelter|}}}
|header12 = {{#if:{{{networkshelter|}}}{{{roads|}}}|Shelter}}
|header13 = {{#if:{{{networkport|}}}|Port}}
   |label13 = Network
   |label14 = Network
   |data13 = {{{networkshelter|}}}
   |data14 = {{{networkport|}}}
  |label14 = Roads
}}{{#if:{{{networkstation|}}}{{{line|}}}{{{mainlines|}}}{{{sur3_branchlines|}}}|[[Category:Stations]]}}[[Category:Builds]]{{#if:{{WorldSwitch/World|{{{world}}}|{{{sur4subworld}}}}}|[[Category:{{WorldSwitch/World|{{{world}}}|{{{sur4subworld}}}}}]]|}}{{#if:{{{networkshelter|}}}|[[Category:Shelters]]}}{{#if:{{{networkport|}}}|[[Category:Ports]]}}
  |data14  = {{{roads|}}}
|header15 = {{#if:{{{networkport|}}}{{{adjoiningseas|}}}{{{adjoiningwaterways|}}}|Port}}
   |label16 = Network
   |data16 = {{{networkport|}}}
  |label17 = Adjoining Seas
  |data17  = {{{adjoiningseas|}}}
  |label18 = Adjoining Waterways
  |data18  = {{{adjoiningwaterways|}}}
|world = {{{world|Survival 6}}}
|subworld = {{{subworld|{{{sur4subworld|sheltie}}}}}}
|xcoord = {{{xcoord|0}}}
|zcoord = {{{zcoord|0}}}
}}{{#if:{{{networkstation|}}}{{{line|}}}{{{mainlines|}}}{{{sur3_branchlines|}}}|[[Category:Stations]]}}[[Category:Builds]]{{#if:{{WorldSwitch/World|{{{world}}}|{{{subworld|{{{sur4subworld|}}}}}}}}|[[Category:{{WorldSwitch/World|{{{world}}}|{{{subworld|{{{sur4subworld|}}}}}}}}]]|}}{{#if:{{{networkshelter|}}}{{{roads|}}}|[[Category:Shelters]]}}{{#if:{{{networkport|}}}{{{adjoiningseas|}}}{{{adjoiningwaterways|}}}|[[Category:Ports]]}}
</includeonly>
</includeonly>


<noinclude>
<noinclude>
{{Infobox Transport
{{Infobox Transport
|title         = Spawn Station
|title             = Spawn Station
|image         = 2018-11-21_18.13.23.png
|image             = 2018-11-21_18.13.23.png
|caption       = [[Spawn Station (Survival 2)|Spawn Station]] on Survival 2
|caption           = [[Spawn Station (Survival 2)|Spawn Station]] on Survival 2
|world         = Survival 5
|world             = Survival 5
|sur4subworld  = Labrador
|subworld          = Labrador
|builders       = {{Player|_edo}}<br/>{{Player|Brianetta}}<br/>{{Player|darparniox}}
|builders           = {{Player|_edo}}<br/>{{Player|Brianetta}}<br/>{{Player|darparniox}}
|contributors   = {{Player|_edo}}<br/>{{Player|Brianetta}}
|contributors       = {{Player|_edo}}<br/>{{Player|Brianetta}}
|opened         = September 2<sup>nd</sup>, 2017
|opened             = September 2<sup>nd</sup>, 2017
|xcoord         = -1775
|xcoord             = -1775
|ycoord         =  
|ycoord             = 65
|zcoord         = 2490
|zcoord             = 2490
|ntnconnection = North Tunnel Z=10
|ntnconnection     = North Tunnel Z=10
|networkstation = CRN
|networkstation     = CRN
|line           = North Line
|line               = North Line
|mainlines     = 2
|mainlines         = 2
|branchlines   = 0
|branchlines       = 1
|networkshelter = RHN
|networkshelter     = RHN
|networkport   = CSC
|roads              = Some Road
|networkport       = CSC
|adjoiningseas      = Spawn Sea
|adjoiningwaterways = Imaginary Waterway
}}
}}
An infobox for transport station connecting to multiple networks.
An infobox for transport stations connecting to multiple networks.


<pre>
<pre>
{{Infobox Transport
{{Infobox Transport
|title         =  
|title             =  
|image         =  
|image             =  
|caption       =  
|caption           =  
|world         =  
|world             =  
|sur4subworld  =
|subworld          =
|builders       =
|builders           =
|contributors   =
|contributors       =
|opened         =
|opened             =
|xcoord         =
|xcoord             =
|ycoord         =  
|ycoord             =  
|zcoord         =
|zcoord             =
|ntnconnection =
|ntnconnection     =
|networkstation =
|phome              =
|line           =
|networkstation     =
|mainlines     =
|line               =
|branchlines   =
|mainlines         =
|networkshelter =
|branchlines       =
|networkport   =
|networkshelter     =
|roads              =
|networkport       =
|adjoiningseas      =
|adjoiningwaterways =
}}
}}
</pre>
</pre>
<templatedata>
{
"params": {
"title": {
"default": "{{ROOTPAGENAME}}",
            "description": "The title of the tranport hub. Defaults to the title of the wiki page",
            "type": "string"
},
"image": {
"label": "image",
            "description": "The name of the image, including extension, to be used in the infobox",
"example": "Dogcraft Red Cog Logo.png",
"type": "string"
},
"caption": {
            "label": "caption",
            "description": "The caption of the given image",
            "type": "string"
        },
"world": {
"description": "The server world the transport hub is on (current world is Survival 5)",
"default": "Survival 6",
            "type": "string"
},
        "subworld": {
            "label": "subworld",
"description": "Which sub-world (i.e. Sheltie, Retriever) is it on?",
            "type": "string"
},
"builders": {
            "label": "builders",
            "description": "The builders of the transport hub",
            "type": "string"
        },
"contributors": {
            "label": "contributors",
            "description": "Players that contributed to this transport hub",
            "type": "string"
        },
"opened": {
            "label": "opened",
            "description": "The day the transport hub was officially opened",
            "type": "string"
        },
"xcoord": {
            "label": "xcoord",
            "description": "The x coordinate of the build",
            "type": "number"
        },
"ycoord": {
            "label": "ycoord",
            "description": "The y coordinate of the build",
            "type": "number"
        },
"zcoord": {
            "label": "zcoord",
            "description": "The z coordinate of the build",
            "type": "number"
        },
        "ntnconnection": {
            "label": "ntnconnection",
            "description": "The location of the corresponding nether portal in the NTN (eg '1200 south')",
            "type": "string"
        },
        "phome": {
            "label": "phome",
            "description": "The name of the phome of this transport hub",
            "type": "string"
        },
        "networkstation": {
            "description": "The rail network, the rail station belongs to. Only fill out if the build contains a rail station!",
            "type": "string"
        },
        "line": {
            "description": "The rail line the station connects to. Only visible, if networkstation has data!",
            "type": "string"
        },
        "mainlines": {
            "description": "The number of mainline connections. Only visible, if networkstation has data!",
            "type": "number"
        },
        "branchlines": {
            "description": "The number of branch line connections. Only visible, if networkstation has data!",
            "type": "number"
        },
        "networkshelter": {
            "description": "The Network, the shelter belongs to. Only fill out, if the build contains a shelter!",
            "type": "string"
        },
        "roads": {
            "description": "The roads, that the shelter is connected to. Only visible if networkshelter has data!",
            "type": "string"
        },
        "networkport": {
            "description": "The network that the port belongs to. Only fill out if the build contains a port!",
            "type": "string"
        },
        "adjoiningseas": {
            "description": "Which seas does this port connect to?",
            "type": "string"
        },
        "adjoiningwaterways": {
            "description": "Which waterways does this port connect to?",
            "type": "string"
        }
},
"description": "An infobox with important information about a sea port",
"paramOrder": [
"title",
"image",
"caption",
"world",
"subworld",
"builders",
"contributors",
"opened",
"xcoord",
"ycoord",
"zcoord",
        "ntnconnection",
        "phome",
        "networkstation",
        "line",
        "mainlines",
        "branchlines",
        "networkshelter",
        "roads",
        "networkport",
        "adjoiningseas",
        "adjoiningwaterways"
]
}
</templatedata>
{{clear}}
{{clear}}

Latest revision as of 15:59, 13 February 2024


Spawn Station
Survival 5 Labrador
2018-11-21 18.13.23.png
Spawn Station on Survival 2
WorldSurvival 5 (Labrador)
OpenedSeptember 2nd, 2017
Builder(s)20.png _edo
20.png Brianetta
20.png darparniox
Contributors20.png _edo
20.png Brianetta
LocationX= -1775
Y= 65
Z= 2490
NTN ConnectionNorth Tunnel Z=10
Station
NetworkCRN
LineNorth Line
ConnectionsMain-line connections2 Branch connections1
Shelter
NetworkRHN
RoadsSome Road
Port
NetworkCSC
Adjoining SeasSpawn Sea
Adjoining WaterwaysImaginary Waterway


An infobox for transport stations connecting to multiple networks.

{{Infobox Transport
|title              = 
|image              = 
|caption            = 
|world              = 
|subworld           =
|builders           =
|contributors       =
|opened             =
|xcoord             =
|ycoord             = 
|zcoord             =
|ntnconnection      =
|phome              =
|networkstation     =
|line               =
|mainlines          =
|branchlines        =
|networkshelter     =
|roads              =
|networkport        =
|adjoiningseas      =
|adjoiningwaterways =
}}

An infobox with important information about a sea port

Template parameters

ParameterDescriptionTypeStatus
titletitle

The title of the tranport hub. Defaults to the title of the wiki page

Default
{{ROOTPAGENAME}}
Stringoptional
imageimage

The name of the image, including extension, to be used in the infobox

Example
Dogcraft Red Cog Logo.png
Stringoptional
captioncaption

The caption of the given image

Stringoptional
worldworld

The server world the transport hub is on (current world is Survival 5)

Default
Survival 6
Stringoptional
subworldsubworld

Which sub-world (i.e. Sheltie, Retriever) is it on?

Stringoptional
buildersbuilders

The builders of the transport hub

Stringoptional
contributorscontributors

Players that contributed to this transport hub

Stringoptional
openedopened

The day the transport hub was officially opened

Stringoptional
xcoordxcoord

The x coordinate of the build

Numberoptional
ycoordycoord

The y coordinate of the build

Numberoptional
zcoordzcoord

The z coordinate of the build

Numberoptional
ntnconnectionntnconnection

The location of the corresponding nether portal in the NTN (eg '1200 south')

Stringoptional
phomephome

The name of the phome of this transport hub

Stringoptional
networkstationnetworkstation

The rail network, the rail station belongs to. Only fill out if the build contains a rail station!

Stringoptional
lineline

The rail line the station connects to. Only visible, if networkstation has data!

Stringoptional
mainlinesmainlines

The number of mainline connections. Only visible, if networkstation has data!

Numberoptional
branchlinesbranchlines

The number of branch line connections. Only visible, if networkstation has data!

Numberoptional
networkshelternetworkshelter

The Network, the shelter belongs to. Only fill out, if the build contains a shelter!

Stringoptional
roadsroads

The roads, that the shelter is connected to. Only visible if networkshelter has data!

Stringoptional
networkportnetworkport

The network that the port belongs to. Only fill out if the build contains a port!

Stringoptional
adjoiningseasadjoiningseas

Which seas does this port connect to?

Stringoptional
adjoiningwaterwaysadjoiningwaterways

Which waterways does this port connect to?

Stringoptional