Шаблон:Ексклюзивні версії
Цей шаблон відображає версії, у яких доступний об'єкт. Див. Шаблон:Exclusive для пояснення. Щоб відобразити іконки версій або посилання з іконками, перегляньте {{exclusive icons}} і {{exclusive icon link}} відповідно.
Використання
{{ ексклюзивні версії | <назва об'єкта> | invert = y/yes/1/true | not = <назва об'єкта> | short = y/yes/1/true | raw = y/yes/1/true | delimit = <роздільник> | upper3ds/upper3DS = y/yes/1/true | nl/nolink = y/yes/1/true | nlicons = y/yes/1/true | noicons = y/yes/1/true | <версії> = y/yes/1/true/n/no/0/false | version = <версії>}}
Цей шаблон має декілька назв: ексклюзивні версії
, еверсії
, exclusive versions
, eversions
, кожну з яких, можна використовувати.
- First unnamed parameter
Name of the entity (wiki page name) to display the exclusive versions for. Appending a section to the page name is supported, the exclusivity information for the page name will still be gathered (see examples below).
- invert
Inverts the exclusivity, i.e. displays the opposite versions. For instance, the opposite of the Moon Lord's exclusivity, which is currently desktop/console/mobile
, would be old-gen/3ds
. This is useful to refer to versions that do not feature a certain entity, the Moon Lord in this case.
Important note: this disables the Версія для японських консолей sensor, i.e. a Japanese Console version will never be displayed if $invert
is used. This is because exclusivity to this version is separate – all entities that are exclusive to the Japanese Console version are truly exclusive to that version only.
- not
Name of a page whose exclusivity information is to be subtracted from the main exclusivity information from the first unnamed parameter. This is useful to refer to versions where the first entity is available, but the second is not. For instance, it could be used when mentioning a feature that was removed from the Slimy Saddle (which was introduced in 1.2.4) in 1.3.0.1. The Slimy Saddle's general exclusivity information is desktop/console/old-gen/mobile
, but only old-gen
remains when subtracting 1.3.0.1's exclusivity information (which is desktop/console/mobile
) from it.
Note that this is evaluated after $invert
, i.e. the exclusivity information of the main page is inverted first, and then the exclusivity information of the page from this parameter is subtracted from that.
- short
Shortens the version names, e.g. just " ПК" instead of " ПК версія".
- raw, delimit, upper3ds
All formatting is prevented if $raw
is used; the output will consist of merely the "raw" version names instead. If multiple versions are included in the output, they are separated by slashes (/
), but this delimiter can be changed via $delimit
. If the Версія для Nintendo is included in the output, the ds
part will be lower-cased, unless $upper3ds
or $upper3DS
is used.
$delimit
and $upper3ds
have no effect if $raw
is not used. There is an alias for $raw
, $code
, but it is deprecated and should not be used. Similarly, $replace
is an alias for $delimit
, but it is deprecated as well.
- nl
Removes links and icons from the output.
- nlicons
Re-adds the icons if used with $nl
. Has no effect otherwise.
- noicons
Removes icons from the output.
- Version parameters
Override versions from the first unnamed parameter (after $invert
and $not
are evaluated), or set versions manually if no first unnamed parameter is provided. Values for all of the following parameters can be y
, yes
, 1
, true
, n
, no
, 0
, or false
. $version
(see below) can be used alternatively.
dsk desktop pc
| |
cns console | |
old oldgen old-gen old-gen console
| |
mbl mobile
| |
3DS 3ds
| |
jas japan japanese j-console japanese-console
|
- version
Alternative method to manually override certain versions. The expected format is <platform>-<platform>-<platform>
, e.g. desktop-console
. Can also be set to all
to set all versions. The manual parameters above take precedence over this parameter.
Examples
Code | Result |
---|---|
{{eversions|Traveling Merchant}}
|
ПК версія, Консольна версія, Версія для консолей старого покоління, та Мобільна версія |
{{eversions|Traveling Merchant|invert=y}}
|
Версія для Nintendo |
{{eversions|Traveling Merchant|not=Moon Lord}}
|
Версія для консолей старого покоління |
{{eversions|Traveling Merchant|short=y}}
|
ПК, Консолі, Консолі старого покоління, та Мобільні пристрої |
{{eversions|Traveling Merchant|raw=y}}
|
desktop/console/old-gen/mobile |
{{eversions|Traveling Merchant|raw=y|delimit=__&__}}
|
desktop__&__console__&__old-gen__&__mobile |
{{eversions|Ocram}}
|
Версія для консолей старого покоління та Версія для Nintendo |
{{eversions|Ocram|nl=y}}
|
Версія для консолей старого покоління та Версія для Nintendo 3DS |
{{eversions|Ocram|nl=y|nlicons=y}}
|
Версія для консолей старого покоління та Версія для Nintendo |
{{eversions|Ocram|noicons=y}}
|
Версія для консолей старого покоління та Версія для Nintendo 3DS |
{{eversions|Monokuma set#History}}
|
Версія для японських консолей |
- Шаблони, які використовують Lua
- Локалізовані шаблони
- Exclusive templates