Difference between revisions of "Template:ATStats"

From Ouroboros Portal
Jump to: navigation, search
m (testing)
(fixing categories)
 
(37 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude><pre>
+
<noinclude>
{{Stats37
+
==Code==
| s =
+
<pre>
| m =
+
{{ATStats
| r =
+
| heading = Example
| c =
+
| survive = 2
| b = 'b' used in place of another 's' to mean 'buffs'
+
| melee = 5
| p =
+
| ranged = 8
 +
| control = 4
 +
| support = 7
 +
| pets = 10
 
}}
 
}}
</pre></noinclude>
+
</pre>
 +
 
 +
==Example==
 +
{{ATStats|heading = Example| survive = 2| melee = 5| ranged = 8| control = 4| support = 7| pets = 10}}
 +
[[Category:UserThirty7| ]][[Category:Character templates]]</noinclude>
 +
 
 
<includeonly>
 
<includeonly>
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
! colspan="11" width="450px"| {{PAGENAME}} Stats
+
! colspan="11" width="410px"| {{{heading|}}} Stats
 
|-
 
|-
! width="150px"| Stat
+
| width="110px" align="left" | &nbsp; '''Statistic'''
 
| align="center" width="30px"| 1 || align="center" width="30px"| 2 || align="center" width="30px"| 3 || align="center" width="30px"| 4 || align="center" width="30px"| 5 || align="center" width="30px"| 6 || align="center" width="30px"| 7 || align="center" width="30px"| 8 || align="center" width="30px"| 9 || align="center" width="30px"| 10
 
| align="center" width="30px"| 1 || align="center" width="30px"| 2 || align="center" width="30px"| 3 || align="center" width="30px"| 4 || align="center" width="30px"| 5 || align="center" width="30px"| 6 || align="center" width="30px"| 7 || align="center" width="30px"| 8 || align="center" width="30px"| 9 || align="center" width="30px"| 10
 
|-
 
|-
! Survivability
+
| align="left" | &nbsp; Survivability
| colspan="{{{s|}}}" style="background:gray" align="right" | '''{{{s|}}}&nbsp;''' || {{#ifexpr: {{{s|}}} < 10 | colspan={{#expr: 10 - {{{s|}}} }}}}|
+
| colspan={{{survive|}}} style="background:#adc4ff;" align="right" | '''{{{survive|}}}&nbsp;'''
 +
{{#ifexpr: {{{survive|}}} < 10 | {{!}} colspan={{#expr: 10 - {{{survive|}}} }} {{!}} &nbsp; }}
 
|-
 
|-
! Melee Damage
+
| align="left" | &nbsp; Melee Damage
| colspan="{{{m|}}}" style="background:gold" align="right" | '''{{{m|}}}&nbsp;''' || {{#ifexpr: {{{m|}}} < 10 | colspan={{#expr: 10 - {{{m|}}} }}}}|
+
| colspan={{{melee|}}} style="background:#adc4ff;" align="right" | '''{{{melee|}}}&nbsp;'''
 +
{{#ifexpr: {{{melee|}}} < 10 | {{!}} colspan={{#expr: 10 - {{{melee|}}} }} {{!}} &nbsp; }}
 
|-
 
|-
! Ranged Damage
+
| align="left" | &nbsp; Ranged Damage
| colspan="{{{r|}}}" style="background:firebrick" align="right" | '''{{{r|}}}&nbsp;''' || {{#ifexpr: {{{r|}}} < 10 | colspan={{#expr: 10 - {{{r|}}} }}}}|
+
| colspan={{{ranged|}}} style="background:#adc4ff;" align="right" | '''{{{ranged|}}}&nbsp;'''
 +
{{#ifexpr: {{{ranged|}}} < 10 | {{!}} colspan={{#expr: 10 - {{{ranged|}}} }} {{!}} &nbsp; }}
 
|-
 
|-
! Crowd Control
+
| align="left" | &nbsp; Crowd Control
| colspan="{{{c|}}}" style="background:purple" align="right" | '''{{{c|}}}&nbsp;''' || {{#ifexpr: {{{c|}}} < 10 | colspan={{#expr: 10 - {{{c|}}} }}}}|
+
| colspan={{{control|}}} style="background:#adc4ff;" align="right" | '''{{{control|}}}&nbsp;'''
 +
{{#ifexpr: {{{control|}}} < 10 | {{!}} colspan={{#expr: 10 - {{{control|}}} }} {{!}} &nbsp; }}
 
|-
 
|-
! Support
+
| align="left" | &nbsp; Support
| colspan="{{{b|}}}" style="background:royalblue" align="right" | '''{{{b|}}}&nbsp;''' || {{#ifexpr: {{{b|}}} < 10 | colspan={{#expr: 10 - {{{b|}}} }}}}|
+
| colspan={{{support|}}} style="background:#adc4ff;" align="right" | '''{{{support|}}}&nbsp;'''
 +
{{#ifexpr: {{{support|}}} < 10 | {{!}} colspan={{#expr: 10 - {{{support|}}} }} {{!}} &nbsp; }}
 
|-
 
|-
! Pets
+
| align="left" | &nbsp; Pets
| colspan="{{{p|}}}" style="background:green" align="right" | '''{{{p|}}}&nbsp;''' || {{#ifexpr: {{{p|}}} < 10 | colspan={{#expr: 10 - {{{p|}}} }}}}|
+
| colspan={{{pets|}}} style="background:#adc4ff;" align="right" | '''{{{pets|}}}&nbsp;'''
 +
{{#ifexpr: {{{pets|}}} < 10 | {{!}} colspan={{#expr: 10 - {{{pets|}}} }} {{!}} &nbsp; }}
 
|}</includeonly>
 
|}</includeonly>

Latest revision as of 11:33, 21 February 2012

Code

{{ATStats
| heading = Example
| survive = 2
| melee = 5
| ranged = 8
| control = 4
| support = 7
| pets = 10
}}

Example

Example Stats
  Statistic 1 2 3 4 5 6 7 8 9 10
  Survivability  
  Melee Damage  
  Ranged Damage  
  Crowd Control  
  Support  
  Pets 10