Template:Otheruses: Difference between revisions
bn |
m use #dir parser function |
||
(41 intermediate revisions by 13 users not shown) | |||
Line 1:
| <span lang="{{{lang|}}}" dir="{{#dir:{{{lang|<noinclude>{{PAGELANGUAGE}}</noinclude>}}}}}">
| <div class="catlinks" lang="{{{lang|<noinclude>{{PAGELANGUAGE}}</noinclude>}}}" dir="{{#dir:{{{lang|<noinclude>{{PAGELANGUAGE}}</noinclude>}}}}}" style="clear:none;margin:2px 0;background:#EBEBEB;border:1px solid #DDD;padding:2px">[[File:Disambig.svg|25x25px|middle|link=]]
}}<!--
Describe the main topic.
-->{{#if: {{{description|<noinclude>Description</noinclude>}}}
| {{{description|<noinclude>Description</noinclude>}}}{{Full stop|lang={{Int:Lang}}}}
}}<!--
-->{{#if: {{{1|<noinclude>1</noinclude>}}}
| {{#switch: {{NAMESPACE}}
|={{LangSwitch
|bn=এই পাতাটি
|ca=Aquesta galeria
|da=Dette galleri
|de=Diese Galerie
|en=This gallery
|eo=Ĉi tiu galerio
|es=Esta galería
|fa=این گالری
|fr=Cette galerie
|hi=यह गैलरी
|it=Questa galleria
|ja=このギャラリ
|ko=이 갤러리는
|nl=Deze galerij
|pt=Esta galeria
|ru=Эта галерея
|sl=Ta galerija
|sq=Kjo galeri
|sv=Detta galleri
|uk=Ця галерея
}}
|Category={{LangSwitch
|bn=এই বিষয়শ্রেণীটি
|ca=Aquesta categoria
|da=Denne kategori
|de=Diese Kategorie
|en=This category
|eo=Ĉi tiu kategorio
|es=Esta categoría
|fa=این رده
|fr=Cette catégorie
|hi=यह श्रेणी
|it=Questa categoria
|ja=このカテゴリ
|ko=이 카테고리는
|nl=Deze categorie
|pt=Esta categoria
|ru=Эта категория
|sl=Ta kategorija
|sq=Kjo kategori
|sv=Den här kategorin
|uk=Це категорія
|zh=这个分类
|zh-hans=这个分类
|zh-hant=這個分類
}}
|File={{LangSwitch
|bn=এই ফাইলটি
|ca=Aquest fitxer
|da=Denne fil
|de=Diese Datei
|en=This file
|eo=Ĉi tiu dosiero
|es=Este archivo
|fa=این پرونده
|fr=Ce fichier
|hi=यह फ़ाइल
|it=Questo file
|ja=このファイル
|ko=이 파일은
|nl=Dit bestand
|pt=Este ficheiro
|ru=Этот файл
|sq=Ky skedar
|sl=Ta datoteka
|sv=Den här bilden
|uk=Це файл
|zh=这个文件
|zh-hans=这个文件
|zh-hant=這個文件
}}
|Template={{LangSwitch
|bn=এই টেমপ্লেটটি
|ca=Aquesta plantilla
|da=Denne skabelon
|de=Diese Vorlage
|en=This template
|eo=Ĉi tiu ŝablono
|es=Esta plantilla
|fa=این الگو
|fr=Ce modèle
|hi=यह साँचा
|it=Questo modello
|ja=このテンプレート
|ko=이 템플릿은
|nl=Dit sjabloon
|pt=Esta predefinição
|ru=Этот шаблон
|sq=Ky model
|sl=Ta predloga
|sv=Den här mallen
|uk=Це шаблон
|zh=这个模板
|zh-hans=这个模板
|zh-hant=這個模板
}}
|#default={{LangSwitch
|bn=এই পাতাটি
|ca=Aquesta pàgina
|da=Denne side
|de=Diese Seite
|en=This page
|eo=Ĉi tiu paĝo
|es=Esta página
|fa=این صفحه
|fr=Cette page
|hi=यह पृष्ठ
|it=Questa pagina
|ja=このページ
|ko=이 페이지는
|nl=Deze pagina
|pt=Esta página
|ru=Эта страница
|sq=Kjo faqe
|sl=Ta stran
|sv=Den här sidan
|uk=Це сторінка
|zh=这个页面
|zh-hans=这个页面
|zh-hant=這個頁面
}}
}}{{Int:Word-separator}}<!--
The following LangSwitch is for most languages placing the verb in the middle of the sentence (before the given topic).
-->{{LangSwitch
|bn=~<!--empty-->
|ca=és sobre
|da=handler om
|de=behandelt
|en=is about
|eo=estas pri
|es=es sobre
|fa=دربارهٔ
|fr=concerne
|hi=~<!--empty-->
|it=riguarda
|ja=では
|ko=~<!--empty-->
|nl=behandelt
|pt=é sobre
|ru=про
|sq=ka të bëjë me
|sl=je o
|sv=handlar om
|uk=про
|zh=是关于
|zh-hans=是关于
|zh-hant=是關於
}}{{Int:Word-separator}}<bdi>{{#if:||{{{1|<noinclude>1</noinclude>}}}}}</bdi><!--
The following LangSwitch is for some languages placing the verb or a particle at end of the sentence (after the given topic).
-->{{LangSwitch
|bn= সম্পর্কিত
|en=~<!--empty-->
|fa= است
|hi= के बारे में है
|ja=について扱っています
|ko=에 관한 것입니다
|zh=的
}}{{Full stop|lang={{Int:Lang}}}}
}}<!--
Describe other uses or another use (start of sentence).
-->{{LangSwitch
|
|am=ስለ
|bn=~
|ca=Per
|da=For
|de=Für
|en=For
|eo=Pri
|es=Para
|fa=برای
|fr=Pour
|hi=~<!--empty-->
|it=Per
|ja=~<!--empty-->
|ko=~<!--empty-->
|nl=Voor
|pt=Para
|ru=Про
|sq=Për
|sl=Za
|sv=För
|uk=Про
|zh=关于
|zh-hans=关于
|zh-hant=對於
}}{{Int:Word-separator}}{{#if: {{{2|<noinclude>2</noinclude>}}}
| <bdi>{{#if:||{{{2|<noinclude>2</noinclude>}}}}}</bdi>
| {{LangSwitch
|af=ander gebruike
|am=ሌሎች አጠቃቀሞች
|bn=অন্য ব্যবহার
|ca=altres usos
|da=andre betydninger
|de=andere Bedeutungen
|en=other uses
|eo=aliaj signifoj
|es=otros usos
|fa=دیگر کاربردها
|fr=d’autres sens
|hi=दूसरे उपयोग
|it=altri significati
|ja=その他の意味
|ko=다른 의미
|nl=andere betekenissen
|pt=outros usos
|ru=других значений
|sq=kuptime të tjera
|sl=druge pomene
|sv=andra betydelser
|uk=інші значення
|zh=其他用途
}}
}}{{LangSwitch
|default=~<!--empty-->
|ja=については
|ko=에 대해서는
}}{{#switch:{{Int:Lang}}|hi=|#default={{Comma|lang={{Int:Lang}}}}}}{{LangSwitch|default= |ja/ko/zh=~}}{{LangSwitch
|af=sien
|am=ይመልከቱ-
|bn=এর জন্য দেখুন
|ca=veure
|da=se
|de=siehe
|en=see
|eo=vidu
|es=vea
|fa=بنگرید به
|fr=voir
|hi= के लिए
|it=vedi
|ja=~<!--empty-->
|ko=~<!--empty-->
|nl=zie
|pt=veja
|ru=см.
|sq=shihni
|sl=glej
|sv=se
|uk=див.
|zh=请参阅
|zh-hans=请参阅
|zh-hant=請參閱
}}{{Int:Word-separator}}'''<bdi>[[:{{FULLPAGENAME:{{{3|{{FULLPAGENAME}} (disambiguation)}}}}}]]</bdi>'''{{LangSwitch
|en=~<!--empty-->
|hi= देखें
|ja=を参照してください
|ko= 를 참조하십시오
}}<!--
Describe another use.
-->{{#if: {{{4|<noinclude>4</noinclude>}}}
| {{Semicolon|lang={{Int:Lang}}}}{{LangSwitch
|af=oor
|am=ስለ
|bn=~<!--empty-->
|ca=per
|da=for
|de=für
|en=for
|eo=pri
|es=para
|fa=برای
|fr=pour
|hi=~<!--empty-->
|it=per
|ja=~<!--empty-->
|ko=~<!--empty-->
|nl=voor
|pt=para
|ru=про
|sq=për
|sl=za
|sv=för
|uk=про
|zh=关于
|zh-hans=关于
|zh-hant=對於
}}{{Int:Word-separator}}<bdi>{{#if:||{{{4|<noinclude>4</noinclude>}}}}}</bdi>{{LangSwitch
|default=~<!--empty-->
|ja=については
|ko=에 대해서는
}}{{#switch:{{Int:Lang}}|hi=|#default={{Comma|lang={{Int:Lang}}}}}}{{LangSwitch|default= |ja/ko/zh=~}}{{LangSwitch
|af=sien
|am=ይመልከቱ-
|bn=এর জন্য দেখুন
|ca=veure
|da=se
|de=siehe
|en=see
|eo=vidu
|es=vea
|fa=بنگرید به
|fr=voir
|hi= के लिए
|it=vedi
|ja=~<!--empty-->
|ko=~<!--empty-->
|nl=zie
|pt=veja
|ru=см.
|sq=shihni
|sl=glej
|sv=se
|uk=див.
|zh=见
|zh-hans=见
|zh-hant=見
}}{{Int:Word-separator}}'''<bdi>[[:{{FULLPAGENAME:{{{5|{{FULLPAGENAME}} (disambiguation)}}}}}]]</bdi>'''{{LangSwitch
|en=~<!--empty-->
|hi= देखें
|ja=を参照してください
|ko= 를 참조하십시오
}}
}}<!--
Describe another use.
-->{{#if: {{{6|<noinclude>6</noinclude>}}}
| {{Semicolon|lang={{Int:Lang}}}}{{LangSwitch
|af=oor
|am=ስለ
|bn=~<!--empty-->
|ca=per
|da=for
|de=für
|en=for
|eo=pri
|es=para
|fa=برای
|fr=pour
|hi=~<!--empty-->
|it=per
|ja=~<!--empty-->
|ko=~<!--empty-->
|nl=voor
|pt=para
|ru=про
|sq=për
|sl=za
|sv=för
|uk=про
|zh=关于
|zh-hans=关于
|zh-hant=對於
}}{{Int:Word-separator}}<bdi>{{#if:||{{{6|<noinclude>6</noinclude>}}}}}</bdi>{{LangSwitch
|default=~<!--empty-->
|ja=については
|ko=에 대해서는
}}{{#switch:{{Int:Lang}}|hi=|#default={{Comma|lang={{Int:Lang}}}}}}{{LangSwitch|default= |ja/ko/zh=~}}{{LangSwitch
|af=sien
|am=ይመልከቱ-
|bn=এর জন্য দেখুন
|ca=veure
|da=se
|de=siehe
|en=see
|eo=vidu
|es=vea
|fa=بنگرید به
|fr=voir
|hi= के लिए
|it=vedi
|ja=~<!--empty-->
|ko=~<!--empty-->
|nl=zie
|pt=veja
|ru=см.
|sq=shihni
|sl=glej
|sv=se
|uk=див.
|zh=见
|zh-hans=见
|zh-hant=見
}}{{Int:Word-separator}}'''<bdi>[[:{{FULLPAGENAME:{{{7|{{FULLPAGENAME}} (disambiguation)}}}}}]]</bdi>'''{{LangSwitch
|en=~<!--empty-->
|hi= देखें
|ja=を参照してください
|ko= 를 참조하십시오
}}
}}<!--
Describe another use.
-->{{#if: {{{8|<noinclude>8</noinclude>}}}
| {{Semicolon|lang={{Int:Lang}}}}{{LangSwitch
|af=oor
|am=ስለ
|bn=~<!--empty-->
|ca=per
|da=for
|de=für
|en=for
|eo=pri
|es=para
|fa=برای
|fr=pour
|hi=~<!--empty-->
|it=per
|ja=~<!--empty-->
|ko=~<!--empty-->
|nl=voor
|pt=para
|ru=про
|sq=për
|sl=za
|sv=för
|uk=про
|zh=关于
|zh-hans=关于
|zh-hant=對於
}}{{Int:Word-separator}}<bdi>{{#if:||{{{8|<noinclude>8</noinclude>}}}}}</bdi>{{LangSwitch
|default=~<!--empty-->
|ja=については
|ko=에 대해서는
}}{{#switch:{{Int:Lang}}|hi=|#default={{Comma|lang={{Int:Lang}}}}}}{{LangSwitch|default= |ja/ko/zh=~}}{{LangSwitch
|af=sien
|am=ይመልከቱ-
|bn=এর জন্য দেখুন
|ca=veure
|da=se
|de=siehe
|en=see
|eo=vidu
|es=vea
|fa=بنگرید به
|fr=voir
|hi= के लिए
|it=vedi
|ja=~<!--empty-->
|ko=~<!--empty-->
|nl=zie
|pt=veja
|ru=см.
|sq=shihni
|sl=glej
|sv=se
|uk=див.
|zh=见
|zh-hans=见
|zh-hant=見
}}{{Int:Word-separator}}'''<bdi>[[:{{FULLPAGENAME:{{{9|{{FULLPAGENAME}} (disambiguation)}}}}}]]</bdi>'''{{LangSwitch
|en=~<!--empty-->
|hi= देखें
|ja=を参照してください
|ko= 를 참조하십시오
}}
}}<!--
Describe another use.
-->{{#if: {{{10|<noinclude>10</noinclude>}}}
| {{Semicolon|lang={{Int:Lang}}}}{{LangSwitch
|af=oor
|am=ስለ
|bn=~<!--empty-->
|ca=per
|da=for
|de=für
|en=for
|eo=pri
|es=para
|fa=برای
|fr=pour
|hi=~<!--empty-->
|it=per
|ja=~<!--empty-->
|ko=~<!--empty-->
|nl=voor
|pt=para
|ru=про
|sq=për
|sl=za
|sv=för
|uk=про
|zh=关于
|zh-hans=关于
|zh-hant=對於
}}{{Int:Word-separator}}<bdi>{{#if:||{{{10|<noinclude>10</noinclude>}}}}}</bdi>{{LangSwitch
|default=~<!--empty-->
|ja=については
|ko=에 대해서는
}}{{#switch:{{Int:Lang}}|hi=|#default={{Comma|lang={{Int:Lang}}}}}}{{LangSwitch|default= |ja/ko/zh=~}}{{LangSwitch
|af=sien
|am=ይመልከቱ-
|bn=এর জন্য দেখুন
|ca=veure
|da=se
|de=siehe
|en=see
|eo=vidu
|es=vea
|fa=بنگرید به
|fr=voir
|hi= के लिए
|it=vedi
|ja=~<!--empty-->
|ko=~<!--empty-->
|nl=zie
|pt=veja
|ru=см.
|sq=shihni
|sl=glej
|sv=se
|uk=див.
|zh=见
|zh-hans=见
|zh-hant=見
}}{{Int:Word-separator}}'''<bdi>[[:{{FULLPAGENAME:{{{11|{{FULLPAGENAME}} (disambiguation)}}}}}]]</bdi>'''{{LangSwitch
|en=~<!--empty-->
|hi= देखें
|ja=を参照してください
|ko= 를 참조하십시오
}}
}}<!--
End of other uses.
-->{{Full stop|lang={{Int:Lang}}}}<!--
-->{{#ifeq: {{{banner|}}} | no
| </span>
| </div>
}}<noinclude>{{Documentation}}
[[Category:Internationalization templates using LangSwitch]]
</noinclude>
|
Latest revision as of 19:22, 8 August 2024
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 }}
}}
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:
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)