Template:Infobox/AvatarType/doc: Difference between revisions
WentTheFox (talk | contribs) m Fix misleading published date examples |
Add TemplateData and remove Description and Parameters section |
||
| Line 1: | Line 1: | ||
<noinclude>[[Category:Template Documentation]]</noinclude> | |||
{{Infobox/AvatarType | {{Infobox/AvatarType | ||
|name= Example Avatar | |name= Example Avatar | ||
| Line 5: | Line 6: | ||
|published= January 1, 2024 | |published= January 1, 2024 | ||
}} | }} | ||
==Example== | ==Example== | ||
<pre> | <pre> | ||
| Line 45: | Line 15: | ||
<nowiki>}}</nowiki> | <nowiki>}}</nowiki> | ||
</pre> | </pre> | ||
< | ==TemplateData Documentation== | ||
<templatedata> | |||
{ | |||
"params": { | |||
"name": { | |||
"label": "Name", | |||
"description": "The name of the avatar base.", | |||
"example": "Example Avatar", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"image": { | |||
"label": "Image", | |||
"description": "The image used for the thumbnail of the avatar.", | |||
"example": "Robot_Avatar_Thumbnail.png", | |||
"type": "wiki-file-name", | |||
"required": true | |||
}, | |||
"author": { | |||
"label": "Author", | |||
"description": "The user who has created the original avatar base.", | |||
"example": "Example Author", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"published": { | |||
"label": "Published", | |||
"description": "The date this avatar base was first published.", | |||
"example": "January 1, 2024", | |||
"type": "date" | |||
} | |||
}, | |||
"description": "Paste this template into an Avatar Page for an Avatar Base to have the infobox appear on the top right. It is recommended to paste and fill this out while in the Source editor, however this can also be done in the Visual editor. For more guidance on how to best use this, see how other Avatar pages have implemented this infobox.\n\nThis template is for writing about Avatar Types, also known as Avatar Bases. Do not use this template to reference a specific Avatar. For a specific Avatar use [[Template:Infobox/Avatar]]\n\nFields without contents will not show up on the infobox.", | |||
"paramOrder": [ | |||
"name", | |||
"image", | |||
"author", | |||
"published" | |||
] | |||
} | |||
</templatedata> | |||
Revision as of 16:40, 9 April 2025
Example
{{Infobox/AvatarType
|name= Example Avatar
|image= File:Robot_Avatar_Thumbnail.png
|author= Example Author
|published= January 1, 2024
}}
TemplateData Documentation
Paste this template into an Avatar Page for an Avatar Base to have the infobox appear on the top right. It is recommended to paste and fill this out while in the Source editor, however this can also be done in the Visual editor. For more guidance on how to best use this, see how other Avatar pages have implemented this infobox. This template is for writing about Avatar Types, also known as Avatar Bases. Do not use this template to reference a specific Avatar. For a specific Avatar use [[Template:Infobox/Avatar]] Fields without contents will not show up on the infobox.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Name | name | The name of the avatar base.
| String | required |
| Image | image | The image used for the thumbnail of the avatar.
| File | required |
| Author | author | The user who has created the original avatar base.
| String | required |
| Published | published | The date this avatar base was first published.
| Date | optional |