Template
Interface template

Infobox Base

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]]
<pre>
<pre>
{{Infobox base
{{Infobox base
Line 6: Line 6:
|caption      =  
|caption      =  
|world        =  
|world        =  
|sur4subworld =  
|subworld  =  
|builders    =  
|builders    =  
|contributors =
|contributors =
Line 19: Line 19:
}}
}}
</pre>
</pre>
</noinclude>
</noinclude><includeonly>{{Infobox Locatable
<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|<br />}}}
{{#if: {{{image3|}}}|{{{image3|}}}{{!}}{{{caption3|}}}|}}
|captionstyle = color:#000;
{{#if: {{{image4|}}}|{{{image4|}}}{{!}}{{{caption4|}}}|}}|mode="slideshow"|widths="308px"}}|{{#if:{{{image|}}}|[[File:{{{image|}}}|306px|thumb]]|}}}}
|headerstyle  = background:{{main-color}}; color:#fff;
|caption      = {{#if:{{{image2|}}}||{{{caption|}}}}}
|labelstyle  = padding: 3px;
|header1      = Base
|datastyle    = padding: 3px;
|label2      = World
|header1 = {{Large|Base}}
|data2        = {{WorldSwitch|{{{world}}}|{{{subworld|{{{sur4subworld|}}}}}}}}
|label2  = World
|label3      = Builder(s)
|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}}} }}|}}
|data3        = {{{builders|}}}
|label4  = Builder(s)
|label5       = Contributor(s)
|data4  = {{{builders|}}}
|data5       = {{{contributors|}}}
|label5 = Contributor(s)
|label6       = Founded
|data5   = {{{contributors|}}}
|data6       = {{{founded|}}}
|label6 = Founded
|label7       = Location
|data6   = {{{founded|}}}
|data7       = {{#if:{{{xcoord|}}}|X= {{{xcoord|}}}{{#if:{{{ycoord|}}}|<br /> Y= {{{ycoord|}}}}}<br /> Z= {{{zcoord|}}}|}}
|label7 = Location
|label8       = {{#ifeq:{{{dimension|Overworld}}}|Overworld||Dimension}}
|data7 = {{#if:{{{xcoord|}}}|X={{{xcoord|}}} <br /> Y={{{ycoord|}}} <br /> Z={{{zcoord|}}}|}}
|data8       = {{#ifeq:{{{dimension|Overworld}}}|Overworld||{{{dimension}}}}}
|label8 = Dimension
|label9       = Transport
|data8   = {{{dimension|Overworld}}}
|data9       = {{#if:{{{railway|}}}|{{{railway|}}}<br />}}{{#if:{{{nether|}}}|{{{nether|}}}<br />}}{{#if:{{{overworld transport|}}}|{{{overworld transport|}}}}}
|label9 = [[Status]]
|label10     = Teleport
|data9   = {{{status|Unknown}}}
|data10       = {{{teleport|}}}
|header10 = {{#if: {{{nether}}}|{{Large|Transport}}|}}
|world = {{{world|Survival 6}}}
|label10 = Railway
|subworld = {{{subworld|{{{sur4subworld|sheltie}}}}}}
|data10 = {{{railway|}}}
|xcoord = {{{xcoord|0}}}
|label11  = Nether
|zcoord = {{{zcoord|0}}}
|data11  = {{{nether|}}}
}}[[Category:Builds]][[Category:Bases]]{{#if:{{WorldSwitch/World|{{{world}}}|{{{subworld|{{{sur4subworld|}}}}}}}}|[[Category:{{WorldSwitch/World|{{{world}}}|{{{subworld|{{{sur4subworld|}}}}}}}}]]|}}</includeonly><noinclude>
|header12 = {{#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:Bases]]
</includeonly>
<noinclude>
<templatedata>
<templatedata>
{
{
Line 82: Line 75:
"description": "The server world your base is on (current world is Survival 4)",
"description": "The server world your base is on (current world is Survival 4)",
"type": "string",
"type": "string",
"default": "[[Survival 4]]"
"default": "[[Survival 6]]"
},
},
"builders": {
"builders": {
Line 128: Line 121:
"type": "string"
"type": "string"
},
},
"sur4subworld": {
"subworld": {
"label": "Survival 4 Sub World",
"label": "Sub World",
"description": "If the base is on Survival 4, is it on \"Husky\" or \"Beagle\"?",
"description": "What subworld is it on \"Sheltie\" or \"Retriever\"?",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
},
"contributors": {
"label": "Contributors",
"description": "People who helped with your base",
"type": "string"
}
}
},
},
Line 141: Line 139:
"caption",
"caption",
"world",
"world",
"sur4subworld",
"subworld",
"builders",
"builders",
"contributors",
"founded",
"founded",
"xcoord",
"xcoord",
Line 154: Line 153:
}
}
</templatedata>
</templatedata>
</noinclude>

Latest revision as of 15:58, 13 February 2024

{{Infobox base
|title        = 
|image        = 
|caption      = 
|world        = 
|subworld   = 
|builders     = 
|contributors =
|founded      = 
|xcoord       = 
|ycoord       = 
|zcoord       = 
|dimension    = 
|status       = 
|railway      = 
|nether       = 
}}

An infobox with some details about a player's base.

Template parameters

ParameterDescriptionTypeStatus
Nametitle

The name of your base

Default
{{ROOTPAGENAME}}
Stringoptional
Imageimage

A picture of your base!

Example
My cool base.png
Stringoptional
Captioncaption

A caption for your image

Stringoptional
Worldworld

The server world your base is on (current world is Survival 4)

Default
[[Survival 6]]
Stringoptional
Sub Worldsubworld

What subworld is it on "Sheltie" or "Retriever"?

Stringsuggested
Buildersbuilders

The builder(s) of your base

Stringoptional
Contributorscontributors

People who helped with your base

Stringoptional
Foundedfounded

When the base was founded.

Stringoptional
X-coordinatexcoord

no description

Numberoptional
Y-coordinateycoord

no description

Numberoptional
Z-coordinatezcoord

no description

Numberoptional
Dimensiondimension

The dimension your base is in.

Default
Overworld
Stringoptional
Statusstatus

The current activity status of your base

Default
{{Active}}
Stringoptional
Transport (Nether)nether

Transport links through the nether to your base (e.g NTN)

Stringoptional
Transport (Railway)railway

Transport links through the overworld on rail to your base (e.g SRN)

Stringoptional
Background Dragon Slayer - Retriever by Ironboundred