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

ଛାଞ୍ଚ:Template other

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


ଛାଞ୍ଚ ଡକ୍ୟୁମେଣ୍ଟେସନ୍[view] [edit] [ଇତିହାସ] [purge]
WarningThis template is used on ୪୨,୯୦,୦୦୦+ pages, or roughly 5102% 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.

This is the {{template other}} meta-template.

It helps other templates detect if they are on a "Template:" page or some "other" type of page.

ବିଷୟସୂଚୀ

  • ୧ Usage
  • ୨ Demospace
  • ୩ Technical details
  • ୪ See also

Usage

ସମ୍ପାଦନା

This template usually takes two parameters, like this:

{{template other | Template page text | Other pages text }}

If the template is on a "Template:" page, it will return this:

Template page text

If the template is on any other page, it will return this:

Other pages text

A typical usage case could be to make it so that a template only adds a category when not on a template page. Thus not adding the template itself and other templates that are built with it to the category. Like this:

{{template other | | [[Category:Some maintenance category]] }}

Note that in the example above the "template" parameter was left empty.

Demospace

ସମ୍ପାଦନା

For testing and demonstration purposes this template can take a parameter named demospace.

  • If it has the value template it returns the template page 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:

{{template other 
| Template page text 
| Other pages text 
| demospace = template
}}

No matter on what kind of page the code above is used it will return this:

Template page text

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. Then do like this:

{{template other 
| Template page text 
| Other pages text 
| demospace = {{{demospace|}}}
}}

Technical details

ସମ୍ପାଦନା

This template detects "Template talk:" pages as type other.

This template works like {{main talk other}}, for more examples and technical details see full documentation there.

See also

ସମ୍ପାଦନା

Easy to use namespace-detection templates:

  • {{main other}} – For article templates.
  • {{talk other}} – For talk page templates.
  • {{user other}} – For user page templates.
  • {{wikipedia other}} – For detecting "Wikipedia:" pages.
  • {{file other}} – For file (image) templates.
  • {{template other}} – For detecting template pages.
  • {{help other}} – For help page templates.
  • {{category other}} – For category templates.
  • {{portal other}} – For portal templates.
  • {{book other}} – For detecting book pages.

More complex namespace-detection templates:

  • {{namespace detect}} – The very versatile one.
  • {{namespace detect showall}} – The extremely versatile one, has input reuse.
  • {{talkspace detect}} - For detecting talk pages on various namespaces.
  • {{main talk other}} – Separates some namespaces.

Pagename-handling and detection templates:

  • {{pgn}} – Can take apart and put together pagenames in several ways.
  • {{basepage subpage}} – For detecting if on a basepage, subpage or subsubpage.
  • {{if pagename}} – For pattern matching on the pagename.
  • {{if pagename multi}} – For pattern matching on the pagename, has input reuse.
  • {{IP-user other}} – For detecting IP-user pages.

Technical stuff:

  • Wikipedia:Namespace – Lists all the namespaces.
  • mw:Help:Magic words – About {{NAMESPACE}} etc.
  • mw:Help:Extension:ParserFunctions – About {{#ifeq:|||}} etc.
The above documentation is transcluded from ଛାଞ୍ଚ:Template 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=ଛାଞ୍ଚ:Template_other&oldid=362210"ରୁ ଅଣାଯାଇଅଛି
Last edited on ୨ ଫେବୃଆରୀ ୨୦୧୯, at ୧୩:୧୭

Languages

    • Аԥсшәа
    • Acèh
    • Afrikaans
    • ak:Nhwɛsode:Template other
    • አማርኛ
    • Pangcah
    • Ænglisc
    • Obolo
    • العربية
    • ܐܪܡܝܐ
    • الدارجة
    • مصرى
    • অসমীয়া
    • Asturianu
    • Авар
    • अवधी
    • Azərbaycanca
    • تۆرکجه
    • Башҡортса
    • Basa Bali
    • Batak Toba
    • Беларуская
    • Беларуская (тарашкевіца)
    • Български
    • भोजपुरी
    • Bislama
    • Banjar
    • ပအိုဝ်ႏဘာႏသာႏ
    • বাংলা
    • བོད་ཡིག
    • Brezhoneg
    • Bosanski
    • Basa Ugi
    • Буряад
    • Català
    • 閩東語 / Mìng-dĕ̤ng-ngṳ̄
    • Нохчийн
    • Cebuano
    • Tsetsêhestâhese
    • کوردی
    • Corsu
    • Nēhiyawēwin / ᓀᐦᐃᔭᐍᐏᐣ
    • Kaszëbsczi
    • Cymraeg
    • Dansk
    • Thuɔŋjäŋ
    • Zazaki
    • ދިވެހިބަސް
    • Eʋegbe
    • Ελληνικά
    • English
    • Esperanto
    • Español
    • Euskara
    • فارسی
    • Suomi
    • Føroyskt
    • Gaeilge
    • Gagauz
    • Gàidhlig
    • Galego
    • गोंयची कोंकणी / Gõychi Konknni
    • Bahasa Hulontalo
    • ગુજરાતી
    • Gungbe
    • Gaelg
    • 客家語 / Hak-kâ-ngî
    • हिन्दी
    • Fiji Hindi
    • Hrvatski
    • Kreyòl ayisyen
    • Magyar
    • Հայերեն
    • Արեւմտահայերէն
    • Bahasa Indonesia
    • Interlingue
    • Ilokano
    • Íslenska
    • 日本語
    • La .lojban.
    • Jawa
    • ქართული
    • Qaraqalpaqsha
    • Kongo
    • Kumoring
    • Kalaallisut
    • ភាសាខ្មែរ
    • ಕನ್ನಡ
    • 한국어
    • Перем коми
    • کٲشُر
    • Kurdî
    • Kernowek
    • Кыргызча
    • Latina
    • Lëtzebuergesch
    • Ladin
    • Lombard
    • ລາວ
    • Lietuvių
    • Latviešu
    • Madhurâ
    • मैथिली
    • Basa Banyumasan
    • Мокшень
    • Malagasy
    • Māori
    • Minangkabau
    • Македонски
    • മലയാളം
    • Монгол
    • ဘာသာမန်
    • मराठी
    • Bahasa Melayu
    • Malti
    • Mirandés
    • မြန်မာဘာသာ
    • مازِرونی
    • नेपाली
    • नेपाल भाषा
    • Nederlands
    • Norsk bokmål
    • Sesotho sa Leboa
    • Chi-Chewa
    • ਪੰਜਾਬੀ
    • Pangasinan
    • Kapampangan
    • Papiamentu
    • पालि
    • پنجابی
    • Ποντιακά
    • پښتو
    • Português
    • Ikirundi
    • Română
    • Руски
    • Русский
    • Русиньскый
    • Ikinyarwanda
    • संस्कृतम्
    • Scots
    • سنڌي
    • Srpskohrvatski / српскохрватски
    • တႆး
    • සිංහල
    • Simple English
    • سرائیکی
    • Slovenščina
    • Gagana Samoa
    • Soomaaliga
    • Shqip
    • Српски / srpski
    • Sranantongo
    • Sesotho
    • Sunda
    • Svenska
    • Kiswahili
    • Sakizaya
    • தமிழ்
    • ᥖᥭᥰ ᥖᥬᥲ ᥑᥨᥒᥰ
    • తెలుగు
    • Тоҷикӣ
    • ไทย
    • ትግሬ
    • Tagalog
    • Setswana
    • Tok Pisin
    • Türkçe
    • Татарча / tatarça
    • ChiTumbuka
    • Twi
    • Українська
    • اردو
    • Oʻzbekcha / ўзбекча
    • Tshivenda
    • Tiếng Việt
    • Walon
    • Winaray
    • 吴语
    • Хальмг
    • IsiXhosa
    • მარგალური
    • Yorùbá
    • ⵜⴰⵎⴰⵣⵉⵖⵜ ⵜⴰⵏⴰⵡⴰⵢⵜ
    • 中文
    • 文言
    • 閩南語 / Bân-lâm-gú
    • 粵語
    • IsiZulu
    ଉଇକିପିଡ଼ିଆ
    • Wikimedia Foundation
    • Powered by MediaWiki
    • ଏ ପୃଷ୍ଠାଟି ୨ ଫେବୃଆରୀ ୨୦୧୯ ଦିନ ୧୩:୧୭ ବେଳେ ବଦଳାଯାଇଥିଲା ।
    • ଦର୍ଶାଯାଇନଥିଲେ ସମସ୍ତ ବିଷୟବସ୍ତୁ CC BY-SA 4.0 ରେ ଉପଲବ୍ଧ ।
    • ଗୁମର ନୀତି
    • ଉଇକିପିଡ଼ିଆ ବାବଦରେ
    • ଆମେ ଦାୟୀ ନୋହୁଁ
    • କୋଡ୍ ଅଫ୍ କଣ୍ଡକ୍ଟ୍ / ଆଚରଣ ସଂହିତା
    • ଡେଭେଲପରମାନେ
    • ପରିସଂଖ୍ୟାନ
    • କୁକି ବିବରଣୀ
    • ବ୍ୟବହାର ନିୟମାବଳୀ
    • ଡେସ୍କଟପ