Predefinição:Exclusive versions

Fonte: Terraria Wiki
Saltar para a navegação Saltar para a pesquisa
Esta predefinição utiliza Lua.
Esta predefinição utiliza Módulo:Exclusive, um script escrito na linguagem de programação Lua. Para aprender mais sobre Lua, veja Terraria Wiki:Lua (en).
Essa predefinição é pronta para i18n, o que significa que ela é simples de localizar para línguas diferentes. Veja I18n & l10n para Predefinições para entender melhor.
Veja Predefinição:Exclusive versions/l10n para a localização dessa predefinição.
Template-info.svg Documentação A documentação que segue é transcluída de Predefinição:Exclusive versions/doc. (editar | histórico)

This template displays the versions on which an entity is available. See Template:Exclusive for an explanation of the system. To display version icons or a link with icons, see {{exclusive icons}} and {{exclusive icon link}}, respectively.

Usage

{{ exclusive versions | <entity name> | invert = y/yes/1/true | not = <entity name> | short = y/yes/1/true | raw = y/yes/1/true | delimit = <delimiter> | upper3ds/upper3DS = y/yes/1/true | small = y/yes | nl/nolink = y/yes/1/true | nlicons = y/yes/1/true | noicons = y/yes/1/true | <version parameters> = y/yes/1/true/n/no/0/false | version = <versions>}}

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 Versão para Console japonês Versão para Console japonês 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 "Versão para Computador Computador" instead of "Versão para Computador Versão para Computador".

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 Versão para Nintendo 3DSVersão para Nintendo 3DS 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.

small

Reduces the size of the platform icons.

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.

Versão para Computador dsk
desktop
pc
Versão para Console cns
console
Versão para Console old-gen old
oldgen
old-gen
old-gen console
Versão para Celular mbl
mobile
Versão para Nintendo 3DS 3DS
3ds
Versão para Console japonês 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}} Versão para Computador Versão para Computador, Versão para Console Versão para Console, Versão para Console old-gen Versão para Console old-gen e Versão para Celular Versão para Celular
{{eversions|Traveling Merchant|invert=y}} Versão para Nintendo 3DSVersão para Nintendo 3DS
{{eversions|Traveling Merchant|not=Moon Lord}} Versão para Console old-gen Versão para Console old-gen
{{eversions|Traveling Merchant|short=y}} Versão para Computador Computador, Versão para Console Console, Versão para Console old-gen Console old-gen e Versão para Celular Celular
{{eversions|Traveling Merchant|raw=y}} desktop/console/old-gen/mobile
{{eversions|Traveling Merchant|raw=y|delimit=__&__}} desktop__&__console__&__old-gen__&__mobile
{{eversions|Ocram}} Versão para Console old-gen Versão para Console old-gen e Versão para Nintendo 3DSVersão para Nintendo 3DS
{{eversions|Ocram|nl=y}} Versão para Console old-gen e Versão para Nintendo 3DS
{{eversions|Ocram|nl=y|nlicons=y}} Versão para Console old-gen Versão para Console old-gen e Versão para Nintendo 3DSVersão para Nintendo 3DS
{{eversions|Ocram|noicons=y}} Versão para Console old-gen e Versão para Nintendo 3DS
{{eversions|Monokuma set#History}} Versão para Console japonês Versão para Console japonês
{{eversions|Torch}} $tl$: Nenhum parâmetro válido foi inserido!
{{eversions|Torch|raw=y}}