• ମୂଳ
  • ଯାହିତାହି
  • ପାଖାପାଖି
  • ଲଗ-ଇନ
  • ସଜାଣି
Donate Now If Wikipedia is useful to you, please give today.
  • ଉଇକିପିଡ଼ିଆ ବାବଦରେ
  • ଆମେ ଦାୟୀ ନୋହୁଁ
ଉଇକିପିଡ଼ିଆ

ଛାଞ୍ଚ:Main other

  • ଭାଷା
  • ଦେଖିବେ
  • ସମ୍ପାଦନା


ଛାଞ୍ଚ ଡକ୍ୟୁମେଣ୍ଟେସନ୍[view] [edit] [ଇତିହାସ] [purge]
WarningThis template is used on ୯୪,୨୦,୦୦୦+ pages, or roughly 11212% of all pages.
To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them.
WarningThis template is used in system messages, and on approximately ୯୪,୨୦,୦୦୦ pages, or roughly 11212% of all pages.
Changes to it can cause immediate changes to the Wikipedia user interface.
To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Please discuss changes on the talk page before implementing them.
Shortcut
  • {{ns0}}

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
  • ୨ Demospace
  • ୩ Technical details
  • ୪ Redirects

Basic usage

ସମ୍ପାଦନା

This template usually takes two parameters, like this:

{{main other |result if in mainspace |result if elsewhere}}

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

ସମ୍ପାଦନା
  • {{article only}}
  • {{ns0}}
  • {{when in article}}
  • v
  • t
  • e
Namespace and pagename-detecting templates
Namespace
Particular
  • Main other
  • Talk other
  • Book other
  • Category other
  • Draft other
  • File other
    • Is Commons
  • Help other
  • Module other
  • Portal other
  • Template other
  • User other
  • Wikipedia other
  • Single namespace
  • If talkspace of
  • If usertalk of
More generic
  • Namespace detect
  • Namespace detect showall
  • Main talk other
    • Main talk other flex
  • Talkspace detect
Pagename
When on basepage
Detects and acts according to whether it is on a basepage or on any subpage (that is, a ../.. subpage).
When pagename is
For pattern matching on the pagename.
Module:Page
Can take apart and put together pagenames in several ways.
IP-talk
Returns IP-user talkpage, registered-user talkpage or non-user talkpage.
IP-user other
For detecting IP-user pages.
Subpage other
Pagename has an after-slash part (not in mainspace)
Sandbox other
Page is subpage /sandbox (template space)
Testcases other
Page is subpage /testcases (template space)
Others
Stub other
Detects whether it is on a page with a stub template or not.
Preview other
Detects whether page is viewed as a preview or not.
  • Wikipedia:Namespace
  • Wikipedia:Page name
  • Magic words
  • ParserFunctions
The above documentation is transcluded from ଛାଞ୍ଚ:Main other/doc. (edit | ଇତିହାସ)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
"https://or.wikipedia.org/w/index.php?title=ଛାଞ୍ଚ:Main_other&oldid=467590"ରୁ ଅଣାଯାଇଅଛି
Last edited on ୫ ସେପ୍ଟେମ୍ବର ୨୦୨୨, at ୨୦:୫୭

Languages

    • Аԥсшәа
    • Acèh
    • Afrikaans
    • ak:Nhwɛsode:Main other
    • Алтай тил
    • አማርኛ
    • 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
    • डोटेली
    • ދިވެހިބަސް
    • ཇོང་ཁ
    • Ελληνικά
    • English
    • Esperanto
    • Español
    • Eesti
    • Euskara
    • فارسی
    • Mfantse
    • Suomi
    • Na Vosa Vakaviti
    • Føroyskt
    • Français
    • Nordfriisk
    • Gaeilge
    • 贛語
    • Gàidhlig
    • Galego
    • گیلکی
    • गोंयची कोंकणी / Gõychi Konknni
    • Bahasa Hulontalo
    • ગુજરાતી
    • Gungbe
    • Gaelg
    • 客家語 / Hak-kâ-ngî
    • Hawaiʻi
    • עברית
    • हिन्दी
    • Hrvatski
    • Kreyòl ayisyen
    • Հայերեն
    • Արեւմտահայերէն
    • Interlingua
    • Bahasa Indonesia
    • Ilokano
    • ГӀалгӀай
    • Ido
    • Íslenska
    • 日本語
    • Jawa
    • ქართული
    • Taqbaylit
    • Kumoring
    • Gĩkũyũ
    • Қазақша
    • ភាសាខ្មែរ
    • ಕನ್ನಡ
    • 한국어
    • کٲشُر
    • Kurdî
    • Latina
    • Lëtzebuergesch
    • Лезги
    • Lingua Franca Nova
    • Ladin
    • ລາວ
    • Latviešu
    • Madhurâ
    • मैथिली
    • Basa Banyumasan
    • Мокшень
    • Māori
    • Minangkabau
    • Македонски
    • മലയാളം
    • Монгол
    • ဘာသာမန်
    • मराठी
    • Bahasa Melayu
    • Malti
    • Mirandés
    • မြန်မာဘာသာ
    • Эрзянь
    • مازِرونی
    • Nedersaksies
    • नेपाली
    • Li Niha
    • Nederlands
    • Norsk bokmål
    • ਪੰਜਾਬੀ
    • Pangasinan
    • Kapampangan
    • पालि
    • پنجابی
    • پښتو
    • Português
    • 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
    • Тоҷикӣ
    • ไทย
    • 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
    ଉଇକିପିଡ଼ିଆ
    • Wikimedia Foundation
    • Powered by MediaWiki
    • ଏ ପୃଷ୍ଠାଟି ୫ ସେପ୍ଟେମ୍ବର ୨୦୨୨ ଦିନ ୨୦:୫୭ ବେଳେ ବଦଳାଯାଇଥିଲା ।
    • ଦର୍ଶାଯାଇନଥିଲେ ସମସ୍ତ ବିଷୟବସ୍ତୁ CC BY-SA 4.0 ରେ ଉପଲବ୍ଧ ।
    • ଗୁମର ନୀତି
    • ଉଇକିପିଡ଼ିଆ ବାବଦରେ
    • ଆମେ ଦାୟୀ ନୋହୁଁ
    • କୋଡ୍ ଅଫ୍ କଣ୍ଡକ୍ଟ୍ / ଆଚରଣ ସଂହିତା
    • ଡେଭେଲପରମାନେ
    • ପରିସଂଖ୍ୟାନ
    • କୁକି ବିବରଣୀ
    • ବ୍ୟବହାର ନିୟମାବଳୀ
    • ଡେସ୍କଟପ