Template

Infobox Group

From Dogcraft Wiki

No edit summary
(Infobox 2.0 rollout (removed unused world, startworld and endworld parameters))
Line 1: Line 1:
<includeonly>{{Infobox
<includeonly>{{Infobox2
|name        =
|above       = {{#if:{{{title|}}}|{{{title|}}}|{{PAGENAME}}}}
|bodystyle    =
|image        = {{#if:{{{image2|}}}|{{#tag:gallery
|title       = {{#if:{{{title|}}}|{{{title|}}}|{{PAGENAME}}}}
|{{#if: {{{image|}}}|{{{image|}}}{{!}}{{{caption|}}}|}}
|titlestyle  =  
{{{image2|}}}{{!}}{{{caption2|}}}
|image        = {{#if:{{{image|}}}|[[File:{{{image|}}}|250px]]}}
{{#if: {{{image3|}}}|{{{image3|}}}{{!}}{{{caption3|}}}|}}
|imagestyle  =
{{#if: {{{image4|}}}|{{{image4|}}}{{!}}{{{caption4|}}}|}}|mode="slideshow"|widths="308px"}}|{{#if:{{{image|}}}|[[File:{{{image|}}}|306px|thumb]]|}}}}
|caption      = {{{caption|<br />}}}
|caption      = {{#if:{{{image2|}}}||{{{caption|}}}}}
|captionstyle = color:#000;
|header1      = Group
|headerstyle  = background:{{main-color}}; color:#fff;
|labelstyle  = padding: 3px;
|datastyle    = padding: 3px;
|header1 = {{Large|Group}}
|label2  = Type
|label2  = Type
|data2  = {{{type|}}}
|data2  = {{{type|}}}
Line 20: Line 16:
|label5  = Members
|label5  = Members
|data5  = {{{members|}}}
|data5  = {{{members|}}}
|label6  = World(s)
|label6  = Active
|data6   = {{WorldSwitch|{{{world|}}}|{{{sur4subworld|}}}}}
|data6  = {{#if: {{{founded|}}}|{{{founded|}}}{{{dissolved|}}}|}}
|label7  = [[Status]]
}}[[Category:Groups]]
|data7  = {{{status|Unknown}}}
|label8  = Founded
|data8   = {{#if: {{{founded|}}} | {{{founded|}}} {{#if: {{{startworld|}}}|({{WorldSwitch|{{{startworld|}}}}})|}} |{{WorldSwitch|{{{startworld|}}}}} }}
|label9  = Disolved
|data9  = {{#if: {{{dissolved|}}} | {{{dissolved|}}} {{#if: {{{endworld|}}}|({{WorldSwitch|{{{endworld|}}} }})|}}|{{WorldSwitch|{{{endworld|}}}}} }}
}}
 
[[Category:Groups]]
</includeonly><noinclude>
</includeonly><noinclude>
{{Infobox Group
{{Infobox Group
| image = Egg.png
|image       = Egg.png
| caption = Test
|caption     = Test
| type = Infobox showcase
|type         = Infobox showcase
| purpose = To show off all the fields in this infobox
|purpose     = To show off all the fields in this infobox
| status = {{Active}}
|leader       = {{Player|Renthedog}}
| leader = {{Player|Renthedog}}
|members     = {{Player|Renthedog}},<br>{{Player|Steve}},<br>{{Player|Alex}}
| members = {{Player|Renthedog}},<br>{{Player|Steve}},<br>{{Player|Alex}}
|founded     = 1st of January 2034
| world = Survival 3
|dissolved   = 2nd of January 2023
| endworld = Beagle
}}
|startworld=Survival 3|founded=1st of January 2034|dissolved=2nd of January 2023}}
Example usage:<pre>
Example usage:<pre>
{{Infobox Group
{{Infobox Group
Line 51: Line 38:
|purpose=
|purpose=
|leader=
|leader=
|members=
|members=  
|status=  
|founded=
|founded=
|disolved=
|disolved=
|startworld=
|endworld=
}}
}}
</pre><templatedata>
</pre><templatedata>

Revision as of 23:49, 28 June 2022

Infobox Group
Egg.png
Test
Group
TypeInfobox showcase
PurposeTo show off all the fields in this infobox
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
This page was last modified on 28 June 2022, at 23:49. (3 months ago)
Background Dragon Slayer - Retriever by Ironboundred