Template
Interface template

Infobox Shelter

From Dogcraft Wiki

(Infobox 2.0 rollout, new Connections parameter for connections with other networks (uses {{{railway|}}}, {{{nether|}}} and a 3rd WIP param))
No edit summary
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<noinclude>
<noinclude>{{Interface template}}[[Category:Infoboxes]]
This template is for pages about shelters, such as those on the Road and Horse network
This template is for pages about shelters, such as those on the Road and Horse network
<pre>
<pre>
{{Infobox Shelter
{{Infobox Shelter
|title       =  
|title         =  
|image       =  
|image         =  
|caption     =  
|caption       =  
|world       =  
|world         =  
|project          =
|network      =
|sur4subworld =  
|subworld      =  
|builders         =  
|builders     =  
|contributors =  
|contributors =  
|status      =
|opened        =  
|completed    =  
|xcoord       =  
|xcoord       =  
|ycoord       =  
|ycoord       =  
|zcoord       =  
|zcoord       =  
|dimension     =
|dimension   =  
|roads        =
|ntnconnection =
}}
}}
</pre>
</pre>
</noinclude>
</noinclude><includeonly>{{Infobox Locatable
<includeonly>{{Infobox2
|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|}}}|{{#tag:gallery
|{{#if: {{{image|}}}|{{{image|}}}{{!}}{{{caption|}}}|}}
|{{#if: {{{image|}}}|{{{image|}}}{{!}}{{{caption|}}}|}}
Line 31: Line 31:
|header1      = Shelter
|header1      = Shelter
|label2      = World
|label2      = World
|data2        = {{WorldSwitch|{{{world}}}|{{{sur4subworld|}}}}}
|data2        = {{WorldSwitch|{{{world}}}|{{{subworld|{{{sur4subworld|}}}}}}}}
|label3      = Project
|label3      = Network
|data3        = {{{project|}}}
|data3        = {{{network|}}}
|label4      = Builder(s)
|label4      = Builder(s)
|data4        = {{{builders|}}}
|data4        = {{{builders|}}}
|label5      = Contributors
|label5      = Contributors
|data5        = {{{contributors|}}}
|data5        = {{{contributors|}}}
|label6      = Completed
|label6      = Opened
|data6        = {{{completed|}}}
|data6        = {{{opened|}}}
|label7      = Location
|label7      = Location
|data7        = {{#if:{{{xcoord|}}}|X= {{{xcoord|}}}{{#if:{{{ycoord|}}}|<br /> Y= {{{ycoord|}}}}}<br /> Z= {{{zcoord|}}}|}}
|data7        = {{#if:{{{xcoord|}}}|X= {{{xcoord|}}}{{#if:{{{ycoord|}}}|<br /> Y= {{{ycoord|}}}}}<br /> Z= {{{zcoord|}}}|}}
Line 46: Line 46:
|label9      = Connection(s)
|label9      = Connection(s)
|data9        = {{{railway|}}}{{#if:{{{nether|}}}|<br />{{{nether|}}}}}{{#if:{{{overworld_transport|}}}|<br />{{{overworld_transport|}}}}}
|data9        = {{{railway|}}}{{#if:{{{nether|}}}|<br />{{{nether|}}}}}{{#if:{{{overworld_transport|}}}|<br />{{{overworld_transport|}}}}}
}}[[Category:Shelters]][[Category:Builds]]{{#if:{{WorldSwitch/World|{{{world}}}|{{{sur4subworld}}}}}|[[Category:{{WorldSwitch/World|{{{world}}}|{{{sur4subworld}}}}}]]|}}
|label10      = NTN Connection
</includeonly>
|data10      = {{{ntnconnection|}}}
<noinclude>
|label11      = Road(s)
|data11      = {{{roads|}}}
|world = {{{world|Survival 6}}}
|subworld = {{{subworld|{{{sur4subworld|sheltie}}}}}}
|xcoord = {{{xcoord|0}}}
|zcoord = {{{zcoord|0}}}
}}[[Category:Shelters]][[Category:Builds]]{{#if:{{WorldSwitch/World|{{{world}}}|{{{subworld|{{{sur4subworld|}}}}}}}}|[[Category:{{WorldSwitch/World|{{{world}}}|{{{subworld|{{{sur4subworld|}}}}}}}}]]|}}</includeonly><noinclude>
<templatedata>
<templatedata>
{
{
Line 62: Line 68:
"caption": {},
"caption": {},
"world": {
"world": {
"description": "The server world the shelter is on (current world is Survival 4)",
"description": "The server world the shelter is on (current world is Survival 5)",
"default": "Survival 4"
"default": "Survival 4"
},
},
"builders": {},
"builders": {},
"contributors": {},
"contributors": {},
"status": {},
"opened": {},
"completed": {},
"xcoord": {},
"xcoord": {},
"ycoord": {},
"ycoord": {},
"zcoord": {},
"zcoord": {},
"dimension": {},
"dimension": {},
"sur4subworld": {
        "roads": {
"description": "Is the shelter on Husky or Beagle?"
            "description": "The roads the shelter connects to"
        },
"subworld": {
"description": "Which sub-world (i.e. Shepherd, Labrador, etc) is it on?"
},
},
"project": {
"network": {
"description": "The wider project this shelter is part of"
"description": "The transport network this shelter is part of"
}
},
        "ntnconnection" : {}
},
},
"description": "An infobox with important information about an road-side shelter!",
"description": "An infobox with important information about an road-side shelter!",
Line 85: Line 94:
"image",
"image",
"caption",
"caption",
"project",
"network",
"world",
"world",
"sur4subworld",
"subworld",
"builders",
"builders",
"contributors",
"contributors",
"status",
"opened",
"completed",
"xcoord",
"xcoord",
"ycoord",
"ycoord",
"zcoord",
"zcoord",
"dimension"
"dimension",
        "ntnconnection",
        "roads"
]
]
}
}
</templatedata>
</templatedata>
</noinclude>

Latest revision as of 15:59, 13 February 2024

This template is for pages about shelters, such as those on the Road and Horse network

{{Infobox Shelter
|title         = 
|image         = 
|caption       = 
|world         = 
|network       =
|subworld      = 
|builders      = 
|contributors  = 
|opened        = 
|xcoord        = 
|ycoord        = 
|zcoord        = 
|dimension     = 
|roads         =
|ntnconnection =
}}

An infobox with important information about an road-side shelter!

Template parameters

ParameterDescriptionTypeStatus
titletitle

no description

Default
{{ROOTPAGENAME}}
Unknownoptional
imageimage

no description

Example
Dogcraft Red Cog Logo.png
Stringoptional
captioncaption

no description

Unknownoptional
networknetwork

The transport network this shelter is part of

Unknownoptional
worldworld

The server world the shelter is on (current world is Survival 5)

Default
Survival 4
Unknownoptional
subworldsubworld

Which sub-world (i.e. Shepherd, Labrador, etc) is it on?

Unknownoptional
buildersbuilders

no description

Unknownoptional
contributorscontributors

no description

Unknownoptional
openedopened

no description

Unknownoptional
xcoordxcoord

no description

Unknownoptional
ycoordycoord

no description

Unknownoptional
zcoordzcoord

no description

Unknownoptional
dimensiondimension

no description

Unknownoptional
ntnconnectionntnconnection

no description

Unknownoptional
roadsroads

The roads the shelter connects to

Unknownoptional
Background Dragon Slayer - Retriever by Ironboundred