Template

Infobox Group

From Dogcraft Wiki

imported>William278
(Created page with "<infobox> <title source="title1"/> <image source="image1"> <caption source="caption1"/> </image> <group> <header>Group</header> <data source="type"> ...")
 
m (Added automatic categorisation)
 
(23 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<infobox>
<includeonly>{{Infobox2
  <title source="title1"/>
|above        = {{#if:{{{title|}}}|{{{title|}}}|{{PAGENAME}}}}
  <image source="image1">
|subheader    = {{WorldPills|multi={{{crossworld|1}}}|{{{world|}}}|{{{sur4subworld|}}}}}
    <caption source="caption1"/>
|image        = {{#if:{{{image2|}}}|{{#tag:gallery
  </image>
|{{#if: {{{image|}}}|{{{image|}}}{{!}}{{{caption|}}}|}}
  <group>
{{{image2|}}}{{!}}{{{caption2|}}}
    <header>Group</header>
{{#if: {{{image3|}}}|{{{image3|}}}{{!}}{{{caption3|}}}|}}
    <data source="type">
{{#if: {{{image4|}}}|{{{image4|}}}{{!}}{{{caption4|}}}|}}|mode="slideshow"|widths="308px"}}|{{#if:{{{image|}}}|[[File:{{{image|}}}|306px|thumb]]|}}}}
       <label>Type</label>
|caption      = {{#if:{{{image2|}}}||{{{caption|}}}}}
    </data>
|header1      = Group
    <data source="purpose">
|label2      = Type
       <label>Purpose</label>
|data2        = {{{type|}}}
    </data>
|label3       = Purpose
    <data source="leader">
|data3        = {{{purpose|}}}
       <label>Leader</label>
|label4       = World(s)
    </data>
|data4        = {{{world|}}}
    <data source="members">
|label5      = Leader
       <label>Members</label>
|data5        = {{{leader|}}}
    </data>
|label6      = Members
  </group>
|data6        = {{{members|}}}
</infobox>
|label7       = Active
<noinclude>
|data7        = {{#if: {{{founded|}}}|{{{founded|}}}–{{{dissolved|}}}|}}
}}[[Category:Groups]]{{WorldSwitch|mode=MultiCategory|{{{crossworld|1}}}{{{world|}}}{{{sur4subworld|}}}{{{subworld|}}}}}</includeonly><noinclude>
{{Infobox Group
|image        = Egg.png
|caption      = Test
|type        = Infobox showcase
|purpose      = To show off all the fields in this infobox
|world        = Survival 3, Survival 4, Survival 5, Creative
|leader       = {{Player|Renthedog}}
|members      = {{Player|Renthedog}},<br>{{Player|Steve}},<br>{{Player|Alex}}
|founded      = 1st of January 2034
|dissolved    = 2nd of January 2023
}}
Example usage:<pre>
Example usage:<pre>
{{Infobox Group
{{Infobox Group
|title1=Example
|title=
|image1=Example
|image=
|caption1=Example
|caption=
|type=Example
|type=
|purpose=Example
|purpose=
|leader=Example
|leader=
|members=Example
|members=  
|founded=
|disolved=
}}
}}
</pre>
</pre><templatedata>
</noinclude>
{
"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": {
"label": "Type",
"type": "string",
"suggested": true
},
"purpose": {
"label": "Purpose",
"description": "The purpose or aim of the group.",
"example": "Collecting snowlayers",
"type": "string",
"suggested": true
},
"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
},
"founded": {
"label": "Founded",
"description": "The date of the founding of the group.",
"type": "date"
},
"endworld": {
"label": "Dissolution World",
"description": "Includes the world of dissulution after the date of dissolution.",
"example": "Survival 7",
"type": "string"
},
"world": {
"label": "World(s)",
"description": "The world(s) on which the group was active. ",
"example": "Survival 4",
"type": "string",
"required": true
},
"dissolved": {
"label": "Dissolved",
"description": "The date of the founding of the group. Leave blank if group is still active.",
"type": "date"
},
"startworld": {
"label": "Founding World",
"description": "Includes the world of founding after the date of founding.",
"example": "Survival 4",
"type": "string"
}
},
"description": "Infobox template to be used on groups in the community.",
"paramOrder": [
"title",
"image",
"caption",
"type",
"purpose",
"status",
"world",
"leader",
"members",
"founded",
"dissolved",
"startworld",
"endworld"
],
"format": "block"
}
</templatedata>

Latest revision as of 16:04, 29 July 2024

Infobox Group
Survival 3 Survival 4 Survival 5 Creative
Egg.png
Test
Group
TypeInfobox showcase
PurposeTo show off all the fields in this infobox
World(s)Survival 3, Survival 4, Survival 5, Creative
Leader20.png Renthedog
Members20.png Renthedog,
20.png Steve,
20.png Alex
Active1st of January 2034–2nd of January 2023

Example usage:

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

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
World(s)world

The world(s) on which the group was active.

Example
Survival 4
Stringrequired
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
Founding Worldstartworld

Includes the world of founding after the date of founding.

Example
Survival 4
Stringoptional
Dissolution Worldendworld

Includes the world of dissulution after the date of dissolution.

Example
Survival 7
Stringoptional