From Brotato Wiki

(Add example using Template:Character_Data, and reformat Examples into a table)
(Revert using a table for the examples, as it breaks the layout of the infobox)
Line 31: Line 31:
}}
}}
</pre>
</pre>
Results in:
{{Infobox Character
|name=Lucky
|stats='''+8''' Max HP<br>
'''+4%'''Dodge<br>
}}
<hr style="clear: both; margin: 20px auto; padding-top: 20px; border-top: 0; background: none; border-bottom: 1px solid #555;">


With [[Template:Character_Data]] (recommended):
With [[Template:Character_Data]] (recommended):
Line 41: Line 51:
</pre>
</pre>


== Examples ==
Results in:


<table class="wikitable sortable jquery-tablesorter" style="color:#eee; background:transparent;">
<tr>
<th style="font-weight:bold; color:#eee; background-color: rgb(220,220,220,0.2);">Preview</th>
<th style="font-weight:bold; color:#eee; background-color: rgb(220,220,220,0.2); vertical-align:middle;">Code</th>
</tr>
<tr>
<td>{{Infobox Character
|name=Well Rounded
|stats={{Character Data|Well Rounded|stats}}
}}</td>
<td><pre>
{{Infobox Character  
{{Infobox Character  
|name=Well Rounded
|name=Well Rounded
|stats={{Character Data|Well Rounded|stats}}
|stats={{Character Data|Well Rounded|stats}}
}}
}}
</pre></td>
</tr>
<tr>
<td>{{Infobox Character
|name=Lucky
|stats=<span style="color:rgb(0,255,0);">+100</span> [[Luck]]<br>
All <span style="color:rgb(0,255,0);">Luck</span> modifications are <br>
increased by <span style="color:rgb(0,255,0);">25%</span><br>
<span style="color:rgb(0,255,0);">+75%</span> chance to deal <span style="color:rgb(0,255,0);">1</span>(15% Luck)<br>
damage to a random enemy<br>
when you pick up material<br>
<span style="color:rgb(244,0,0);">-60%</span> [[Attack Speed]]<br>
<span style="color:rgb(244,0,0);">-50%</span> [[XP Gain]]
}}</td>
<td><pre>
{{Infobox Character
|name=Lucky
|stats=<span style="color:rgb(0,255,0);">+100</span> [[Luck]]<br>
All <span style="color:rgb(0,255,0);">Luck</span> modifications are <br>
increased by <span style="color:rgb(0,255,0);">25%</span><br>
<span style="color:rgb(0,255,0);">+75%</span> chance to deal <span style="color:rgb(0,255,0);">1</span>(15% Luck)<br>
damage to a random enemy<br>
when you pick up material<br>
<span style="color:rgb(244,0,0);">-60%</span> Attack Speed<br>
<span style="color:rgb(244,0,0);">-50%</span> XP Gain
}}</pre></td>
</tr>
</table>


<hr style="clear: both; margin: 20px auto; padding-top: 20px; border-top: 0; background: none; border-bottom: 1px solid #555;">


</noinclude>
</noinclude>

Revision as of 18:55, 4 November 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 Character
|name=Lucky
|stats='''+8''' Max HP<br>
'''+4%'''Dodge<br>
}}

Results in:


Lucky
Lucky
Character
Stats

+8 Max HP
+4%Dodge



With Template:Character_Data (recommended):

{{Infobox Character 
|name=Well Rounded
|stats={{Character Data|Well Rounded|stats}}
}}

Results in:


Well Rounded
Well Rounded
Character
Stats

+5 Max Hp
+5% Speed
+8 Harvesting