User:Ratboy Slim/Template:Sandbox: Difference between revisions

From TF2 Classic Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 12: Line 12:
{{#if:{{{maximum-ramp-up|}}} |{{!}} style="background-color: #f1e9cb" {{!}} '''Maximum ramp-up''' {{!!}} style="text-align: center;" {{!}} {{{maximum-ramp-up-percentage|150%}}} {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{maximum-ramp-up}}}
{{#if:{{{maximum-ramp-up|}}} |{{!}} style="background-color: #f1e9cb" {{!}} '''Maximum ramp-up''' {{!!}} style="text-align: center;" {{!}} {{{maximum-ramp-up-percentage|150%}}} {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{maximum-ramp-up}}}
{{!-}}}}
{{!-}}}}
{{#if:{{{base-damage|}}} |{{!}} style="background-color: #f1e9cb" {{!}} '''Base damage''' {{!!}} style="text-align: center;" {{!}} 100% {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{base-damage}}}
{{#if:{{{base-damage|}}} |{{!}} style="background-color: #f1e9cb" {{!}} '''Base damage''' {{!!}} style="text-align: center;" {{!}} {{{base-damage-percentage|100%}}} {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{base-damage}}}
{{!-}}}}
{{#if:{{{charged-damage|}}} |{{!}} style="background-color: #f1e9cb" {{!}} '''Charged damage''' {{!!}} style="text-align: center;" {{!}} {{{charged-damage-percentage|300%}}} {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{charged-damage}}}
{{!-}}}}
{{!-}}}}
{{#if:{{{maximum-fall-off|}}} |{{!}} style="background-color: #f1e9cb" {{!}} '''Maximum fall-off''' {{!!}} style="text-align: center;" {{!}} {{{maximum-fall-off-percentage|52.8%}}} {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{maximum-fall-off}}}
{{#if:{{{maximum-fall-off|}}} |{{!}} style="background-color: #f1e9cb" {{!}} '''Maximum fall-off''' {{!!}} style="text-align: center;" {{!}} {{{maximum-fall-off-percentage|52.8%}}} {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{maximum-fall-off}}}
Line 19: Line 21:
{{!-}}}}
{{!-}}}}
{{#if:{{{mini-crit|}}} |{{!}} colspan="2" style="background-color: #f1e9cb" {{!}} '''Mini-crit''' {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{mini-crit}}}
{{#if:{{{mini-crit|}}} |{{!}} colspan="2" style="background-color: #f1e9cb" {{!}} '''Mini-crit''' {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{mini-crit}}}
{{!-}}}}
{{#if:{{{flame-damage-close|}}} |{{!}} style="background-color: #f1e9cb" {{!}} '''Flame damage (close)''' {{!!}} style="text-align: center;" {{!}} {{{flame-damage-close-percentage|100%}}} {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{flame-damage-close}}}
{{!-}}}}
{{#if:{{{flame-damage-far|}}} |{{!}} style="background-color: #f1e9cb" {{!}} '''Flame damage (far)''' {{!!}} style="text-align: center;" {{!}} {{{flame-damage-far-percentage|50%}}} {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{flame-damage-far}}}
{{!-}}}}
{{#if:{{{afterburn|}}} |{{!}} colspan="2" style="background-color: #f1e9cb" {{!}} '''Afterburn''' {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{afterburn}}}
{{!-}}}}
{{#if:{{{afterburn-mini-crit|}}} |{{!}} colspan="2" style="background-color: #f1e9cb" {{!}} '''Afterburn (mini-crit)''' {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{afterburn-mini-crit}}}
{{!-}}}}
{{#if:{{{bleed|}}} |{{!}} colspan="2" style="background-color: #f1e9cb" {{!}} '''Bleed''' {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{bleed}}}
{{!-}}}}
{{#if:{{{bleed-mini-crit|}}} |{{!}} colspan="2" style="background-color: #f1e9cb" {{!}} '''Bleed (mini-crit)''' {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{bleed-mini-crit}}}
{{!-}}}}
{{#if:{{{bullet-count|}}} |{{!}} colspan="2" style="background-color: #f1e9cb" {{!}} '''Bullet count''' {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{bullet-count}}}
{{!-}}}}
{{#if:{{{spread|}}} |{{!}} colspan="2" style="background-color: #f1e9cb" {{!}} '''Spread''' {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{spread}}}
{{!-}}}}
{{#ifeq:{{{splash-column|}}} | true |{{!}} colspan="3" style="text-align: center;font-size: 20px;background-color: #583a31;color: white;" {{!}} '''Splash'''
{{!-}}}}
{{#if:{{{minimum-splash|}}} |{{!}} style="background-color: #f1e9cb" {{!}} '''Minimum splash''' {{!!}} style="text-align: center;" {{!}} {{{minimum-splash-percentage|50%}}} {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{minimum-splash}}}
{{!-}}}}
{{#if:{{{damage-reduction|}}} |{{!}} colspan="2" style="background-color: #f1e9cb" {{!}} '''Damage reduction''' {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{damage-reduction}}}
{{!-}}}}
{{#if:{{{self-damage|}}} |{{!}} colspan="2" style="background-color: #f1e9cb" {{!}} '''Self-damage''' {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{self-damage}}}
{{!-}}}}
{{#if:{{{self-damage-rocket-jump|}}} |{{!}} colspan="2" style="background-color: #f1e9cb" {{!}} '''Self-damage (rocket jump)''' {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{self-damage-rocket-jump}}}
{{!-}}}}
{{#ifeq:{{{healing-column|}}} | true |{{!}} colspan="3" style="text-align: center;font-size: 20px;background-color: #583a31;color: white;" {{!}} '''Healing'''
{{!-}}}}
{{#if:{{{healing-in-combat|}}} |{{!}} style="background-color: #f1e9cb" {{!}} '''Healing (in combat)''' {{!!}} style="text-align: center;" {{!}} {{{healing-in-combat-percentage|100%}}} {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{healing-in-combat}}}
{{!-}}}}
{{#if:{{{healing-out-of-combat|}}} |{{!}} style="background-color: #f1e9cb" {{!}} '''Healing (out of combat)''' {{!!}} style="text-align: center;" {{!}} {{{healing-out-of-combat-percentage|300%}}} {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{healing-out-of-combat}}}
{{!-}}}}
{{#if:{{{healing-self|}}} |{{!}} colspan="2" style="background-color: #f1e9cb" {{!}} '''Healing (self)''' {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{healing-self}}}
{{!-}}}}
{{#if:{{{healing-others|}}} |{{!}} colspan="2" style="background-color: #f1e9cb" {{!}} '''Healing (others)''' {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{healing-others}}}
{{!-}}}}
{{!-}}}}
{{#ifeq:{{{ammo-column|}}} | true |{{!}} colspan="3" style="text-align: center;font-size: 20px;background-color: #583a31;color: white;" {{!}} '''Ammo'''
{{#ifeq:{{{ammo-column|}}} | true |{{!}} colspan="3" style="text-align: center;font-size: 20px;background-color: #583a31;color: white;" {{!}} '''Ammo'''

Revision as of 20:24, 18 May 2023

Properties
All values are approximate.

Documentation for Ratboy Slim/Template:Sandbox

Do not use this template on any articles.

This is a sandbox used to test templates on draft pages.

By default, the only rows that will show up are the "Properties" header row and the "All values are approximate" footer row.

To make a row appear in the template, pass any string to its parameter. If no parameter is passed, the row will not show up. The passed parameter will show up in its right-most column.

Values for header rows (such as Damage, Ammo, Function Times) must be true if you want them to be displayed. Any other value is silently ignored, and the header row will not appear.

{{!}}, {{!!}}, and {{!-}} are escape templates that represent |, ||, and |-, respectively. Their purpose is to escape those characters in templates that have tables, because MediaWiki syntax does not support a literal | symbol in templates that have tables.