Template
Interface template

Infobox Shelter

From Dogcraft Wiki

No edit summary
No edit summary
 
(9 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>{{Infobox
|above       = {{#if:{{{title|}}}|{{{title|}}}|{{PAGENAME}}}}
|name        =
|subheader    = {{WorldPills|{{{world|}}}|{{{subworld|{{{sur4subworld|}}}}}}}}
|bodystyle    =
|image        = {{#if:{{{image2|}}}|{{#tag:gallery
|title       = {{#if:{{{title|}}}|{{{title|}}}|{{PAGENAME}}}}
|{{#if: {{{image|}}}|{{{image|}}}{{!}}{{{caption|}}}|}}
|titlestyle  =  
{{{image2|}}}{{!}}{{{caption2|}}}
|image        = {{#if:{{{image|}}}|[[File:{{{image|}}}|250px]]}}
{{#if: {{{image3|}}}|{{{image3|}}}{{!}}{{{caption3|}}}|}}
|imagestyle  =
{{#if: {{{image4|}}}|{{{image4|}}}{{!}}{{{caption4|}}}|}}|mode="slideshow"|widths="308px"}}|{{#if:{{{image|}}}|[[File:{{{image|}}}|306px|thumb]]|}}}}
|caption      = {{{caption|<br />}}}
|caption      = {{#if:{{{image2|}}}||{{{caption|}}}}}
|captionstyle = color:#000;
|header1      = Shelter
|headerstyle  = background:{{main-color}}; color:#fff;
|label2       = World
|labelstyle  = padding: 3px;
|data2       = {{WorldSwitch|{{{world}}}|{{{subworld|{{{sur4subworld|}}}}}}}}
|datastyle    = padding: 3px;
|label3       = Network
|header1 = {{Large|Shelter}}
|data3       = {{{network|}}}
|label2 = World
|label4       = Builder(s)
|data2   = {{WorldSwitch|{{{world}}}|{{{sur4subworld|}}}}}
|data4       = {{{builders|}}}
|label3 = Project
|label5       = Contributors
|data3 = {{{project|}}}
|data5       = {{{contributors|}}}
|label4 = <nowiki>Builder(s)</nowiki>
|label6       = Opened
|data4   = {{{builders|}}}
|data6       = {{{opened|}}}
|label5 = Contributors
|label7       = Location
|data5   = {{{contributors|}}}
|data7       = {{#if:{{{xcoord|}}}|X= {{{xcoord|}}}{{#if:{{{ycoord|}}}|<br /> Y= {{{ycoord|}}}}}<br /> Z= {{{zcoord|}}}|}}
|label6 = [[Status]]
|label8      = {{#ifeq:{{{dimension|Overworld}}}|Overworld||Dimension}}
|data6   = {{{status|}}}
|data8        = {{#ifeq:{{{dimension|Overworld}}}|Overworld||{{{dimension}}}}}
|label7 = Completed
|label9      = Connection(s)
|data7   = {{{completed|}}}
|data9        = {{{railway|}}}{{#if:{{{nether|}}}|<br />{{{nether|}}}}}{{#if:{{{overworld_transport|}}}|<br />{{{overworld_transport|}}}}}
|label8  = Location
|label10      = NTN Connection
|data8  = {{#if:{{{xcoord|}}}|X={{{xcoord|}}} <br /> Y={{{ycoord|}}} <br /> Z={{{zcoord|}}}|}}
|data10      = {{{ntnconnection|}}}
|label9  = Dimension
|label11      = Road(s)
|data9  = {{{dimension|Overworld}}}
|data11      = {{{roads|}}}
|header10 = {{#switch: {{#if: {{{dimension|}}}|{{{dimension|}}}|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]|}}|}}|}}
|world = {{{world|Survival 6}}}
}}
|subworld = {{{subworld|{{{sur4subworld|sheltie}}}}}}
 
|xcoord = {{{xcoord|0}}}
[[Category:Shelters]][[Category:Builds]][[Category:{{WorldSwitch|{{{world}}}|{{{sur4subworld|}}}|mode=Category}}]]
|zcoord = {{{zcoord|0}}}
</includeonly>
}}[[Category:Shelters]][[Category:Builds]]{{#if:{{WorldSwitch/World|{{{world}}}|{{{subworld|{{{sur4subworld|}}}}}}}}|[[Category:{{WorldSwitch/World|{{{world}}}|{{{subworld|{{{sur4subworld|}}}}}}}}]]|}}</includeonly><noinclude>
<noinclude>
<templatedata>
<templatedata>
{
{
Line 68: 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?"
},
"network": {
"description": "The transport network this shelter is part of"
},
},
"project": {
        "ntnconnection" : {}
"description": "The wider project this shelter is part of"
}
},
},
"description": "An infobox with important information about an road-side shelter!",
"description": "An infobox with important information about an road-side shelter!",
Line 91: 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