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 105: Line 105:
{{!-}}}}
{{!-}}}}
{{#if:{{{further-reloads|}}} |{{!}} colspan="2" style="background-color: #f1e9cb" {{!}} '''Further reloads''' {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{further-reloads}}}
{{#if:{{{further-reloads|}}} |{{!}} colspan="2" style="background-color: #f1e9cb" {{!}} '''Further reloads''' {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{further-reloads}}}
{{!-}}}}
{{#if:{{{activation-time|}}} |{{!}} colspan="2" style="background-color: #f1e9cb" {{!}} '''Activation time''' {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{Activation time}}}
{{!-}}}}
{{!-}}}}
{{#if:{{{spread-recovery|}}} |{{!}} colspan="2" style="background-color: #f1e9cb" {{!}} '''Spread recovery''' {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{spread-recovery}}}
{{#if:{{{spread-recovery|}}} |{{!}} colspan="2" style="background-color: #f1e9cb" {{!}} '''Spread recovery''' {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{spread-recovery}}}
Line 112: Line 114:
{{#if:{{{cloak-fade|}}} |{{!}} colspan="2" style="background-color: #f1e9cb" {{!}} '''Cloak fade''' {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{cloak-fade}}}
{{#if:{{{cloak-fade|}}} |{{!}} colspan="2" style="background-color: #f1e9cb" {{!}} '''Cloak fade''' {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{cloak-fade}}}
{{!-}}}}
{{!-}}}}
{{#if:{{{uncloak-fade|}}} |{{!}} colspan="2" style="background-color: #f1e9cb" {{!}} '''Uncloak fade''' {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{Uncloak-fade}}}
{{#if:{{{uncloak-fade|}}} |{{!}} colspan="2" style="background-color: #f1e9cb" {{!}} '''Uncloak fade''' {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{uncloak-fade}}}
{{!-}}}}
{{!-}}}}
{{#if:{{{charge-fill-speed|}}} |{{!}} colspan="2" style="background-color: #f1e9cb" {{!}} '''Charge fill speed''' {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{charge-fill-speed}}}
{{#if:{{{charge-fill-speed|}}} |{{!}} colspan="2" style="background-color: #f1e9cb" {{!}} '''Charge fill speed''' {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{charge-fill-speed}}}
Line 120: Line 122:
{{#if:{{{recharge-time|}}} |{{!}} colspan="2" style="background-color: #f1e9cb" {{!}} '''Recharge time''' {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{recharge-time}}}
{{#if:{{{recharge-time|}}} |{{!}} colspan="2" style="background-color: #f1e9cb" {{!}} '''Recharge time''' {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{recharge-time}}}
{{!-}}}}
{{!-}}}}
{{#if:{{{drop-expirey|}}} |{{!}} colspan="2" style="background-color: #f1e9cb" {{!}} '''Drop expirey''' {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{drop-expirey}}}
{{#if:{{{drop-expiry|}}} |{{!}} colspan="2" style="background-color: #f1e9cb" {{!}} '''Drop expiry''' {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{drop-expiry}}}
{{!-}}}}
{{!-}}}}
{{#if:{{{airblast-interval|}}} |{{!}} colspan="2" style="background-color: #f1e9cb" {{!}} '''Airblast interval''' {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{airblast-interval}}}
{{#if:{{{airblast-interval|}}} |{{!}} colspan="2" style="background-color: #f1e9cb" {{!}} '''Airblast interval''' {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{airblast-interval}}}

Revision as of 01:14, 19 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.