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 37: Line 37:
{{!-}}}}
{{!-}}}}
{{#ifeq:{{{status-effects-column|}}} | true |{{!}} colspan="3" style="text-align: center;font-size: 20px;background-color: #583a31;color: white;" {{!}} '''Status Effects'''
{{#ifeq:{{{status-effects-column|}}} | true |{{!}} colspan="3" style="text-align: center;font-size: 20px;background-color: #583a31;color: white;" {{!}} '''Status Effects'''
{{!-}}}}
{{#if:{{{effect|}}} |{{!}} colspan="2" style="background-color: #f1e9cb" {{!}} '''Effect''' {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{effect}}}
{{!-}}}}
{{#if:{{{effect-duration|}}} |{{!}} colspan="2" style="background-color: #f1e9cb" {{!}} '''Effect duration''' {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{effect-duration}}}
{{!-}}}}
{{!-}}}}
{{#if:{{{afterburn|}}} |{{!}} colspan="2" style="background-color: #f1e9cb" {{!}} '''Afterburn''' {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{afterburn}}}
{{#if:{{{afterburn|}}} |{{!}} colspan="2" style="background-color: #f1e9cb" {{!}} '''Afterburn''' {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{afterburn}}}
Line 69: Line 73:
{{!-}}}}
{{!-}}}}
{{#if:{{{healing-others|}}} |{{!}} colspan="2" style="background-color: #f1e9cb" {{!}} '''Healing (others)''' {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{healing-others}}}
{{#if:{{{healing-others|}}} |{{!}} colspan="2" style="background-color: #f1e9cb" {{!}} '''Healing (others)''' {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{healing-others}}}
{{!-}}}}
{{#if:{{{beam-connect-distance|}}} |{{!}} colspan="2" style="background-color: #f1e9cb" {{!}} '''Beam connect distance''' {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{beam-connect-distance}}}
{{!-}}}}
{{#if:{{{beam-disconnect-distance|}}} |{{!}} colspan="2" style="background-color: #f1e9cb" {{!}} '''Beam disconnect distance''' {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{beam-disconnect-distance}}}
{{!-}}}}
{{#ifeq:{{{construction-column|}}} | true |{{!}} colspan="3" style="text-align: center;font-size: 20px;background-color: #583a31;color: white;" {{!}} '''Construction'''
{{!-}}}}
{{#if:{{{repair-per-hit|}}} |{{!}} colspan="2" style="background-color: #f1e9cb" {{!}} '''Repair per hit''' {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{repair-per-hit}}}
{{!-}}}}
{{#if:{{{upgrade-per-hit|}}} |{{!}} colspan="2" style="background-color: #f1e9cb" {{!}} '''Upgrade per hit''' {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{upgrade-per-hit}}}
{{!-}}}}
{{#if:{{{cost-per-repair|}}} |{{!}} colspan="2" style="background-color: #f1e9cb" {{!}} '''Cost per repair''' {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{cost-per-repair}}}
{{!-}}}}
{{#if:{{{cost-per-ammo|}}} |{{!}} colspan="2" style="background-color: #f1e9cb" {{!}} '''Cost per ammo''' {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{cost-per-ammo}}}
{{!-}}}}
{{!-}}}}
{{#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'''
Line 83: Line 101:
{{!-}}}}
{{!-}}}}
{{#if:{{{reload|}}} |{{!}} colspan="2" style="background-color: #f1e9cb" {{!}} '''Reload''' {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{reload}}}
{{#if:{{{reload|}}} |{{!}} colspan="2" style="background-color: #f1e9cb" {{!}} '''Reload''' {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{reload}}}
{{!-}}}}
{{#if:{{{first-reload|}}} |{{!}} colspan="2" style="background-color: #f1e9cb" {{!}} '''First reload''' {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{first-reload}}}
{{!-}}}}
{{#if:{{{further-reloads|}}} |{{!}} colspan="2" style="background-color: #f1e9cb" {{!}} '''Further reloads''' {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{further-reloads}}}
{{!-}}}}
{{!-}}}}
{{#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}}}
{{!-}}}}
{{#if:{{{consumption-time|}}} |{{!}} colspan="2" style="background-color: #f1e9cb" {{!}} '''Consumption time''' {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{consumption-time}}}
{{!-}}}}
{{#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:{{{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-time|}}} |{{!}} colspan="2" style="background-color: #f1e9cb" {{!}} '''Charge fill time''' {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{charge-fill-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:{{{airblast-interval|}}} |{{!}} colspan="2" style="background-color: #f1e9cb" {{!}} '''Airblast interval''' {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{airblast-interval}}}
{{!-}}}}
{{#if:{{{scoped-charge-delay|}}} |{{!}} colspan="2" style="background-color: #f1e9cb" {{!}} '''Scoped charge delay''' {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{scoped-charge-delay}}}
{{!-}}}}
{{#if:{{{scoped-headshot-delay|}}} |{{!}} colspan="2" style="background-color: #f1e9cb" {{!}} '''Scoped headshot delay''' {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{scoped-headshot-delay}}}
{{!-}}}}
{{#if:{{{aim-fatigue|}}} |{{!}} colspan="2" style="background-color: #f1e9cb" {{!}} '''Aim fatigue''' {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{aim-fatigue}}}
{{!-}}}}
{{#if:{{{taunt|}}} |{{!}} colspan="2" style="background-color: #f1e9cb" {{!}} '''Taunt''' {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{taunt}}}
{{!-}}}}
{{#if:{{{taunt-duration|}}} |{{!}} colspan="2" style="background-color: #f1e9cb" {{!}} '''Taunt duration''' {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{taunt-duration}}}
{{!-}}}}
{{!-}}}}
| colspan="3" style="text-align: center;font-size: 12px;background-color: #583a31;color: white;" | All values are approximate.
| colspan="3" style="text-align: center;font-size: 12px;background-color: #583a31;color: white;" | All values are approximate.

Revision as of 00:29, 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.