Template:Otheruses/doc: Difference between revisions
More actions
←Created page with '{{TemplateBox |1= 1 |1d=Description of this page |1def= |1stat=optional |2= 2 |2d=Description of the other page |2def=other uses |2stat=optional |3= 3 |3d=Name (li...' |
m 28 revisions imported |
||
| (27 intermediate revisions by 8 users not shown) | |||
| Line 1: | Line 1: | ||
{{TemplateBox | {{TemplateBox | ||
|1= 1 | |name=Otheruses | ||
|1d= | |type=disambiquation template | ||
|namespace=all | |||
|usergroup=all | |||
|placement=top | |||
|lines= | |||
|shorthand= | |||
|setscats= | |||
|desc=Template is used for linking the reader to articles with similar titles or concepts that they may have been seeking instead. | |||
|desc-de=Vorlage dient zum Verknüpfen des Lesers mit Artikeln mit ähnlichen Titeln oder Konzepten, die möglicherweise stattdessen gesucht wurden. | |||
|desc-es=La plantilla se usa para vincular al lector a artículos con títulos o conceptos similares que pueden haber estado buscando en su lugar. | |||
|desc-fr=Le modèle est utilisé pour relier le lecteur à des articles avec des titres ou des concepts similaires qu'ils auraient pu chercher à la place. | |||
|desc-ru=Шаблон используется для привязки читателя к статьям с похожими названиями или концепциями, которые они, возможно, искали. | |||
|desc-sl=Ta predloga se uporablja za povezovanje bralca s članki s podobnimi naslovi ali koncepti, ki jih morda išče. | |||
|desc-zh=模板用于将阅读器与具有相似标题或概念的文章相链接。 | |||
| useTemplateData = 1 | |||
|1=description | |||
|1d=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. | |||
|1d-fr=Phrase de description placée en tête (utile quand le paramètre 1 est laissé vide ou non précisé, lorsque vous devez remplacer la première phrase générée, ou quand vous voulez définir une notice préalable) ; ne pas inclure la ponctuation finalequi est générée. | |||
|1d-sl=Stavek z vodilnim opisom (uporaben, kadar parameter 1 ostane prazen ali ni določen, saj je treba zamenjati prvi generirani stavek, ali kadar želite nastaviti predhodno obvestilo); ne vključite končnega ločila, saj ga generira predloga. | |||
|1def= | |1def= | ||
|1stat=optional | |1stat=optional- | ||
|2= | |||
|2d=Description of | |2=1 | ||
|2def= | |2d=Description of this page | ||
|2d-de=Beschreibung dieser Seite | |||
|2d-es=Descripción de esta página | |||
|2d-fr=Description de cette page | |||
|2d-ru=Описание этой страницы | |||
|2d-sl=Opis te strani | |||
|2d-zh=本页说明 | |||
|2def= | |||
|2stat=optional | |2stat=optional | ||
|3= | |||
|3d= | |3=2 | ||
|3def= | |3d=Description of the other page | ||
|3d-de=Beschreibung der anderen Seite | |||
|3d-es=Descripción de la otra página | |||
|3d-fr=Description de l'autre page | |||
|3d-ru=Описание другой страницы | |||
|3d-sl=Opis druge strani | |||
|3d-zh=其他页面的说明 | |||
|3def=other uses | |||
|3stat=optional | |3stat=optional | ||
|name= | |||
| | |4=3 | ||
| | |4d=Full name (link) of the other page (with its namespace name) | ||
| | |4d-de=Vollständiger Name (Link) der anderen Seite (mit ihrem Namensraumnamen) | ||
| | |4d-es=Nombre completo (enlace) de la otra página (con su nombre de espacio de nombres) | ||
|4d-fr=Nom complet (lien) de l’autre page (avec son nom d’espace de noms) | |||
|4d-ru=Полное имя (ссылка) другой страницы (с ее именем пространства имен) | |||
|4d-sl=Celotno ime (povezava) druge strani (skupaj z imenom imenskega prostora) | |||
|4d-zh=另一个页的名称(链接)(及其命名空间名称) | |||
|4def=<nowiki>{{FULLPAGENAME}}</nowiki> (disambiguation) | |||
|4stat=optional | |||
|5=4 | |||
|5d=Description of a 2nd other page (for an examplar specific topic) | |||
|5d-fr=Description d’une 2e autre page (pour un sujet exemplaire spécifique) | |||
|5d-es=Descripción de una 2a otra página (para un tema ejemplar específico) | |||
|5d-sl=Opis 2. druge strani (za določeno temo) | |||
|5def= | |||
|5stat=optional- | |||
|6=5 | |||
|6d=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 | |||
|6d-fr=Nom complet (lien) de la 2e autre page (avec son nom d’espace de noms) ; si vous précisez ce paramètre, vous devez également définir le paramètre précédent avec une description explicite | |||
|6d-es=Nombre completo (enlace) de la 2a otra página (con su nombre de espacio de nombres); si especifica este parámetro, también debe especificar el parámetro anterior con una descripción explícita | |||
|6d-sl=Celotno ime (povezava) 2. druge strani (z imenom imenskega prostora); če nastavite ta parameter, morate nastaviti tudi predhodni parameter z izrecnim opisom | |||
|6def= | |||
|6stat=optional- | |||
|7=6 | |||
|7d=Description of a 3nd other page (like with parameter 4) | |||
|7d-fr=Description d’une 3e autre page (comme avec le paramètre 4) | |||
|7d-es=Descripción de una 3a otra página (como con el parámetro 4) | |||
|7d-sl=Opis 3. druge strani (kot pri parametru 4) | |||
|7def= | |||
|7stat=optional- | |||
|8=7 | |||
|8d=Full name (link) of the 3rd other page (like with parameter 5) | |||
|8d-fr=Nom complet (lien) de la 3e autre page (comme avec le paramètre 5) | |||
|8d-es=Nombre completo (enlace) de la 3a otra página (como con el parámetro 5) | |||
|8d-sl=Celotno ime (povezava) 3. druge strani (kot pri parametru 5) | |||
|8def= | |||
|8stat=optional- | |||
|9=8 | |||
|9d=Description of a 4th other page (like with parameter 4) | |||
|9d-fr=Description d’une 4e autre page (comme avec le paramètre 4) | |||
|9d-es=Descripción de una 4a otra página (como con el parámetro 4) | |||
|9d-sl=Opis 4. druge strani (kot pri parametru 4) | |||
|9def= | |||
|9stat=optional- | |||
|10=9 | |||
|10d=Full name (link) of the 4th other page (like with parameter 5) | |||
|10d-fr=Nom complet (lien) de la 4e autre page (comme avec le paramètre 5) | |||
|10d-es=Nombre completo (enlace) de la 4a otra página (como con el parámetro 5) | |||
|10d-sl=Celotno ime (povezava) 4. druge strani (kot pri parametru 5) | |||
|10def= | |||
|10stat=optional- | |||
|11=10 | |||
|11d=Description of a 5th other page (like with parameter 4) | |||
|11d-fr=Description d’une 5e autre page (comme avec le paramètre 4) | |||
|11d-es=Descripción de una 5a otra página (como con el parámetro 4) | |||
|11d-sl=Opis 5. druge strani (kot pri parametru 4) | |||
|11def= | |||
|11stat=optional- | |||
|12=11 | |||
|12d=Full name (link) of the 5rd other page (like with parameter 5) | |||
|12d-fr=Nom complet (lien) de la 5e autre page (comme avec le paramètre 5) | |||
|12d-es=Nombre completo (enlace) de la 5a otra página (como con el parámetro 5) | |||
|12d-sl=Celotno ime (povezava) 5. druge strani (kot pri parametru 5) | |||
|12def= | |||
|12stat=optional- | |||
|example= | |||
|usage-notes= | |usage-notes= | ||
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 {{Tl|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 === | |||
<syntaxhighlight lang="wikitext">{{Otheruses}}</syntaxhighlight> | |||
gives: | |||
{{Otheruses}} | |||
=== 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 {{Tl|LangSwitch}}: | |||
First, | |||
<syntaxhighlight lang="wikitext">{{Otheruses|the insect}}</syntaxhighlight> | |||
gives: | |||
{{Otheruses|the insect}} | |||
but: | |||
<syntaxhighlight lang="wikitext">{{Otheruses | |||
| {{LangSwitch |en=the insect |fr=l’insecte |sl=žuželki}} | |||
}}</syntaxhighlight> | |||
gives: | |||
{{Otheruses | |||
| {{LangSwitch |en=the insect |fr=l’insecte |sl=žuželki}} | |||
}} | |||
As well, | |||
<syntaxhighlight lang="wikitext">{{Otheruses|the insect group|the automobile|Volkswagen Beetle}}</syntaxhighlight> | |||
gives: | |||
{{Otheruses|the insect group|the automobile|Volkswagen Beetle}} | |||
but: | |||
<syntaxhighlight lang="wikitext">{{Otheruses | |||
| {{LangSwitch |en=the insect group |fr=le groupe d’insectes |sl=skupini žuželk}} | |||
| {{LangSwitch |en=the automobile |fr=l’automobile |sl=avtomobil}} | Volkswagen Beetle | |||
}}</syntaxhighlight> | |||
gives: | |||
{{Otheruses | |||
| {{LangSwitch |en=the insect group |fr=le groupe d’insectes |sl=skupini žuželk}} | |||
| {{LangSwitch |en=the automobile |fr=l’automobile |sl=avtomobil }} | Volkswagen Beetle | |||
}} | |||
=== 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, | |||
< | <syntaxhighlight lang="wikitext">{{Otheruses|||Category:Bugs}}</syntaxhighlight> | ||
gives: | |||
{{Otheruses}} | {{Otheruses|||Category:Bugs}} | ||
< | As well, | ||
<syntaxhighlight lang="wikitext">{{Otheruses | |||
{{ | | {{LangSwitch |en=wells for water supply |fr=les puits fournissant de l’eau |sl=vodnjakih za oskrbo z vodo}} | ||
| {{LangSwitch |en=the town in England |fr=la petite ville en Angleterre |sl=mesto v Angliji}} | Category:Wells, England | |||
}}</syntaxhighlight> | |||
gives: | |||
{{Otheruses| | {{Otheruses | ||
| {{LangSwitch |en=wells for water supply |fr=les puits fournissant de l’eau |sl=vodnjakih za oskrbo z vodo}} | |||
| {{LangSwitch |en=the town in England |fr=la petite ville en Angleterre |sl=mesto v Angliji}} | Category:Wells, England | |||
}} | |||
|i18n-method=switch | |||
|i18n-method= | |||
|i18n-desc= | |i18n-desc= | ||
|relieson=[[Template:LangSwitch]], [[Template:Comma]], [[Template:Semicolon]], [[Template:Full stop]] | |||
|seealso= | |seealso= | ||
}}<includeonly> | |||
}} | |||
<includeonly> | |||
<!-- ADD CATEGORIES BELOW THIS LINE --> | <!-- ADD CATEGORIES BELOW THIS LINE --> | ||
[[Category:Disambiguation and redirection templates|{{PAGENAME}}]] | [[Category:Disambiguation and redirection templates|{{PAGENAME}}]] | ||
</includeonly> | </includeonly> | ||
Latest revision as of 07:05, 15 August 2026
Template is used for linking the reader to articles with similar titles or concepts that they may have been seeking instead.
Usage
{{Otheruses |1= |2= |3= }}
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 |sl=žuželki}}
}}
gives:
As well,
{{Otheruses|the insect group|the automobile|Volkswagen Beetle}}
gives:
but:
{{Otheruses
| {{LangSwitch |en=the insect group |fr=le groupe d’insectes |sl=skupini žuželk}}
| {{LangSwitch |en=the automobile |fr=l’automobile |sl=avtomobil}} | 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 |sl=vodnjakih za oskrbo z vodo}}
| {{LangSwitch |en=the town in England |fr=la petite ville en Angleterre |sl=mesto v Angliji}} | Category:Wells, England
}}
gives:
Template parameters
| Parameter | Description | Default | Status | |
|---|---|---|---|---|
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. | empty | optional | |
1 | Description of this page | empty | optional | |
2 | Description of the other page | other uses | optional | |
3 | Full name (link) of the other page (with its namespace name) | {{FULLPAGENAME}} (disambiguation) | optional | |
4 | Description of a 2nd other page (for an examplar specific topic) | empty | optional | |
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 | empty | optional | |
6 | Description of a 3nd other page (like with parameter 4) | empty | optional | |
7 | Full name (link) of the 3rd other page (like with parameter 5) | empty | optional | |
8 | Description of a 4th other page (like with parameter 4) | empty | optional | |
9 | Full name (link) of the 4th other page (like with parameter 5) | empty | optional | |
10 | Description of a 5th other page (like with parameter 4) | empty | optional | |
11 | Full name (link) of the 5rd other page (like with parameter 5) | empty | optional | |
|
<templatedata>JSON</templatedata> ./. {{TemplateBox}}
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 Newly created template documentation and imports Wikipedia's help about TemplateData • Commons-specific information Template is used for linking the reader to articles with similar titles or concepts that they may have been seeking instead.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Additional information
The template is intended to be used in the following namespaces: all namespaces
The template is intended to be used by the following user groups: all users
Placement: At the top of the page
Relies on:
Template:LangSwitch, Template:Comma, Template:Semicolon, Template:Full stop
Localization
To add your language to the list of languages supported by this template, please edit the template and add a row to the "{{LangSwitch|}}" construct. It takes the form "|xx= Your translation " (xx being the code of your language)