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 19: Line 19:
{{!-}}}}
{{!-}}}}
{{#if:{{{critical|}}} |{{!}} colspan="2" style="background-color: #f1e9cb" {{!}} '''Critical''' {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{critical}}}
{{#if:{{{critical|}}} |{{!}} colspan="2" style="background-color: #f1e9cb" {{!}} '''Critical''' {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{critical}}}
{{!-}}}}
{{#if:{{{critical-charged|}}} |{{!}} colspan="2" style="background-color: #f1e9cb" {{!}} '''Critical (charged)''' {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{critical-charged}}}
{{!-}}}}
{{!-}}}}
{{#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:{{{mini-crit-charged|}}} |{{!}} colspan="2" style="background-color: #f1e9cb" {{!}} '''Mini-crit (charged)''' {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{mini-crit-charged}}}
{{!-}}}}
{{!-}}}}
{{#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-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}}}

Revision as of 20:27, 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.