From Brotato Wiki

(add `updated` option, to show when a mod was last updated)
m (reduce icon size very slightly (100px > 96px). This fixes some image stretching issues with mods that use existing item icons (as they are all 96x96))
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
<div class="itembox" style="float:right;width:90%;max-width:400px;">
<div class="itembox" style="width:90%;max-width:400px;{{#ifeq:{{{nofloat|}}}|1||float:right;}}">
<div class="itemboxheader">
<div class="itemboxheader">
<div style="float:left">
<div style="float:left">
{{Iconbox|{{{icon|Cog}}}|caption=no|size=100px}}
{{Iconbox|{{{icon|Cog}}}|caption=no|size=96px|nolink=1}}
</div>
</div>
<div style="width:60%;max-width:280px;margin-left:15px;height:100px;justify-content:space-between!important;display:flex;flex-direction: column!important;float:left;margin-top:0px;">
<div style="width:60%;max-width:280px;margin-left:15px;height:100px;justify-content:space-between!important;display:flex;flex-direction: column!important;float:left;margin-top:0px;">
Line 60: Line 60:
</pre>
</pre>


Results in (see right):
Results in:


{{Infobox Mod
{{Infobox Mod
Line 71: Line 71:
|updated    = 2022-10-20
|updated    = 2022-10-20
|links      = [https://steamcommunity.com/sharedfiles/filedetails/?id=2881564938 Steam Guide], [https://discord.gg/kPUd3N4PJA Discord]
|links      = [https://steamcommunity.com/sharedfiles/filedetails/?id=2881564938 Steam Guide], [https://discord.gg/kPUd3N4PJA Discord]
|nofloat    = 1
}}
}}
=== Notes ===


External links are added like this:
External links are added like this:


<code><nowiki>[https://example.com Link Name]</nowiki></code>
<code><nowiki>[https://example.com This is the link text]</nowiki></code>


<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>

Latest revision as of 10:55, 12 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