Jump to content

Template:ClassInfobox: Difference between revisions

From ROIdle Wiki
No edit summary
No edit summary
 
(32 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{| class="wikitable" style="float:right; margin-left: 5%; margin-bottom: 5%;"
<includeonly>{| class="wikitable" style="float:right; margin-left: 5%; margin-bottom: 5%;"
! style="text-align:center;" | {{{name}}} {{{image}}}
! colspan=2 style="text-align:center;" | {{{name}}} {{{image}}}
|-
|-
| style="text-align:center;" | {{{portrait}}}
| colspan=2 style="text-align:center;" | {{{portrait}}}
|-
|-
|{{!}} style="width:10em;" {{!}} '''Max Level:''' || {{{maxLevel|25}}}
| colspan=1 style="text-align:left; border-right: 0;" |'''Max Level:'''  
| colspan=1 style="text-align:right; border-left: 0; padding-right: 15px;" | {{{maxLevel|25}}}
|-
|-
| '''Base HP/Level:''' || {{{baseHp|5}}}<br>'''Variable HP/Level:''' || {{{varHp|0.4}}}<br>'''Base MP/Level:''' || {{{baseMp|1.5}}}
| colspan=1 style="text-align:left; border-right: 0;" |'''Base HP/Level:'''<br>'''Variable HP/Level:'''<br>'''Base MP/Level:''' 
| colspan=1 style="text-align:right; border-left: 0; padding-right: 15px;" | {{{baseHp|5}}}<br> {{{varHp|0.4}}}<br> {{{baseMp|1.5}}}
|-
|-
| '''Unlocks from:''' || {{{unlocksFrom|Starting Class}}}
| colspan=2 |'''Unlocks from:''' {{{unlocksFrom|Starting Class}}}
|-
|-
| '''Unlocks:''' || {{{unlocksTo|}}}
| colspan=2 | '''Unlocks:''' {{{unlocksTo|}}}
|-
|-
| style="text-align:center;" | __TOC__
| colspan=2 style="text-align:center;" |
<p style="text-align:center; margin: 0 5px;">Class Bonuses</p>
{| class="wikitable" style="width:100%; text-align:center; border:none; margin: 0;"
|-
| style="border:none;" | '''STR''' || style="border:none;" | '''AGI''' || style="border:none;" | '''VIT''' || style="border:none;" | '''INT''' || style="border:none;" | '''DEX''' || style="border:none;" | '''WIS'''
|-
| style="border:none;" | +{{{strBonus|0}}} || style="border:none;" | +{{{agiBonus|0}}} || style="border:none;" | +{{{vitBonus|0}}} || style="border:none;" | +{{{intBonus|0}}} || style="border:none;" | +{{{dexBonus|0}}} || style="border:none;" | +{{{wisBonus|0}}}
|}
|}</includeonly><noinclude>
|}</includeonly><noinclude>
== Usage ==
== Usage ==
Line 49: Line 58:
|unlocksFrom=Starting Class
|unlocksFrom=Starting Class
|unlocksTo=[[Knight]], [[Mercenary]]
|unlocksTo=[[Knight]], [[Mercenary]]
|strBonus=1
|agiBonus=1
|vitBonus=1
|intBonus=1
|dexBonus=1
|wisBonus=1
}}
}}
</pre>
</pre>
</noinclude>
</noinclude>

Latest revision as of 14:21, 8 August 2025

Usage

This template creates a standardized class infobox.

Parameters

name
The name of the class (e.g., "Warrior")
image
URL to the class icon (will be displayed as text, e.g., "https://roidle.com/regular/assets/images/classes/o.png")
portrait
URL to the class portrait/art (e.g., "https://irowiki.org/w/images/9/9b/Swordman.png")
maxLevel
Maximum level for this class (default: 25)
baseHp
Base HP per level (default: 5)
varHp
Variable HP per level (default: 0.4)
baseMp
Base MP per level (default: 1.5)
unlocksFrom
How this class is unlocked (default: "Starting Class")
unlocksTo
Links to classes this one unlocks (use wiki links)

Example

{{ClassInfobox
|name=Warrior
|image=https://roidle.com/regular/assets/images/classes/1.png
|portrait=https://irowiki.org/w/images/9/9b/Swordman.png
|maxLevel=25
|baseHp=5
|varHp=0.4
|baseMp=1.5
|unlocksFrom=Starting Class
|unlocksTo=[[Knight]], [[Mercenary]]
|strBonus=1
|agiBonus=1
|vitBonus=1
|intBonus=1
|dexBonus=1
|wisBonus=1
}}