Template:Pet: Difference between revisions
From TNTable
No edit summary |
No edit summary |
||
Line 15: | Line 15: | ||
{{!}}- }} | {{!}}- }} | ||
| '''Age''' | {{#if: {{{age|}}} | | ||
{{!}} '''Age''' | |||
{{!}} {{{age}}} | |||
{{!}}- }} | |||
{{Table Header | Details }} | {{Table Header | Details }} | ||
|- | |- | ||
Line 29: | Line 31: | ||
|} | |} | ||
|525px]] | |525px]] | ||
<noinclude> | |||
<templatedata> | |||
{ | |||
"params": { | |||
"petImage": { | |||
"label": "Image", | |||
"description": "The name of the image file.", | |||
"type": "wiki-file-name", | |||
"required": true, | |||
"suggested": true | |||
}, | |||
"petName": { | |||
"label": "Name", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"startDate": { | |||
"label": "Born/Found", | |||
"description": "Date", | |||
"example": "February 6, 2017", | |||
"type": "date", | |||
"default": "Unknown", | |||
"suggested": true | |||
}, | |||
"deathDate": { | |||
"label": "Death/Lost Date", | |||
"description": "The date the pet was lost or died.", | |||
"example": "May 29, 2021", | |||
"type": "date", | |||
"suggested": true | |||
}, | |||
"age": { | |||
"label": "Age", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"mobType": { | |||
"label": "Mob Type", | |||
"description": "Type of mob the pet was.", | |||
"example": "Parrot", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"aliveServer": { | |||
"label": "Server", | |||
"description": "What server did this pet live on?", | |||
"example": "Winter Spawn", | |||
"type": "wiki-page-name", | |||
"required": true | |||
} | |||
}, | |||
"description": "This template is for the info box for pets.", | |||
"paramOrder": [ | |||
"petName", | |||
"petImage", | |||
"startDate", | |||
"deathDate", | |||
"age", | |||
"mobType", | |||
"aliveServer" | |||
] | |||
} | |||
</templatedata> | |||
</noinclude> |
Revision as of 12:16, 17 September 2022
[[File:{{{petImage}}}|thumb|
{{{petName}}} | |
---|---|
Life | |
Found or Born | Unknown |
Details | |
Mob | {{{mobType}}} |
Server | [ {{{aliveServer}}} {{{aliveServer}}} ] |
|525px]]
This template is for the info box for pets.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Name | petName | no description | String | required |
Image | petImage | The name of the image file. | File | required |
Born/Found | startDate | Date
| Date | suggested |
Death/Lost Date | deathDate | The date the pet was lost or died.
| Date | suggested |
Age | age | no description | String | suggested |
Mob Type | mobType | Type of mob the pet was.
| String | required |
Server | aliveServer | What server did this pet live on?
| Page name | required |