Template:Otheruses

Da Wikimedia Commons, l'archivio di file multimediali liberi
Vai alla navigazione Vai alla ricerca
Documentationview · edit · history · purge ]
This documentation is transcluded from Template:Otheruses/doc.

(questa parte di documentazione è disponibile solo in alcune lingue)

Template is used for linking the reader to articles with similar titles or concepts that they may have been seeking instead.

Uso

{{Otheruses |1= |2= |3= }}

(questa parte di documentazione è disponibile solo in alcune lingue)

You can add several pairs (of description and link) for multiple other usages (currently up to 5 pairs).

  • Each provided description (in parameter 1 for the use in the current page, and in parameters 2, 4, 6... for other uses) can be autotranslated using {{LangSwitch}}.
  • If you do not give the description for the first link, it will display “other uses” by default – you may specify description (without leading “for” and ending “see”).
    • For descriptions of the 2nd (or further) other usage, you must supply this distinctive description.
  • If you do not give the name of the other page (in parameters 3, 5, 7, ...), it automatically targets a disambiguation page, i.e. the full name of the current page with an appended “ (disambiguation)” suffix. You should specify the explicit name of each other page except one of them.

Basic usage

{{Otheruses}}

gives:

Translating the descriptions

The descriptions themselves will not be correct in the generated sentence, even if the template translates some fixed parts. You can autotranslate the provided descriptions for example with {{LangSwitch}}:

First,

{{Otheruses|the insect}}

gives:

but:

{{Otheruses
| {{LangSwitch |en=the insect |fr=l’insecte }}
}}

gives:

As well,

{{Otheruses|the insect group|the automobile|Volkswagen Beetle}}

gives:

but:

{{Otheruses
| {{LangSwitch |en=the insect group |fr=le groupe d’insectes }}
| {{LangSwitch |en=the automobile |fr=l’automobile }} | Volkswagen Beetle
}}

gives:

Linking to disambiguation categories or files

You also may direct to categories (a leading ":", normally needed for links to categories or files may be specified, but it is now detected and supplied automatically).

So,

{{Otheruses|||Category:Bugs}}

gives:

As well,

{{Otheruses
| {{LangSwitch |en=wells for water supply |fr=les puits fournissant de l’eau }}
| {{LangSwitch |en=the town in England |fr=la petite ville en Angleterre }} | Category:Wells, England 
}}

gives:

Parametri template

ParametroDescrizionePredefinitoStato
descriptionLeading description sentence (useful when parameter 1 is left empty or not specified, as you must replace the first generated sentence, or when you want to set a prior notice); don't include the ending punctuation which is generated.emptyfacoltativo
1Description of this pageemptyfacoltativo
2Description of the other pageother usesfacoltativo
3Full name (link) of the other page (with its namespace name){{FULLPAGENAME}} (disambiguation)facoltativo
4Description of a 2nd other page (for an examplar specific topic)emptyfacoltativo
5Full name (link) of the 2nd other page (with its namespace name); if you set this parameter, you must also set the previous parameter with an explicit descriptionemptyfacoltativo
6Description of a 3nd other page (like with parameter 4)emptyfacoltativo
7Full name (link) of the 3rd other page (like with parameter 5)emptyfacoltativo
8Description of a 4th other page (like with parameter 4)emptyfacoltativo
9Full name (link) of the 4th other page (like with parameter 5)emptyfacoltativo
10Description of a 5th other page (like with parameter 4)emptyfacoltativo
11Full name (link) of the 5rd other page (like with parameter 5)emptyfacoltativo
Template data
<templatedata>JSON</templatedata> ./. {{TemplateBox}}
TemplateData

TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard.


Existing template documentation

At Wikimedia Commons, it is recommended to use {{TemplateBox}} with either ‎useTemplateData=1 or ‎useTemplateData=only on the ‎/doc subpage and transcluding it with {{Documentation}} into the template. ‎<nowiki>-tags can be wrapped around the arguments, if required, to avoid templates being expanded.

Newly created template documentation and imports

Another option, especially for imported templates, or for users with JSON experience, is placing raw ‎<templatedata>-tags into the Wikitext of the template, as described in various Wikipediae.

Discussione
There is an ongoing discussion about that matter. Feel invited to comment if you are experienced in either way, your time permits and if you like to share your opinion or to make a suggestion.


Wikipedia's help about TemplateDataCommons-specific information

Template is used for linking the reader to articles with similar titles or concepts that they may have been seeking instead.

Parametri template[Modifica dati del modello]

Questo template preferisce la formattazione in linea dei parametri.

ParametroDescrizioneTipoStato
1

Description of this page

Sconosciutofacoltativo
10

Description of a 5th other page (like with parameter 4)

Sconosciutofacoltativo
11

Full name (link) of the 5rd other page (like with parameter 5)

Sconosciutofacoltativo
2

Description of the other page

Predefinito
other uses
Sconosciutofacoltativo
3

Full name (link) of the other page (with its namespace name)

Predefinito
{{FULLPAGENAME}} (disambiguation)
Sconosciutofacoltativo
4

Description of a 2nd other page (for an examplar specific topic)

Sconosciutofacoltativo
5

Full name (link) of the 2nd other page (with its namespace name); if you set this parameter, you must also set the previous parameter with an explicit description

Sconosciutofacoltativo
6

Description of a 3nd other page (like with parameter 4)

Sconosciutofacoltativo
7

Full name (link) of the 3rd other page (like with parameter 5)

Sconosciutofacoltativo
8

Description of a 4th other page (like with parameter 4)

Sconosciutofacoltativo
9

Full name (link) of the 4th other page (like with parameter 5)

Sconosciutofacoltativo
description

Leading description sentence (useful when parameter 1 is left empty or not specified, as you must replace the first generated sentence, or when you want to set a prior notice); don't include the ending punctuation which is generated.

Sconosciutofacoltativo

Informazioni aggiuntive

Questo template è concepito per essere usato nei seguenti namespace: tutti i namespace

Questo template è concepito per essere usato dai seguenti gruppi utente: tutti gli utenti

Posizione: In cima alla pagina

Dipende da:
Template:LangSwitch, Template:Comma, Template:Semicolon, Template:Full stop

Localizzazione

Per aggiungere la tua lingua alla lista delle lingue disponibili per questo template, modifica il template e aggiungi una riga in "{{LangSwitch|}}". Prende la forma "|xx=Tua traduzione" (xx sta per il codice della tua lingua)