Gaming
 

Template talk:Job Status

From FFXIclopedia, the free Final Fantasy XI encyclopedia

Test

Examples

~ 123,456 EXP BST -> 75 Status: 15% 801,350 EXP
~ 400,000 EXP Beastmaster -> 75 Status: 50% 801,350 EXP

With decimals

~ 322,550 EXP BLU -> 75 Status: 40.20% 801,350 EXP

lvl 75

~ Capped EXP BST -> 75 Status: 100% 801,350 EXP

All seems good. --Daniel 08:20, 19 July 2006 (EDT)

User-friendly Version

With the following code, no math is required from the user:

<div style="border: 1px solid #8888FF; background: #F3F3FF; padding: 5px;">
{| style="width:100%; border-collapse: collapse; background: #F3F3FF;"
|-
|colspan="3"|
{| style="border: 1px solid black; border-collapse: collapse; width: 100%; font-size: 1em; height: 5px;"
|-
|align="center" style="width:{{#expr: (100 / 801350) * ({{{2}}} + {{{3}}})}}%; height: 5px; background: #44FF44;color: #000000"|
|align="center" style="width:{{#expr: 100 - ((100 / 801350) * ({{{2}}} + {{{3}}}))}}%; height: 5px; background: "white";color: #000000"|
|}
|-
|style="width: 33%;"|'''~ {{formatnum:{{#expr: {{{2}}} + {{{3}}} }} }} EXP'''
|style="text-align: center; width: 33%;"|'''[[{{{1}}}]] ⇒ 75 Status: {{#expr: (100 / 801350) * ({{{2}}} + {{{3}}}) round 1}}%'''
|style="text-align:right; width: 33%;"|'''801,350 EXP'''
|}
</div>

Usage is {{Job Status|job|level exp|current exp}} (level exp = amount accumulated by your current level, current exp = exp shown on status screen). The only sacrifice is that numbers cannot be entered with commas, since #expr: can't handle them. ~ Karuberu 22:03, 25 May 2007 (CDT)

Changed code slightly; Added {{formatnum:}} to the exp display so it will have commas at the appropriate places. Now there's nothing sacrificed by using this. ~ Karuberu 22:35, 28 August 2007 (CDT)

Made some more modification and created an example template in my template sandbox. ~ Karuberu 01:34, 16 February 2008 (UTC)