Badge time.png   The Paragon Wiki Archive documents the state of City of Heroes/Villains as it existed on December 1, 2012.

Difference between revisions of "Template:ATStats"

From Paragon Wiki Archive
Jump to: navigation, search
(making empty column auto-calculate)
(removing numbers row)
 
(10 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>! {{{1}}} !! colspan={{{2}}} style="background:#adc4ff;" | {{{2}}}
+
<includeonly>{| class="wikitable"
{{#ifexpr: {{{2}}} < 10 | {{!}} colspan={{#expr: 10 - {{{2}}} }} {{!}} &nbsp; }}
+
|-
|-</includeonly><noinclude>
+
! colspan="11" width="420px"| {{PAGENAME}} Stats
 +
|- align="right"
 +
! width="120px" align="center" | Survivability
 +
| width="30px" style="background:#adc4ff;{{#ifexpr:{{{survive|}}} != 1|border-right: none;}}" | {{#ifexpr:{{{survive|}}} = 1|'''1 &nbsp;'''|&nbsp;}}
 +
| 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;}}
 +
| 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;}}
 +
| 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;}}
 +
| 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;}}
 +
| 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;}}
 +
| 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;}}
 +
| 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;}}
 +
| 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;}}
 +
| width="30px" style="{{#ifexpr:{{{survive|}}}=10|background:#adc4ff;}}{{#ifexpr:{{{survive|}}} != 9| border-left: none;}}" | {{#ifexpr:{{{survive|}}} = 10|'''10 &nbsp;'''|&nbsp;}}
 +
|-
 +
! Melee Damage
 +
| colspan={{{melee|}}} style="background:#adc4ff;" align="right" | '''{{{melee|}}} &nbsp;'''
 +
{{#ifexpr: {{{melee|}}} < 10 | {{!}} colspan={{#expr: 10 - {{{melee|}}} }} {{!}} &nbsp; }}
 +
|-
 +
! Ranged Damage
 +
| colspan={{{ranged|}}} style="background:#adc4ff;" align="right" | '''{{{ranged|}}} &nbsp;'''
 +
{{#ifexpr: {{{ranged|}}} < 10 | {{!}} colspan={{#expr: 10 - {{{ranged|}}} }} {{!}} &nbsp; }}
 +
|-
 +
! Crowd Control
 +
| colspan={{{control|}}} style="background:#adc4ff;" align="right" | '''{{{control|}}} &nbsp;'''
 +
{{#ifexpr: {{{control|}}} < 10 | {{!}} colspan={{#expr: 10 - {{{control|}}} }} {{!}} &nbsp; }}
 +
|-
 +
! Support
 +
| colspan={{{support|}}} style="background:#adc4ff;" align="right" | '''{{{support|}}} &nbsp;'''
 +
{{#ifexpr: {{{support|}}} < 10 | {{!}} colspan={{#expr: 10 - {{{support|}}} }} {{!}} &nbsp; }}
 +
|-
 +
! Pets
 +
| colspan={{{pets|}}} style="background:#adc4ff;" align="right" | '''{{{pets|}}} &nbsp;'''
 +
{{#ifexpr: {{{pets|}}} < 10 | {{!}} colspan={{#expr: 10 - {{{pets|}}} }} {{!}} &nbsp; }}
 +
|}</includeonly><noinclude>
 +
== Usage ==
 +
To display the various stats from the in-game character creation screen.
  
{{Stats Start}}
+
There are six parameters, all required, each a single number from 1 to 10.
{{Stats|Survivability|7|3}}
+
*'''survive'''
{{Stats|Damage|10}}
+
*'''melee'''
{{Table End}}
+
*'''ranged'''
 +
*'''control'''
 +
*'''support'''
 +
*'''pets'''
 +
 
 +
<nowiki>{{ATStats|survive=|melee=|ranged=|control=|support=|pets=}}</nowiki>
 +
 
 +
== Example ==
 +
<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}}
 
[[Category:Standardized Text Templates]]</noinclude>
 
[[Category:Standardized Text Templates]]</noinclude>

Latest revision as of 07:30, 15 December 2011

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