From Brotato Wiki
m (align "=" characters) |
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)) |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
<div class="itembox" style=" | <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= | {{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 14: | Line 14: | ||
<div class="line"></div> | <div class="line"></div> | ||
{{#if:{{{description|}}}| | {{#if:{{{description|}}}| | ||
<div class="stats-container"> | <div class="stats-container" style="clear: both; padding: 10px 0;"> | ||
<div style="font-weight:bold; color:rgb(234,226,176);">Description</div> | <div style="float: left; width: 30%; font-weight:bold; color:rgb(234,226,176);">Description</div> | ||
{{{description}}} | <div style="float: left; width: 70%;">{{{description}}}</div> | ||
</div> | </div> | ||
|}} | |}} | ||
{{#if:{{{modversion|}}}| | {{#if:{{{modversion|}}}| | ||
<div class="stats-container"> | <div class="stats-container" style="clear: both; padding: 10px 0;"> | ||
<div style="font-weight:bold; color:rgb(234,226,176);">Mod Version</div> | <div style="float: left; width: 30%; font-weight:bold; color:rgb(234,226,176);">Mod Version</div> | ||
{{{modversion}}} | <div style="float: left; width: 70%;">{{{modversion}}}</div> | ||
</div> | </div> | ||
|}} | |}} | ||
{{#if:{{{gameversion|}}}| | {{#if:{{{gameversion|}}}| | ||
<div class="stats-container"> | <div class="stats-container" style="clear: both; padding: 10px 0;"> | ||
<div style="font-weight:bold; color:rgb(234,226,176);">Game Version</div> | <div style="float: left; width: 30%; font-weight:bold; color:rgb(234,226,176);">Game Version</div> | ||
{{{gameversion}}} | <div style="float: left; width: 70%;">{{{gameversion}}}</div> | ||
</div> | |||
|}} | |||
{{#if:{{{updated|}}}| | |||
<div class="stats-container" style="clear: both; padding: 10px 0;"> | |||
<div style="float: left; width: 30%; font-weight:bold; color:rgb(234,226,176);">Last Updated</div> | |||
<div style="float: left; width: 70%;">{{{updated}}}</div> | |||
</div> | </div> | ||
|}} | |}} | ||
{{#if:{{{links|}}}| | {{#if:{{{links|}}}| | ||
<div class="stats-container"> | <div class="stats-container" style="clear: both; padding: 10px 0;"> | ||
<div style="font-weight:bold; color:rgb(234,226,176);">Links</div> | <div style="float: left; width: 30%; font-weight:bold; color:rgb(234,226,176);">Links</div> | ||
{{{links}}} | <div style="float: left; width: 70%;">{{{links}}}</div> | ||
</div> | </div> | ||
|}} | |}} | ||
Line 46: | Line 52: | ||
|icon = Wandering Bot | |icon = Wandering Bot | ||
|author = Maximal08 | |author = Maximal08 | ||
|description = Mobile version of Brotato for Android. | |description = Mobile version of Brotato for Android. Lorem ipsum dolor sit amet. | ||
|modversion = 0.0.4 | |modversion = 0.0.4 | ||
|gameversion = 0.6.0.7 | |gameversion = {{Version|0.6.0.7}} | ||
|updated = 2022-10-20 | |||
|links = My Link | |links = My Link | ||
}} | }} | ||
</pre> | </pre> | ||
Results in | Results in: | ||
{{Infobox Mod | {{Infobox Mod | ||
Line 59: | Line 66: | ||
|icon = Wandering Bot | |icon = Wandering Bot | ||
|author = Maximal08 | |author = Maximal08 | ||
|description = Mobile version of Brotato for Android. | |description = Mobile version of Brotato for Android. Lorem ipsum dolor sit amet. | ||
|modversion = 0.0.4 | |modversion = 0.0.4 | ||
|gameversion = 0.6.0.7 | |gameversion = {{Version|0.6.0.7}} | ||
|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 | <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:
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
Links
Notes
External links are added like this:
[https://example.com This is the link text]
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Name | name | no description
| String | required |
Icon Image | icon | Exclude ".png"
| String | suggested |
Author | author | no description | String | suggested |
Description | description | no description | String | suggested |
Mod Version | modversion | no description
| String | suggested |
Game Version | gameversion | Please wrap in the "Version" template
| String | suggested |
Last Updated | updated | YYYY-MM-DD
| String | suggested |
Links | links | Link to another page, eg a Discord server
| String | suggested |
nofloat (Please don't use this) | nofloat | Prevents the infobox from floating to the right. Only intended for the docs page | Boolean | optional |