Template:ATStats: Difference between revisions
Jump to navigation
Jump to search
(more modern appearance, borderless and less distance between label and number for readability) |
(handle survive=? etc) |
||
Line 6: | Line 6: | ||
<dt style="display: table-cell; font-family: inherit; font-weight: inherit;">Survivability</dt> | <dt style="display: table-cell; font-family: inherit; font-weight: inherit;">Survivability</dt> | ||
<dd style="display: table-cell;"> | <dd style="display: table-cell;"> | ||
<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> | <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> | ||
</dd> | </dd> | ||
</div> | </div> | ||
Line 12: | Line 12: | ||
<dt style="display: table-cell; font-family: inherit; font-weight: inherit;">Melee Damage</dt> | <dt style="display: table-cell; font-family: inherit; font-weight: inherit;">Melee Damage</dt> | ||
<dd style="display: table-cell;"> | <dd style="display: table-cell;"> | ||
<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> | <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> | ||
</dd> | </dd> | ||
</div> | </div> | ||
Line 18: | Line 18: | ||
<dt style="display: table-cell; font-family: inherit; font-weight: inherit;">Ranged Damage</dt> | <dt style="display: table-cell; font-family: inherit; font-weight: inherit;">Ranged Damage</dt> | ||
<dd style="display: table-cell;"> | <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> | <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> | ||
</dd> | </dd> | ||
</div> | </div> | ||
Line 24: | Line 24: | ||
<dt style="display: table-cell; font-family: inherit; font-weight: inherit;">Crowd Control</dt> | <dt style="display: table-cell; font-family: inherit; font-weight: inherit;">Crowd Control</dt> | ||
<dd style="display: table-cell;"> | <dd style="display: table-cell;"> | ||
<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> | <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> | ||
</dd> | </dd> | ||
</div> | </div> | ||
Line 30: | Line 30: | ||
<dt style="display: table-cell; font-family: inherit; font-weight: inherit;">Support</dt> | <dt style="display: table-cell; font-family: inherit; font-weight: inherit;">Support</dt> | ||
<dd style="display: table-cell;"> | <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> | <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> | ||
</dd> | </dd> | ||
</div> | </div> | ||
Line 36: | Line 36: | ||
<dt style="display: table-cell; font-family: inherit; font-weight: inherit;">Pets</dt> | <dt style="display: table-cell; font-family: inherit; font-weight: inherit;">Pets</dt> | ||
<dd style="display: table-cell;"> | <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> | <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> | </dd> | ||
</div> | </div> | ||
</dl> | </dl> | ||
{{#ifeq:{{{survive}}}|?| | |||
<p style="max-width: 20em;">{{PAGENAME}} stats vary with shapeshifting and team composition.</p> | |||
}} | |||
</div> | </div> | ||
</includeonly><noinclude> | </includeonly><noinclude> |
Revision as of 21:07, 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