Template

Infobox Shelter

From Dogcraft Wiki

No edit summary
(Infobox 2.0 rollout, new Connections parameter for connections with other networks (uses {{{railway|}}}, {{{nether|}}} and a 3rd WIP param))
Line 20: Line 20:
</pre>
</pre>
</noinclude>
</noinclude>
<includeonly>{{Infobox
<includeonly>{{Infobox2
|name        =
|above       = {{#if:{{{title|}}}|{{{title|}}}|{{PAGENAME}}}}
|bodystyle    =
|subheader    = {{WorldPills|{{{world|}}}|{{{sur4subworld|}}}}}
|title       = {{#if:{{{title|}}}|{{{title|}}}|{{PAGENAME}}}}
|image        = {{#if:{{{image2|}}}|{{#tag:gallery
|titlestyle  =  
|{{#if: {{{image|}}}|{{{image|}}}{{!}}{{{caption|}}}|}}
|image        = {{#if:{{{image|}}}|[[File:{{{image|}}}|250px]]}}
{{{image2|}}}{{!}}{{{caption2|}}}
|imagestyle  =
{{#if: {{{image3|}}}|{{{image3|}}}{{!}}{{{caption3|}}}|}}
|caption      = {{{caption|<br />}}}
{{#if: {{{image4|}}}|{{{image4|}}}{{!}}{{{caption4|}}}|}}|mode="slideshow"|widths="308px"}}|{{#if:{{{image|}}}|[[File:{{{image|}}}|306px|thumb]]|}}}}
|captionstyle = color:#000;
|caption      = {{#if:{{{image2|}}}||{{{caption|}}}}}
|headerstyle  = background:{{main-color}}; color:#fff;
|header1      = Shelter
|labelstyle  = padding: 3px;
|label2       = World
|datastyle    = padding: 3px;
|data2       = {{WorldSwitch|{{{world}}}|{{{sur4subworld|}}}}}
|header1 = {{Large|Shelter}}
|label3       = Project
|label2 = World
|data3       = {{{project|}}}
|data2   = {{WorldSwitch|{{{world}}}|{{{sur4subworld|}}}}}
|label4       = Builder(s)
|label3 = Project
|data4       = {{{builders|}}}
|data3 = {{{project|}}}
|label5       = Contributors
|label4 = <nowiki>Builder(s)</nowiki>
|data5       = {{{contributors|}}}
|data4   = {{{builders|}}}
|label6       = Completed
|label5 = Contributors
|data6       = {{{completed|}}}
|data5   = {{{contributors|}}}
|label7       = Location
|label6 = [[Status]]
|data7       = {{#if:{{{xcoord|}}}|X= {{{xcoord|}}}{{#if:{{{ycoord|}}}|<br /> Y= {{{ycoord|}}}}}<br /> Z= {{{zcoord|}}}|}}
|data6   = {{{status|}}}
|label8      = {{#ifeq:{{{dimension|Overworld}}}|Overworld||Dimension}}
|label7 = Completed
|data8        = {{#ifeq:{{{dimension|Overworld}}}|Overworld||{{{dimension}}}}}
|data7   = {{{completed|}}}
|label9      = Connection(s)
|label8  = Location
|data9        = {{{railway|}}}{{#if:{{{nether|}}}|<br />{{{nether|}}}}}{{#if:{{{overworld_transport|}}}|<br />{{{overworld_transport|}}}}}
|data8  = {{#if:{{{xcoord|}}}|X={{{xcoord|}}} <br /> Y={{{ycoord|}}} <br /> Z={{{zcoord|}}}|}}
}}[[Category:Shelters]][[Category:Builds]]{{#if:{{WorldSwitch/World|{{{world}}}|{{{sur4subworld}}}}}|[[Category:{{WorldSwitch/World|{{{world}}}|{{{sur4subworld}}}}}]]|}}
|label9  = Dimension
|data9  = {{{dimension|Overworld}}}
|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]|}}|}}|}}
}}
 
[[Category:Shelters]][[Category:Builds]][[Category:{{WorldSwitch|{{{world}}}|{{{sur4subworld|}}}|mode=Category}}]]
</includeonly>
</includeonly>
<noinclude>
<noinclude>

Revision as of 03:55, 29 June 2022

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

{{Infobox Shelter
|title        = 
|image        = 
|caption      = 
|world        = 
|project           =
|sur4subworld = 
|builders          = 
|contributors = 
|status       =
|completed    = 
|xcoord       = 
|ycoord       = 
|zcoord       = 
|dimension    = 
}}


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
projectproject

The wider project this shelter is part of

Unknownoptional
worldworld

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

Default
Survival 4
Unknownoptional
sur4subworldsur4subworld

Is the shelter on Husky or Beagle?

Unknownoptional
buildersbuilders

no description

Unknownoptional
contributorscontributors

no description

Unknownoptional
statusstatus

no description

Unknownoptional
completedcompleted

no description

Unknownoptional
xcoordxcoord

no description

Unknownoptional
ycoordycoord

no description

Unknownoptional
zcoordzcoord

no description

Unknownoptional
dimensiondimension

no description

Unknownoptional
This page was last modified on 29 June 2022, at 03:55. (9 months ago)
Background Dragon Slayer - Retriever by Ironboundred