Template:Main other
- English
- español
- 日本語
- français
- 中文
- русский
- português
- Nederlands
- العربية
- аԥсшәа
- Acèh
- Afrikaans
- алтай тил
- አማርኛ
- Pangcah
- Ænglisc
- الدارجة
- مصرى
- অসমীয়া
- asturianu
- azərbaycanca
- تۆرکجه
- башҡортса
- Basa Bali
- Boarisch
- Batak Toba
- Bikol Central
- беларуская
- беларуская (тарашкевіца)
- български
- भोजपुरी
- Banjar
- বাংলা
- brezhoneg
- bosanski
- Basa Ugi
- буряад
- català
- Chavacano de Zamboanga
- 閩東語 / Mìng-dĕ̤ng-ngṳ̄
- нохчийн
- Cebuano
- کوردی
- corsu
- čeština
- словѣньскъ / ⰔⰎⰑⰂⰡⰐⰠⰔⰍⰟ
- Cymraeg
- dansk
- Thuɔŋjäŋ
- Zazaki
- डोटेली
- ދިވެހިބަސް
- ཇོང་ཁ
- Ελληνικά
- Esperanto
- eesti
- euskara
- فارسی
- mfantse
- suomi
- Na Vosa Vakaviti
- føroyskt
- arpetan
- Nordfriisk
- Gaeilge
- 贛語
- Gàidhlig
- galego
- گیلکی
- गोंयची कोंकणी / Gõychi Konknni
- Bahasa Hulontalo
- ગુજરાતી
- gungbe
- Gaelg
- 客家語 / Hak-kâ-ngî
- Hawaiʻi
- עברית
- हिन्दी
- hrvatski
- Kreyòl ayisyen
- հայերեն
- Արեւմտահայերէն
- interlingua
- Jaku Iban
- Bahasa Indonesia
- Ilokano
- гӀалгӀай
- Ido
- íslenska
- Jawa
- ქართული
- Taqbaylit
- Kumoring
- Gĩkũyũ
- қазақша
- ភាសាខ្មែរ
- ಕನ್ನಡ
- 한국어
- کٲشُر
- kurdî
- Latina
- Lëtzebuergesch
- лезги
- Lingua Franca Nova
- Ladin
- ລາວ
- lietuvių
- latviešu
- Madhurâ
- मैथिली
- Basa Banyumasan
- мокшень
- Māori
- Minangkabau
- македонски
- മലയാളം
- монгол
- ဘာသာမန်
- मराठी
- Bahasa Melayu
- Malti
- Mirandés
- မြန်မာဘာသာ
- эрзянь
- مازِرونی
- Nedersaksies
- नेपाली
- Li Niha
- ଓଡ଼ିଆ
- ਪੰਜਾਬੀ
- Pangasinan
- Kapampangan
- पालि
- پنجابی
- Ποντιακά
- پښتو
- ရခိုင်
- ikirundi
- română
- tarandíne
- руски
- русиньскый
- संस्कृतम्
- саха тыла
- Scots
- سنڌي
- srpskohrvatski / српскохрватски
- Taclḥit
- တႆး
- සිංහල
- Simple English
- slovenčina
- slovenščina
- Gagana Samoa
- chiShona
- Soomaaliga
- shqip
- српски / srpski
- Seeltersk
- Sunda
- svenska
- ꠍꠤꠟꠐꠤ
- Sakizaya
- தமிழ்
- Tayal
- తెలుగు
- tetun
- тоҷикӣ
- ไทย
- Türkmençe
- Tagalog
- Tok Pisin
- Türkçe
- Seediq
- татарча / tatarça
- chiTumbuka
- ئۇيغۇرچە / Uyghurche
- українська
- اردو
- oʻzbekcha / ўзбекча
- vèneto
- Tiếng Việt
- Winaray
- 吴语
- хальмг
- isiXhosa
- Yorùbá
- Vahcuengh
- ⵜⴰⵎⴰⵣⵉⵖⵜ ⵜⴰⵏⴰⵡⴰⵢⵜ
- 文言
- 閩南語 / Bân-lâm-gí
- 粵語
- isiZulu
Note: This template is used on a lot of pages. In order not to put too much load on the servers, edits should be kept to a bare minimum. Please discuss proposed changes on the talk page first.
|
This is the {{Main other}} meta-template.
This template helps other templates detect if they are on a main space (article) page or some "other" type of page.
Basic usage
This template usually takes two parameters, like this:
- Translation: "main other " —translated by result if in mainspace .
If the template is on a main space (article) page, it will return this:
- result if in mainspace
If the template is on any other page, it will return this:
- result if elsewhere
A typical usage case could be to make it so that a template only adds a category when on an article. Thus not adding other pages that just show the template. Like this:
- {{main other |[[Category:Some article maintenance category]]}}
Note that guidelines do not support categorization in templates.
Or to warn that a template should not be used on other pages:
- {{main other | |This template should only be used in articles.}}
Note that in the first case above the "other" parameter was not used, and in the second example the "main" parameter was left empty.
Demospace
For testing and demonstration purposes, this template can take a parameter named demospace.
- If it has the value main it returns the article text.
- It if has the value other or any other value such as the name of some other namespace it returns the other pages text.
- If the parameter is empty or undefined, the actual page type determines the result.
Like this:
- {{main other |result if in mainspace |result if elsewhere |demospace=main}}
No matter on what kind of page the code above is used, it will return: result if in mainspace
You can make it so your template also understands the demospace parameter. That means you can demonstrate the different appearances of your template in the documentation for your template:
- {{main other |result if in mainspace |result if elsewhere |demospace={{{demospace|}}} }}
Technical details
This template detects article "Talk:" pages as type other.
This template works like {{Main talk other}}. For more examples and technical details, see the documentation there.
Redirects
Template:Namespace and pagename-detecting templates