Template

Infobox Group

From Dogcraft Wiki

m (Added: Founded, Disolved, Startworld, Endworld)
m (Template data p1)
Line 23: Line 23:
|data6  = {{{status|Unknown}}}
|data6  = {{{status|Unknown}}}
|label7  = Founded
|label7  = Founded
|data7  = {{founded|}}  {{#if: {{startworld|}}|({{startworld|}}|}}
|data7  = {{{founded|}}}  {{#if: {{startworld|}}|({{{startworld|}}}|}}
|label7  = Disolved
|label7  = Disolved
|data7  = {{disolved|}}  {{#if: {{endworld|}}|({{endworld|}}|}}
|data7  = {{{disolved|}}}  {{#if: {{{endworld|}}}|({{{endworld|}}}|}}
}}
}}


Line 48: Line 48:
}}
}}
</pre>
</pre>
</noinclude>
<templatedata>
{
"params": {
"title": {
"label": "Header",
"description": "Infobox header, for use when it should be different from the pagename.",
"type": "string",
"autovalue": "{{subst:PAGENAME}}"
},
"image": {
"aliases": [
"picture",
"file",
"img"
],
"label": "Image",
"description": "The name of an image (without \"File:\") to display at the top of the infobox.",
"example": "Examplet.png",
"type": "wiki-file-name",
"autovalue": "",
"required": true
},
"caption": {
"label": "Caption",
"description": "Description of the Image parameter",
"type": "string",
"suggested": true
},
"type": {},
"purpose": {
"label": "Purpose",
"description": "The purpose or aim of the group.",
"example": "Collecting snowlayers",
"type": "string"
},
"leader": {
"label": "Leader(s)",
"description": "The leader(s) of the group. Use {{Player|<playername>}}",
"example": "{{Player|Example}}",
"type": "string",
"suggested": true
},
"members": {
"label": "Members",
"description": "Members of the group. Use {{Player|<playername>}}",
"example": "{{Player|Example}}",
"type": "string",
"suggested": true
},
"status": {
"label": "Status",
"description": "Expects one of the [[Status|status templates]]. Use {{Defunct}} for disbanded groups.groups.",
"example": "{{Active}}",
"type": "wiki-template-name",
"required": true
}
},
"description": "Infobox template to be used on groups in the community.",
"paramOrder": [
"title",
"image",
"caption",
"type",
"purpose",
"status",
"leader",
"members"
],
"format": "block"
}
</templatedata></noinclude>

Revision as of 12:50, 12 January 2021


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

Unknownoptional
Purposepurpose

The purpose or aim of the group.

Example
Collecting snowlayers
Stringoptional
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
This page was last modified on 12 January 2021, at 12:50. (19 months ago)