User:Ratboy Slim/Template:Sandbox: Difference between revisions
Ratboy Slim (talk | contribs) No edit summary |
Ratboy Slim (talk | contribs) No edit summary |
||
Line 10: | Line 10: | ||
{{#ifeq:{{{damage-column|}}} | true |{{!}} colspan="3" style="text-align: center;font-size: 20px;background-color: #583a31;color: white;" {{!}} '''Damage''' | {{#ifeq:{{{damage-column|}}} | true |{{!}} colspan="3" style="text-align: center;font-size: 20px;background-color: #583a31;color: white;" {{!}} '''Damage''' | ||
{{!-}}}} | {{!-}}}} | ||
{{#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|}}} |{{!}} colspan="3" 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|}}} |{{!}} colspan="3" style="background-color: #f1e9cb" {{!}} '''Base damage''' {{!!}} style="text-align: center;" {{!}} 100% {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{base-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|}}} |{{!}} colspan="3" 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:{{{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}}} | ||
Line 20: | Line 20: | ||
{{#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}}} | ||
{{!-}}}} | {{!-}}}} | ||
| colspan="3" style="text-align: center;font-size: 20px;background-color: #583a31;color: white;" | {{#ifeq:{{{ammo-column|}}} | true |{{!}} colspan="3" style="text-align: center;font-size: 20px;background-color: #583a31;color: white;" {{!}} '''Ammo''' | ||
{{!-}}}} | |||
| colspan="2" style="background-color: #f1e9cb" | {{#if:{{{loaded|}}} |{{!}} colspan="2" style="background-color: #f1e9cb" {{!}} '''Loaded''' {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{loaded}}} | ||
{{!-}}}} | |||
| colspan="2" style="background-color: #f1e9cb" | {{#if:{{{carried|}}} |{{!}} colspan="2" style="background-color: #f1e9cb" {{!}} '''Carried''' {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{carried}}} | ||
{{!-}}}} | |||
| colspan="2" style="background-color: #f1e9cb" | {{#if:{{{reload-type|}}} |{{!}} colspan="2" style="background-color: #f1e9cb" {{!}} '''Reload type''' {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{reload-type}}} | ||
{{!-}}}} | |||
| colspan="3" style="text-align: center;font-size: 20px;background-color: #583a31;color: white;" | {{#ifeq:{{{function-times-column|}}} | true |{{!}} colspan="3" style="text-align: center;font-size: 20px;background-color: #583a31;color: white;" {{!}} '''Function Times''' | ||
{{!-}}}} | |||
| colspan="2" style="background-color: #f1e9cb" | {{#if:{{{attack-interval|}}} |{{!}} colspan="2" style="background-color: #f1e9cb" {{!}} '''Attack interval''' {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{attack-interval}}} | ||
{{!-}}}} | |||
| colspan="2" style="background-color: #f1e9cb" | {{#if:{{{reload|}}} |{{!}} colspan="2" style="background-color: #f1e9cb" {{!}} '''Reload''' {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{reload}}} | ||
{{!-}}}} | |||
| colspan="2" style="background-color: #f1e9cb" | {{#if:{{{spread-recovery|}}} |{{!}} colspan="2" style="background-color: #f1e9cb" {{!}} '''Spread recovery''' {{!!}} style="background-color: #dee8ed; text-align: right" {{!}} {{{spread-recovery}}} | ||
{{!-}}}} | |||
| 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. | ||
|- | |- | ||
|}<noinclude> | |}<noinclude> | ||
{{doc begin}} | {{doc begin}} | ||
=== Do not use this template on any articles. === | |||
This is a sandbox used to test templates on draft pages. | |||
</noinclude> | |||
This is a sandbox used to test templates on draft pages.<br><br> | |||
By default, the only rows that will show up are the "Properties" header row and the "All values are approximate" footer row.<br><br> | |||
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.<br><br> | |||
Values for header rows (such as Damage, Ammo, Function Times) must be <code>true</code> if you want them to be displayed. Any other value is silently ignored, and the header row will not appear..<br><br> | |||
{{tl|!}}, {{tl|!!}}, and {{tl|!-}} are escape templates that represent <code>|</code>, <code>||</code>, and <code>|-</code>, respectively. Their purpose is to escape those characters in templates that have tables, because MediaWiki syntax does not support a literal <code>|</code> symbol in templates that have tables.</noinclude> |
Revision as of 05:16, 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.