Template

Infobox Group

From Dogcraft Wiki

mNo edit summary
mNo edit summary
Tag: Visual edit: switched
Line 23: Line 23:
|data6  = {{{status|Unknown}}}
|data6  = {{{status|Unknown}}}
|label7  = Founded
|label7  = Founded
|data7  = {{{founded|}}} {{#if: {{{world|}}}|({{Infobox/World link|{{{world|}}} }})|{{#if: {{{startworld|}}}|({{Infobox/World link|{{{startworld|}}} }})|}} }}
|data7  = {{#if: {{{founded|}}} | {{{founded|}}} {{#if: {{{world|}}}|({{Infobox/World link|{{{world|}}}}})|}} |{{Infobox/World link|{{{world|}}}}} }}
|label7 = Disolved
|label8 = Disolved
|data7   = {{{disolved|}}} {{#if: {{{world|}}}|({{Infobox/World link|{{{world|}}} }})|{{#if: {{{endworld|}}}|({{Infobox/World link|{{{endworld|}}} }})|}} }}
|data8   = {{#if: {{{dissolved|}}} | {{{dissolved|}}} {{#if: {{{endworld|}}}|({{Infobox/World link|{{{endworld|}}} }})|}}|{{Infobox/World link|{{{endworld|}}}}} }}
}}
}}


Line 32: Line 32:


<noinclude>
<noinclude>
{{Infobox Group
| image = Egg.png
| caption = Test
| type = Infobox showcase
| purpose = To show off all the fields in this infobox
| status = {{Active}}
| leader = {{Player|Renthedog}}
| members = {{Player|Renthedog}},<br>{{Player|Steve}},<br>{{Player|Alex}}
| world = Survival 3
| endworld = Beagle
}}
Example usage:<pre>
Example usage:<pre>
{{Infobox Group
{{Infobox Group
Line 47: Line 58:
|endworld=
|endworld=
}}
}}
</pre>
</pre><templatedata>
<templatedata>
{
{
"params": {
"params": {
Line 76: Line 86:
"suggested": true
"suggested": true
},
},
"type": {},
"type": {
"label": "Type",
"type": "string",
"suggested": true
},
"purpose": {
"purpose": {
"label": "Purpose",
"label": "Purpose",
"description": "The purpose or aim of the group.",
"description": "The purpose or aim of the group.",
"example": "Collecting snowlayers",
"example": "Collecting snowlayers",
"type": "string"
"type": "string",
"suggested": true
},
},
"leader": {
"leader": {
Line 109: Line 124:
"type": "date"
"type": "date"
},
},
"startworld": {
"endworld": {
"label": "World of Founding",
"label": "Dissolution World",
"description": "The world on which the group was founded.",
"description": "The world on which the group was disolved. Optional. Use World unless the group was active over multiple worlds.",
"example": "Survival 7",
"type": "string"
},
"world": {
"label": "World",
"description": "The world on which the group was active or founded. ",
"example": "Survival 4",
"example": "Survival 4",
"type": "string",
"type": "string",
"suggested": true,
"suggested": true
"aliases": [
"world"
]
},
},
"disolved": {
"dissolved": {
"label": "Dissolved",
"label": "Dissolved",
"description": "The date of the founding of the group. Leave blank if group is still active.",
"description": "The date of the founding of the group. Leave blank if group is still active.",
"type": "date"
"type": "date"
},
"endworld": {
"label": "World of Dissolution",
"description": "The world on which the group was disolved",
"example": "Survival 7",
"type": "string",
"suggested": true
}
}
},
},
Line 143: Line 154:
"members",
"members",
"founded",
"founded",
"startworld",
"dissolved",
"disolved",
"endworld",
"endworld"
"world"
],
],
"format": "block"
"format": "block"
}
}
</templatedata></noinclude>
</templatedata>
</noinclude>

Revision as of 13:46, 12 January 2021

Infobox Group
Egg.png

Test

Group
Type Infobox showcase
Purpose To show off all the fields in this infobox
Leader 20.png Renthedog
Members 20.png Renthedog,
20.png Steve,
20.png Alex
Status Active
Founded Template:Infobox/World link
Disolved Template:Infobox/World link


Example usage:

{{Infobox Group
|title=
|image=
|caption=
|type=
|purpose=
|leader=
|members=
|status= 
|founded=
|disolved=
|startworld=
|endworld=
}}

Infobox template to be used on groups in the community.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Headertitle

Infobox header, for use when it should be different from the pagename.

Auto value
{{subst:PAGENAME}}
Stringoptional
Imageimage picture file img

The name of an image (without "File:") to display at the top of the infobox.

Example
Examplet.png
Auto value
Filerequired
Captioncaption

Description of the Image parameter

Stringsuggested
Typetype

no description

Stringsuggested
Purposepurpose

The purpose or aim of the group.

Example
Collecting snowlayers
Stringsuggested
Statusstatus

Expects one of the [[Status|status templates]]. Use {{Defunct}} for disbanded groups.groups.

Example
{{Active}}
Templaterequired
Leader(s)leader

The leader(s) of the group. Use {{Player|<playername>}}

Example
{{Player|Example}}
Stringsuggested
Membersmembers

Members of the group. Use {{Player|<playername>}}

Example
{{Player|Example}}
Stringsuggested
Foundedfounded

The date of the founding of the group.

Dateoptional
Dissolveddissolved

The date of the founding of the group. Leave blank if group is still active.

Dateoptional
Dissolution Worldendworld

The world on which the group was disolved. Optional. Use World unless the group was active over multiple worlds.

Example
Survival 7
Stringoptional
Worldworld

The world on which the group was active or founded.

Example
Survival 4
Stringsuggested
This page was last modified on 12 January 2021, at 13:46. (3 months ago)
Background Dragon Slayer - Retriever by Ironboundred