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|}}} | |data7 = {{#if: {{{founded|}}} | {{{founded|}}} {{#if: {{{world|}}}|({{Infobox/World link|{{{world|}}}}})|}} |{{Infobox/World link|{{{world|}}}}} }} | ||
| | |label8 = Disolved | ||
| | |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" | ||
}, | }, | ||
" | "endworld": { | ||
"label": "World | "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 | ||
}, | }, | ||
" | "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" | ||
} | } | ||
}, | }, | ||
Line 143: | Line 154: | ||
"members", | "members", | ||
"founded", | "founded", | ||
" | "dissolved", | ||
" | "endworld", | ||
" | "world" | ||
], | ], | ||
"format": "block" | "format": "block" | ||
} | } | ||
</templatedata></noinclude> | </templatedata> | ||
</noinclude> |
Revision as of 13:46, 12 January 2021
Infobox Group | |
Test | |
Group | |
---|---|
Type | Infobox showcase |
Purpose | To show off all the fields in this infobox |
Leader | Renthedog |
Members | Renthedog, Steve, 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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Header | title | Infobox header, for use when it should be different from the pagename.
| String | optional |
Image | image picture file img | The name of an image (without "File:") to display at the top of the infobox.
| File | required |
Caption | caption | Description of the Image parameter | String | suggested |
Type | type | no description | String | suggested |
Purpose | purpose | The purpose or aim of the group.
| String | suggested |
Status | status | Expects one of the [[Status|status templates]]. Use {{Defunct}} for disbanded groups.groups.
| Template | required |
Leader(s) | leader | The leader(s) of the group. Use {{Player|<playername>}}
| String | suggested |
Members | members | Members of the group. Use {{Player|<playername>}}
| String | suggested |
Founded | founded | The date of the founding of the group. | Date | optional |
Dissolved | dissolved | The date of the founding of the group. Leave blank if group is still active. | Date | optional |
Dissolution World | endworld | The world on which the group was disolved. Optional. Use World unless the group was active over multiple worlds.
| String | optional |
World | world | The world on which the group was active or founded.
| String | suggested |