Mòdul:Global infobox tools/ús

De la Viquipèdia, l'enciclopèdia lliure

Mòdul per facilitar la creació de mòduls d'infotaules multilingües (o, dit d'altra forma, permeten la fàcil localització d'aquestes); i així adequar-se a qualsevol Viquipèdia.

Aquest mòdul utilitza, principalment, el Module:Multilang module tools, mòdul del qual hereta moltes propietats i funcions. "Multilang module tools" és de creació de plantilles multilingües; així aquest mòdul és una adequació a les infotaules.

Òbviament, aquest mòdul no presenta (per ell mateix) cap infotaula. Són els mòduls que l'utilitzen els que presenten (directa o indirectament) la infotaula.

Mireu AQUÍ per a més explicacions sobre el mòdul.

Per a proves utilitzeu Mòdul:Global infobox tools/prova.

En profunditat[modifica]

Variables[modifica]

Que podrien ser modificades des del mòdul principal, però llavors amb el canvi de l'abreviatura p -> MLITT.

variable Valor per defecte Significat
p.w_hint_txt true Uses ruby for infobox labels
p.arg_prefix_l 'l_' Prefix for label keys, since the label text can be modified.
p.arg_suffix_equal '=...' Suffix for hint text, using ruby, at end of the nom del paràmetre.
p.arg_prefix_val 'val_' Prefix for value name to send to template
p.lbl_prefix 'lbl_' Prefix for label name to send to template




Module to facilitate the creation of multilingual infobox modules (or, in other words, allow easy its localization); and so adapt to any Wikipedia.

This module mainly uses the Module:Multilang module tools, from which it inherits many properties and functions. "Multilang module tools" is the creation of multilingual templates; thus this module is an adaptation to infoboxes.

Obviously, this module does not (by itself) present any infoboxe. These are the modules that are used by those who present (directly or indirectly) the infobox. So the explanations that follow extend to these modules that use it.

Look at here for more explanations on the module.

In depth[modifica]

Variables[modifica]

They could be modified from the main module, but then with the change of the abbreviation p -> MLITT.

variable Valor per defecte Significat
p.w_hint_txt true Uses ruby for infobox labels
p.arg_prefix_l 'l_' Prefix for label keys, since the label text can be modified.
p.arg_suffix_equal '=...' Suffix for hint text, using ruby, at end of the nom del paràmetre.
p.arg_prefix_val 'val_' Prefix for value name to send to template
p.lbl_prefix 'lbl_' Prefix for label name to send to template