mAucun résumé des modifications |
m (test) |
||
Ligne 1 : | Ligne 1 : | ||
− | + | <!-- |
|
//localization info in [[template:potionlength/l10n]].(autoload) |
//localization info in [[template:potionlength/l10n]].(autoload) |
||
Ligne 47 : | Ligne 47 : | ||
-->{{#vardefine:potl_n|{{#len:{{#var:potl_dsk}}{{#var:potl_cns|{{#var:potl_old}}}}{{#var:potl_mbl}}{{#var:potl_3ds}}}}}}<!-- console and old-gen count as one because they have the same text |
-->{{#vardefine:potl_n|{{#len:{{#var:potl_dsk}}{{#var:potl_cns|{{#var:potl_old}}}}{{#var:potl_mbl}}{{#var:potl_3ds}}}}}}<!-- console and old-gen count as one because they have the same text |
||
-->{{#vardefine:potl_ntot|{{#var:potl_n}}}}<!-- |
-->{{#vardefine:potl_ntot|{{#var:potl_n}}}}<!-- |
||
+ | |||
// output |
// output |
||
− | -->{{l10n |
+ | -->{{l10n|potionlength|maintext|$duration$={{{1|{{red|{{l10n|potionlength|error|$template_link$={{tl|potionlength}}}}}}}}}}}<!-- |
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
− | + | -->{{#if:{{#var:potl_dsk}}|<!-- |
|
− | + | -->{{l10n|potionlength|dsk}}<!-- |
|
− | + | -->{{#ifexpr:{{#var:potl_ntot}}>1|{{nbsp}}({{icon/desktop}})}}<!-- only display icon if this is not the only version |
|
⚫ | |||
− | -->{{l10n|potionlength|paren|$icons$=<!-- |
||
⚫ | |||
⚫ | |||
− | + | --> {{#ifexpr:{{#var:potl_n}}=2|{{l10n|potionlength|or}}}}<!-- only one version left |
|
− | -->{{#if:{{#var:potl_old}}|{{icon/old-gen}}}}<!-- |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
-->}}<!-- |
-->}}<!-- |
||
⚫ | |||
⚫ | |||
− | + | -->{{#if:{{#var:potl_cns|{{#var:potl_old}}}}|<!-- |
|
− | + | -->{{l10n|potionlength|cns}}<!-- |
|
− | + | -->{{#ifexpr:{{#var:potl_ntot}}>1|<!-- only display icon(s) if this is not the only version |
|
− | -->{{# |
+ | -->{{nbsp}}({{#if:{{#var:potl_cns}}|{{icon/console}}}}<!-- |
⚫ | |||
⚫ | |||
− | + | -->{{#if:{{#var:potl_old}}|{{icon/old-gen}}}})<!-- |
|
− | -->}}<!-- |
||
⚫ | |||
-->}}<!-- |
-->}}<!-- |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
− | + | -->{{#if:{{#var:potl_mbl}}|<!-- |
|
− | + | -->{{l10n|potionlength|mbl}}<!-- |
|
− | + | -->{{#ifexpr:{{#var:potl_ntot}}>1|{{nbsp}}({{icon/mobile}})}}<!-- only display icon if this is not the only version |
|
+ | -->{{#ifexpr:{{#var:potl_n}}>1|<!-- only if this is not the last version |
||
⚫ | |||
⚫ | |||
-->}}<!-- |
-->}}<!-- |
||
⚫ | |||
-->}}<!-- |
-->}}<!-- |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
+ | |||
⚫ | |||
+ | |||
⚫ |
Version du 30 juillet 2020 à 00:07
Documentation La documentation ci-dessous est transcluse de Modèle:Buffduration/doc. (modifier | historique)
[purger]
Use as a shortcut when adding in the buff times in the main paragraph of a buff item.
Usage
{{ buffduration | <buff duration> | eversions = no/<page name> }}
- Unnamed parameter 1
- Duration of the buff.
- eversions
- By default, the template will hide information about how to cancel a buff on certain platforms based on the platforms the buff is available on (utilizing {{eversions}} with the name of the page the template is used on). Set this parameter to
to suppress this behavior and make it display information for all versions. Set it to any page's name to cause the template to take that entity as an {{eversions}} base.no
- Exclusivity can be manually overridden with the version parameters described on Template:Exclusive.