Template:ATStats: Difference between revisions

From Unofficial Homecoming Wiki
Jump to navigation Jump to search
imported>Sekoia
(removing numbers row)
(padding and background to closer match previous appearance)
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{| class="wikitable"
<includeonly><div role="figure" aria-labelledby="{{anchorencode:{{PAGENAME}}}}-stats" style="max-width: max-content; text-align: center; background: #f2f2f2;">
|-
<div id="{{anchorencode:{{PAGENAME}}}}-stats" style="padding-top: 0.3em; font-weight: bold;">{{PAGENAME}} Stats</div>
! colspan="11" width="420px"| {{PAGENAME}} Stats
{{#if:{{{note|}}}|
|- align="right"
<p style="margin: auto; max-width: 19em;">{{{note}}}</p>
! width="120px" align="center" | Survivability
}}
| width="30px" style="background:#adc4ff;{{#ifexpr:{{{survive|}}} != 1|border-right: none;}}" | {{#ifexpr:{{{survive|}}} = 1|'''1 &nbsp;'''|&nbsp;}}
<dl style="display: table; border-spacing: 1em 0.5em; background: #f9f9f9; text-align: right;">
| 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;}}
<div style="display: table-row;">
| 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;}}
<dt style="display: table-cell; font-family: inherit; font-weight: inherit;">Survivability</dt>
| 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 style="display: table-cell;">
| 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 style="box-sizing: border-box; margin-right: {{#expr:10 - {{#ifeq:{{{survive}}}|?|5|{{{survive}}}}}}}em; width: {{#ifeq:{{{survive}}}|?|5|{{{survive}}}}}em; padding: 0.1em 0.6em; background: #adc4ff; text-align: right;">{{{survive}}}</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;}}
</dd>
| 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;}}
</div>
| 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;}}
<div style="display: table-row;">
| 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;}}
<dt style="display: table-cell; font-family: inherit; font-weight: inherit;">Melee Damage</dt>
| width="30px" style="{{#ifexpr:{{{survive|}}}=10|background:#adc4ff;}}{{#ifexpr:{{{survive|}}} != 9| border-left: none;}}" | {{#ifexpr:{{{survive|}}} = 10|'''10 &nbsp;'''|&nbsp;}}
<dd style="display: table-cell;">
|-
<div style="box-sizing: border-box; margin-right: {{#expr:10 - {{#ifeq:{{{melee}}}|?|5|{{{melee}}}}}}}em; width: {{#ifeq:{{{melee}}}|?|5|{{{melee}}}}}em; padding: 0.1em 0.6em; background: #adc4ff; text-align: right;">{{{melee}}}</div>
! Melee Damage
</dd>
| colspan={{{melee|}}} style="background:#adc4ff;" align="right" | '''{{{melee|}}} &nbsp;'''
</div>
{{#ifexpr: {{{melee|}}} < 10 | {{!}} colspan={{#expr: 10 - {{{melee|}}} }} {{!}} &nbsp; }}
<div style="display: table-row;">
|-
<dt style="display: table-cell; font-family: inherit; font-weight: inherit;">Ranged Damage</dt>
! Ranged Damage
<dd style="display: table-cell;">
| colspan={{{ranged|}}} style="background:#adc4ff;" align="right" | '''{{{ranged|}}} &nbsp;'''
<div style="box-sizing: border-box; margin-right: {{#expr:10 - {{#ifeq:{{{ranged}}}|?|5|{{{ranged}}}}}}}em; width: {{#ifeq:{{{ranged}}}|?|5|{{{ranged}}}}}em; padding: 0.1em 0.6em; background: #adc4ff; text-align: right;">{{{ranged}}}</div>
{{#ifexpr: {{{ranged|}}} < 10 | {{!}} colspan={{#expr: 10 - {{{ranged|}}} }} {{!}} &nbsp; }}
</dd>
|-
</div>
! Crowd Control
<div style="display: table-row;">
| colspan={{{control|}}} style="background:#adc4ff;" align="right" | '''{{{control|}}} &nbsp;'''
<dt style="display: table-cell; font-family: inherit; font-weight: inherit;">Crowd Control</dt>
{{#ifexpr: {{{control|}}} < 10 | {{!}} colspan={{#expr: 10 - {{{control|}}} }} {{!}} &nbsp; }}
<dd style="display: table-cell;">
|-
<div style="box-sizing: border-box; margin-right: {{#expr:10 - {{#ifeq:{{{control}}}|?|5|{{{control}}}}}}}em; width: {{#ifeq:{{{control}}}|?|5|{{{control}}}}}em; padding: 0.1em 0.6em; background: #adc4ff; text-align: right;">{{{control}}}</div>
! Support
</dd>
| colspan={{{support|}}} style="background:#adc4ff;" align="right" | '''{{{support|}}} &nbsp;'''
</div>
{{#ifexpr: {{{support|}}} < 10 | {{!}} colspan={{#expr: 10 - {{{support|}}} }} {{!}} &nbsp; }}
<div style="display: table-row;">
|-
<dt style="display: table-cell; font-family: inherit; font-weight: inherit;">Support</dt>
! Pets
<dd style="display: table-cell;">
| colspan={{{pets|}}} style="background:#adc4ff;" align="right" | '''{{{pets|}}} &nbsp;'''
<div style="box-sizing: border-box; margin-right: {{#expr:10 - {{#ifeq:{{{support}}}|?|5|{{{support}}}}}}}em; width: {{#ifeq:{{{support}}}|?|5|{{{support}}}}}em; padding: 0.1em 0.6em; background: #adc4ff; text-align: right;">{{{support}}}</div>
{{#ifexpr: {{{pets|}}} < 10 | {{!}} colspan={{#expr: 10 - {{{pets|}}} }} {{!}} &nbsp; }}
</dd>
|}</includeonly><noinclude>
</div>
<div style="display: table-row;">
<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 - {{#ifeq:{{{pets}}}|?|5|{{{pets}}}}}}}em; width: {{#ifeq:{{{pets}}}|?|5|{{{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.


There are six parameters, all required, each a single number from 1 to 10.
There are six parameters, all required, each a single number from 1 to 10. A value of "?" is displayed like a 5.
*'''survive'''
*'''survive'''
*'''melee'''
*'''melee'''
Line 45: Line 53:
*'''support'''
*'''support'''
*'''pets'''
*'''pets'''
An additional parameter, which is optional, displays a note.
*'''note'''


  <nowiki>{{ATStats|survive=|melee=|ranged=|control=|support=|pets=}}</nowiki>
  <nowiki>{{ATStats|survive=|melee=|ranged=|control=|support=|pets=}}</nowiki>


== Example ==
== Examples ==
  <nowiki>{{ATStats|survive=2|melee=4|ranged=6|control=8|support=10|pets=2}}</nowiki>
  <nowiki>{{ATStats|survive=2|melee=4|ranged=6|control=8|support=10|pets=2}}</nowiki>


{{ATStats|survive=2|melee=4|ranged=6|control=8|support=10|pets=2}}
{{ATStats|survive=2|melee=4|ranged=6|control=8|support=10|pets=2}}
<nowiki>{{ATStats|note=Peacebringer stats vary with shapeshifting and team composition.|survive=?|melee=?|ranged=?|control=?|support=?|pets=?}}</nowiki>
{{ATStats|note=Peacebringer stats vary with shapeshifting and team composition.|survive=?|melee=?|ranged=?|control=?|support=?|pets=?}}
[[Category:Standardized Text Templates]]</noinclude>
[[Category:Standardized Text Templates]]</noinclude>

Latest revision as of 21:27, 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. A value of "?" is displayed like a 5.

  • survive
  • melee
  • ranged
  • control
  • support
  • pets

An additional parameter, which is optional, displays a note.

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

Examples

{{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
{{ATStats|note=Peacebringer stats vary with shapeshifting and team composition.|survive=?|melee=?|ranged=?|control=?|support=?|pets=?}}
ATStats Stats

Peacebringer stats vary with shapeshifting and team composition.

Survivability
?
Melee Damage
?
Ranged Damage
?
Crowd Control
?
Support
?
Pets
?