Difference between revisions of "Template:ATStats"

From Ouroboros Portal
Jump to: navigation, search
m
(fixing categories)
 
(50 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
<noinclude>
 +
==Code==
 
<pre>
 
<pre>
{{Stats
+
{{ATStats
| s =
+
| heading = Example
| m =
+
| survive = 2
| r =
+
| melee = 5
| c =
+
| ranged = 8
| b = 'b' used in place of another 's' to mean 'buffs'
+
| control = 4
| p =
+
| support = 7
 +
| pets = 10
 
}}
 
}}
 
</pre>
 
</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|}}} }} {{!}} &nbsp; }}  
+
| 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|}}} }} {{!}} &nbsp; }}
+
| 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|}}} }} {{!}} &nbsp; }}
+
| 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|}}} }} {{!}} &nbsp; }}
+
| 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|}}} }} {{!}} &nbsp; }}
+
| 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|}}} }} {{!}} &nbsp; }}
+
| 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