Template:Onyx Row: Difference between revisions

From The Jadnix Codex

No edit summary
Tag: Manual revert
No edit summary
Line 1: Line 1:
<noinclude>
<noinclude>
This is the row formatter for the Onyx Registry. It is designed to work within a Wikitext table.
This is the row formatter for the Onyx Registry.
{| class="onyx-ledger"
{| class="onyx-ledger"
! ENTITY !! CR !! STATS !! INTEL
! ENTITY !! CR !! STATS !! INTEL
{{Onyx Row|Name=Preview Entity|Class=B|CR=85000|STR=14377|DEF=10647|SPD=18332|ACU=16636|SOL=25008|Description=This is a preview description.}}
{{Onyx Row|name=Preview Entity|class=B|cr=85000|str=14377|def=10647|spd=18332|acu=16636|sol=25008|description=This is a preview description.}}
|}
|}
</noinclude><includeonly>
</noinclude><includeonly>
|- class="onyx-row row-class-{{{Class|}}}" data-cr="{{{CR|0}}}"
|- class="onyx-row row-class-{{{class|}}}" data-cr="{{{cr|0}}}"
| style="font-weight:bold; color:var(--void-accent);" | [[{{{Name|}}}]]
| style="font-weight:bold; color:var(--void-accent);" | [[{{{name|}}}]]
| style="text-align:center;" | {{#formatnum:{{{CR|0}}}}}
| style="text-align:center;" | {{formatnum:{{{cr|0}}}}}
|  
|  
<div class="stat-container">
<div class="stat-container">
   <div class="stat-label">STR</div>
   <div class="stat-label">STR</div>
   <div class="stat-bar-container"><div class="stat-bar-fill" style="width:{{#expr: ({{{STR|0}}} / 100000) * 100 round 0}}%;"></div></div>
   <div class="stat-bar-container"><div class="stat-bar-fill" style="width:{{#expr: ({{{str|0}}} / 100000) * 100 round 0}}%;"></div></div>
   <div class="stat-label">DEF</div>
   <div class="stat-label">DEF</div>
   <div class="stat-bar-container"><div class="stat-bar-fill" style="width:{{#expr: ({{{DEF|0}}} / 100000) * 100 round 0}}%;"></div></div>
   <div class="stat-bar-container"><div class="stat-bar-fill" style="width:{{#expr: ({{{def|0}}} / 100000) * 100 round 0}}%;"></div></div>
   <div class="stat-label">SPD</div>
   <div class="stat-label">SPD</div>
   <div class="stat-bar-container"><div class="stat-bar-fill" style="width:{{#expr: ({{{SPD|0}}} / 100000) * 100 round 0}}%;"></div></div>
   <div class="stat-bar-container"><div class="stat-bar-fill" style="width:{{#expr: ({{{spd|0}}} / 100000) * 100 round 0}}%;"></div></div>
   <div class="stat-label">ACU</div>
   <div class="stat-label">ACU</div>
   <div class="stat-bar-container"><div class="stat-bar-fill" style="width:{{#expr: ({{{ACU|0}}} / 100000) * 100 round 0}}%;"></div></div>
   <div class="stat-bar-container"><div class="stat-bar-fill" style="width:{{#expr: ({{{acu|0}}} / 100000) * 100 round 0}}%;"></div></div>
   <div class="stat-label">SOL</div>
   <div class="stat-label">SOL</div>
   <div class="stat-bar-container"><div class="stat-bar-fill" style="width:{{#expr: ({{{SOL|0}}} / 100000) * 100 round 0}}%;"></div></div>
   <div class="stat-bar-container"><div class="stat-bar-fill" style="width:{{#expr: ({{{sol|0}}} / 100000) * 100 round 0}}%;"></div></div>
</div>
</div>
| style="font-size:0.85em; color:#888;" | {{{Description|}}}
| style="font-size:0.85em; color:#888;" | {{{description|}}}
</includeonly>
</includeonly>

Revision as of 14:03, 13 February 2026

This is the row formatter for the Onyx Registry.

ENTITY CR STATS INTEL
Preview Entity 85,000
STR
DEF
SPD
ACU
SOL
This is a preview description.