Template:ATStats: Difference between revisions

From Unofficial Homecoming Wiki
Jump to navigation Jump to search
imported>Sekoia
(removing numbers row)
(more modern appearance, borderless and less distance between label and number for readability)
Line 1: Line 1:
<includeonly>{| class="wikitable"
<includeonly>
|-
<div role="figure" aria-labelledby="{{anchorencode:{{PAGENAME}}}}-stats" style="max-width: max-content;">
! colspan="11" width="420px"| {{PAGENAME}} Stats
<div id="{{anchorencode:{{PAGENAME}}}}-stats" style="text-align: center; font-weight: bold;">{{PAGENAME}} Stats</div>
|- align="right"
<dl style="display: table; border-spacing: 1em 0.5em; background: #f9f9f9; text-align: right;">
! width="120px" align="center" | Survivability
<div style="display: table-row;">
| width="30px" style="background:#adc4ff;{{#ifexpr:{{{survive|}}} != 1|border-right: none;}}" | {{#ifexpr:{{{survive|}}} = 1|'''1 &nbsp;'''|&nbsp;}}
<dt style="display: table-cell; font-family: inherit; font-weight: inherit;">Survivability</dt>
| width="30px" style="{{#ifexpr:{{{survive|}}}>=2|background:#adc4ff;}}{{#ifexpr:{{{survive|}}} != 1| border-left: none;}}{{#ifexpr:{{{survive|}}} != 2| border-right: none;}}" | {{#ifexpr:{{{survive|}}} = 2|'''2 &nbsp;'''|&nbsp;}}
<dd style="display: table-cell;">
| width="30px" style="{{#ifexpr:{{{survive|}}}>=3|background:#adc4ff;}}{{#ifexpr:{{{survive|}}} != 2| border-left: none;}}{{#ifexpr:{{{survive|}}} != 3| border-right: none;}}" | {{#ifexpr:{{{survive|}}} = 3|'''3 &nbsp;'''|&nbsp;}}
<div style="box-sizing: border-box; margin-right: {{#expr:10 - {{{survive}}}}}em; width: {{{survive}}}em; padding: 0.1em 0.6em; background: #adc4ff; text-align: right;">{{{survive}}}</div>
| width="30px" style="{{#ifexpr:{{{survive|}}}>=4|background:#adc4ff;}}{{#ifexpr:{{{survive|}}} != 3| border-left: none;}}{{#ifexpr:{{{survive|}}} != 4| border-right: none;}}" | {{#ifexpr:{{{survive|}}} = 4|'''4 &nbsp;'''|&nbsp;}}
</dd>
| width="30px" style="{{#ifexpr:{{{survive|}}}>=5|background:#adc4ff;}}{{#ifexpr:{{{survive|}}} != 4| border-left: none;}}{{#ifexpr:{{{survive|}}} != 5| border-right: none;}}" | {{#ifexpr:{{{survive|}}} = 5|'''5 &nbsp;'''|&nbsp;}}
</div>
| width="30px" style="{{#ifexpr:{{{survive|}}}>=6|background:#adc4ff;}}{{#ifexpr:{{{survive|}}} != 5| border-left: none;}}{{#ifexpr:{{{survive|}}} != 6| border-right: none;}}" | {{#ifexpr:{{{survive|}}} = 6|'''6 &nbsp;'''|&nbsp;}}
<div style="display: table-row;">
| width="30px" style="{{#ifexpr:{{{survive|}}}>=7|background:#adc4ff;}}{{#ifexpr:{{{survive|}}} != 6| border-left: none;}}{{#ifexpr:{{{survive|}}} != 7| border-right: none;}}" | {{#ifexpr:{{{survive|}}} = 7|'''7 &nbsp;'''|&nbsp;}}
<dt style="display: table-cell; font-family: inherit; font-weight: inherit;">Melee Damage</dt>
| width="30px" style="{{#ifexpr:{{{survive|}}}>=8|background:#adc4ff;}}{{#ifexpr:{{{survive|}}} != 7| border-left: none;}}{{#ifexpr:{{{survive|}}} != 8| border-right: none;}}" | {{#ifexpr:{{{survive|}}} = 8|'''8 &nbsp;'''|&nbsp;}}
<dd style="display: table-cell;">
| width="30px" style="{{#ifexpr:{{{survive|}}}>=9|background:#adc4ff;}}{{#ifexpr:{{{survive|}}} != 8| border-left: none;}}{{#ifexpr:{{{survive|}}} != 9| border-right: none;}}" | {{#ifexpr:{{{survive|}}} = 9|'''9 &nbsp;'''|&nbsp;}}
<div style="box-sizing: border-box; margin-right: {{#expr:10 - {{{melee}}}}}em; width: {{{melee}}}em; padding: 0.1em 0.6em; background: #adc4ff; text-align: right;">{{{melee}}}</div>
| width="30px" style="{{#ifexpr:{{{survive|}}}=10|background:#adc4ff;}}{{#ifexpr:{{{survive|}}} != 9| border-left: none;}}" | {{#ifexpr:{{{survive|}}} = 10|'''10 &nbsp;'''|&nbsp;}}
</dd>
|-
</div>
! Melee Damage
<div style="display: table-row;">
| colspan={{{melee|}}} style="background:#adc4ff;" align="right" | '''{{{melee|}}} &nbsp;'''
<dt style="display: table-cell; font-family: inherit; font-weight: inherit;">Ranged Damage</dt>
{{#ifexpr: {{{melee|}}} < 10 | {{!}} colspan={{#expr: 10 - {{{melee|}}} }} {{!}} &nbsp; }}
<dd style="display: table-cell;">
|-
<div style="box-sizing: border-box; margin-right: {{#expr:10 - {{{ranged}}}}}em; width: {{{ranged}}}em; padding: 0.1em 0.6em; background: #adc4ff; text-align: right;">{{{ranged}}}</div>
! Ranged Damage
</dd>
| colspan={{{ranged|}}} style="background:#adc4ff;" align="right" | '''{{{ranged|}}} &nbsp;'''
</div>
{{#ifexpr: {{{ranged|}}} < 10 | {{!}} colspan={{#expr: 10 - {{{ranged|}}} }} {{!}} &nbsp; }}
<div style="display: table-row;">
|-
<dt style="display: table-cell; font-family: inherit; font-weight: inherit;">Crowd Control</dt>
! Crowd Control
<dd style="display: table-cell;">
| colspan={{{control|}}} style="background:#adc4ff;" align="right" | '''{{{control|}}} &nbsp;'''
<div style="box-sizing: border-box; margin-right: {{#expr:10 - {{{control}}}}}em; width: {{{control}}}em; padding: 0.1em 0.6em; background: #adc4ff; text-align: right;">{{{control}}}</div>
{{#ifexpr: {{{control|}}} < 10 | {{!}} colspan={{#expr: 10 - {{{control|}}} }} {{!}} &nbsp; }}
</dd>
|-
</div>
! Support
<div style="display: table-row;">
| colspan={{{support|}}} style="background:#adc4ff;" align="right" | '''{{{support|}}} &nbsp;'''
<dt style="display: table-cell; font-family: inherit; font-weight: inherit;">Support</dt>
{{#ifexpr: {{{support|}}} < 10 | {{!}} colspan={{#expr: 10 - {{{support|}}} }} {{!}} &nbsp; }}
<dd style="display: table-cell;">
|-
<div style="box-sizing: border-box; margin-right: {{#expr:10 - {{{support}}}}}em; width: {{{support}}}em; padding: 0.1em 0.6em; background: #adc4ff; text-align: right;">{{{support}}}</div>
! Pets
</dd>
| colspan={{{pets|}}} style="background:#adc4ff;" align="right" | '''{{{pets|}}} &nbsp;'''
</div>
{{#ifexpr: {{{pets|}}} < 10 | {{!}} colspan={{#expr: 10 - {{{pets|}}} }} {{!}} &nbsp; }}
<div style="display: table-row;">
|}</includeonly><noinclude>
<dt style="display: table-cell; font-family: inherit; font-weight: inherit;">Pets</dt>
<dd style="display: table-cell;">
<div style="box-sizing: border-box; margin-right: {{#expr:10 - {{{pets}}}}}em; width: {{{pets}}}em; padding: 0.1em 0.6em; background: #adc4ff; text-align: right;">{{{pets}}}</div>
</dd>
</div>
</dl>
</div>
</includeonly><noinclude>
== Usage ==
== Usage ==
To display the various stats from the in-game character creation screen.
To display the various stats from the in-game character creation screen.

Revision as of 20:56, 6 April 2022

Usage

To display the various stats from the in-game character creation screen.

There are six parameters, all required, each a single number from 1 to 10.

  • survive
  • melee
  • ranged
  • control
  • support
  • pets
{{ATStats|survive=|melee=|ranged=|control=|support=|pets=}}

Example

{{ATStats|survive=2|melee=4|ranged=6|control=8|support=10|pets=2}}


ATStats Stats
Survivability
2
Melee Damage
4
Ranged Damage
6
Crowd Control
8
Support
10
Pets
2