Template
Interface template

Infobox Base

From Dogcraft Wiki

imported>William278
No edit summary
No edit summary
 
(23 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<infobox>
<noinclude>{{Interface template}}[[Category:Infoboxes]]
  <title source="title1">
<pre>
    <default>{{PAGENAME}}</default>
  </title>
  <image source="image1">
    <caption source="caption1"/>
  </image>
  <group>
    <header>Base</header>
    <data source="world">
      <label>World</label>
    </data>
    <data source="location">
      <label>Location</label>
    </data>
    <data source="builder(s)">
      <label>Builder(s)</label>
    </data>
    <data source="founded">
      <label>Founded</label>
    </data>
    <data source="status">
      <label>[[Status]]</label>
    </data>
  </group>
  <group collapse="open">
    <header>Transport</header>
    <data source="railway">
      <label>Railway</label>
    </data>
    <data source="nether">
      <label>Nether</label>
    </data>
  </group>
</infobox>
<noinclude>
Example usage:<pre>
{{Infobox base
{{Infobox base
|title1=Example
|title        =  
|image1=Example
|image        =  
|caption1=Example
|caption      =  
|world=Example
|world       =  
|location=Example
|subworld  =  
|builder(s)=Example
|builders    =
|founded=Example
|contributors =
|[[Status]]=Example
|founded     =
|railway=Example
|xcoord      =
|nether=Example
|ycoord      =
|zcoord      =
|dimension    =  
|status      =  
|railway     =  
|nether       =  
}}
}}
</pre>
</pre>
</noinclude>
</noinclude><includeonly>{{Infobox Locatable
|name        =
|above        = {{#if:{{{title|}}}|{{{title|}}}|{{PAGENAME}}}}
|subheader    = {{WorldPills|{{{world|}}}|{{{subworld|{{{sur4subworld|}}}}}}}}
|image        = {{#if:{{{image2|}}}|{{#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|}}}||{{{caption|}}}}}
|header1      = Base
|label2      = World
|data2        = {{WorldSwitch|{{{world}}}|{{{subworld|{{{sur4subworld|}}}}}}}}
|label3      = Builder(s)
|data3        = {{{builders|}}}
|label5      = Contributor(s)
|data5        = {{{contributors|}}}
|label6      = Founded
|data6        = {{{founded|}}}
|label7      = Location
|data7        = {{#if:{{{xcoord|}}}|X= {{{xcoord|}}}{{#if:{{{ycoord|}}}|<br /> Y= {{{ycoord|}}}}}<br /> Z= {{{zcoord|}}}|}}
|label8      = {{#ifeq:{{{dimension|Overworld}}}|Overworld||Dimension}}
|data8        = {{#ifeq:{{{dimension|Overworld}}}|Overworld||{{{dimension}}}}}
|label9      = Transport
|data9        = {{#if:{{{railway|}}}|{{{railway|}}}<br />}}{{#if:{{{nether|}}}|{{{nether|}}}<br />}}{{#if:{{{overworld transport|}}}|{{{overworld transport|}}}}}
|label10      = Teleport
|data10      = {{{teleport|}}}
|world = {{{world|Survival 6}}}
|subworld = {{{subworld|{{{sur4subworld|sheltie}}}}}}
|xcoord = {{{xcoord|0}}}
|zcoord = {{{zcoord|0}}}
}}[[Category:Builds]][[Category:Bases]]{{#if:{{WorldSwitch/World|{{{world}}}|{{{subworld|{{{sur4subworld|}}}}}}}}|[[Category:{{WorldSwitch/World|{{{world}}}|{{{subworld|{{{sur4subworld|}}}}}}}}]]|}}</includeonly><noinclude>
<templatedata>
{
"params": {
"title": {
"label": "Name",
"description": "The name of your base",
"type": "string",
"default": "{{ROOTPAGENAME}}"
},
"image": {
"label": "Image",
"description": "A picture of your base!",
"example": "My cool base.png",
"type": "string"
},
"caption": {
"label": "Caption",
"description": "A caption for your image",
"type": "string"
},
"world": {
"label": "World",
"description": "The server world your base is on (current world is Survival 4)",
"type": "string",
"default": "[[Survival 6]]"
},
"builders": {
"label": "Builders",
"description": "The builder(s) of your base",
"type": "string"
},
"founded": {
"label": "Founded",
"description": "When the base was founded.",
"type": "string"
},
"xcoord": {
"label": "X-coordinate",
"type": "number"
},
"ycoord": {
"label": "Y-coordinate",
"type": "number"
},
"zcoord": {
"label": "Z-coordinate",
"type": "number"
},
"dimension": {
"label": "Dimension",
"description": "The dimension your base is in.",
"type": "string",
"default": "Overworld"
},
"status": {
"label": "Status",
"description": "The current activity status of your base",
"type": "string",
"default": "{{Active}}"
},
"nether": {
"label": "Transport (Nether)",
"description": "Transport links through the nether to your base (e.g NTN)",
"type": "string"
},
"railway": {
"label": "Transport (Railway)",
"description": "Transport links through the overworld on rail to your base (e.g SRN)",
"type": "string"
},
"subworld": {
"label": "Sub World",
"description": "What subworld is it on \"Sheltie\" or \"Retriever\"?",
"type": "string",
"suggested": true
},
"contributors": {
"label": "Contributors",
"description": "People who helped with your base",
"type": "string"
}
},
"description": "An infobox with some details about a player's base.",
"paramOrder": [
"title",
"image",
"caption",
"world",
"subworld",
"builders",
"contributors",
"founded",
"xcoord",
"ycoord",
"zcoord",
"dimension",
"status",
"nether",
"railway"
]
}
</templatedata>

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 Valentine's Day Event 2024 by TheWhiteTigerNL