From Brotato Wiki

(icon: use `nolink=1` to stop the image linking to a non-existent page)
(Add templatedata)
Line 82: Line 82:
<hr style="clear: both; margin: 20px auto; padding-top: 20px; border-top: 0; background: none; border-bottom: 1px solid #555;">
<hr style="clear: both; margin: 20px auto; padding-top: 20px; border-top: 0; background: none; border-bottom: 1px solid #555;">


</noinclude>
<templatedata>
{
"params": {
"icon": {
"label": "Icon Image",
"description": "Exclude \".png\"",
"example": "My_Mod_Icon",
"type": "string",
"suggested": true
},
"name": {
"label": "Name",
"example": "My Mod",
"type": "string",
"required": true,
"suggested": true
},
"author": {
"label": "Author",
"type": "string",
"suggested": true
},
"description": {
"label": "Description",
"type": "string",
"suggested": true
},
"modversion": {
"label": "Mod Version",
"example": "1.2",
"type": "string",
"suggested": true
},
"gameversion": {
"label": "Game Version",
"description": "Please wrap in the \"Version\" template",
"example": "{{Version|0.6.0.7}}",
"type": "string",
"suggested": true
},
"updated": {
"label": "Last Updated",
"description": "YYYY-MM-DD",
"example": "2022-10-24",
"type": "string",
"suggested": true
},
"links": {
"label": "Links",
"description": "Link to another page, eg a Discord server",
"example": "[http://example.com Link Name]",
"type": "string",
"suggested": true
},
"nofloat": {
"label": "nofloat (Please don't use this)",
"description": "Prevents the infobox from floating to the right. Only intended for the docs page",
"type": "boolean"
}
},
"paramOrder": [
"name",
"icon",
"author",
"description",
"modversion",
"gameversion",
"updated",
"links",
"nofloat"
],
"format": "block"
}
</templatedata></noinclude>

Revision as of 01:17, 8 December 2022


Usage

This template can be used by entering the following onto a relevant page. Do not use this on your user page. It is reserved for content pages.

{{Infobox Mod
|name        = Brotato Mobile
|icon        = Wandering Bot
|author      = Maximal08
|description = Mobile version of Brotato for Android. Lorem ipsum dolor sit amet.
|modversion  = 0.0.4
|gameversion = {{Version|0.6.0.7}}
|updated     = 2022-10-20
|links       = My Link
}}

Results in:


Wandering Bot.png
Brotato Mobile
Mod by Maximal08
Description
Mobile version of Brotato for Android. Lorem ipsum dolor sit amet.
Mod Version
0.0.4
Game Version
0.6.0.7
Last Updated
2022-10-20


Notes

External links are added like this:

[https://example.com This is the link text]


No description.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Namename

no description

Example
My Mod
Stringrequired
Icon Imageicon

Exclude ".png"

Example
My_Mod_Icon
Stringsuggested
Authorauthor

no description

Stringsuggested
Descriptiondescription

no description

Stringsuggested
Mod Versionmodversion

no description

Example
1.2
Stringsuggested
Game Versiongameversion

Please wrap in the "Version" template

Example
{{Version|0.6.0.7}}
Stringsuggested
Last Updatedupdated

YYYY-MM-DD

Example
2022-10-24
Stringsuggested
Linkslinks

Link to another page, eg a Discord server

Example
[http://example.com Link Name]
Stringsuggested
nofloat (Please don't use this)nofloat

Prevents the infobox from floating to the right. Only intended for the docs page

Booleanoptional