• ପ୍ରଧାନ ପୃଷ୍ଠା
  • ଯାହିତାହି
  • ପାଖାପାଖି
  • ଲଗ-ଇନ
  • ସଜାଣି
  • ଦାନ
  • ଉଇକିପିଡ଼ିଆ ବାବଦରେ
  • ଆମେ ଦାୟୀ ନୋହୁଁ
ଉଇକିପିଡ଼ିଆ

ଛାଞ୍ଚ:Module other

  • ଭାଷା
  • ଦେଖିବେ
  • ସମ୍ପାଦନ କରନ୍ତୁ


ଛାଞ୍ଚ ଡକ୍ୟୁମେଣ୍ଟେସନ୍[view] [ସମ୍ପାଦନ କରନ୍ତୁ] [ଇତିହାସ] [purge]

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

This template helps other templates detect if they are on a "Module:" page or some "other" type of page.

Usage ସମ୍ପାଦନ କରନ୍ତୁ

This template usually takes two parameters, like this:

{{module other | Module page text | Other pages text }}

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

Module 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 on module pages. Thus not adding other pages that just show the template. Like this:

{{module other | [[Category:Some module category]] }}

Or to warn that a template should not be used on other pages:

{{module other | | This template should only be used on module pages. }}

Note that in the first case above the "other" parameter was not used, and in the second example the "module" parameter was left empty.

Demospace ସମ୍ପାଦନ କରନ୍ତୁ

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

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

{{module other 
| Module page text 
| Other pages text 
| demospace = module
}}

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

Module 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:

{{module other 
| Module page text 
| Other pages text 
| demospace = {{{demospace|}}}
}}

Technical details ସମ୍ପାଦନ କରନ୍ତୁ

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

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


  • 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 ଛାଞ୍ଚ:Module other/doc. (ସମ୍ପାଦନ କରନ୍ତୁ | ଇତିହାସ)
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=ଛାଞ୍ଚ:Module_other&oldid=467656"ରୁ ଅଣାଯାଇଅଛି
Last edited on ୫ ସେପ୍ଟେମ୍ବର ୨୦୨୨, at ୨୧:୦୮

Languages

    • Аԥсшәа
    • العربية
    • الدارجة
    • مصرى
    • অসমীয়া
    • Asturianu
    • Azərbaycanca
    • تۆرکجه
    • Башҡортса
    • Basa Bali
    • Беларуская
    • Беларуская (тарашкевіца)
    • भोजपुरी
    • ပအိုဝ်ႏဘာႏသာႏ
    • বাংলা
    • Brezhoneg
    • Bosanski
    • 閩東語 / Mìng-dĕ̤ng-ngṳ̄
    • Cebuano
    • کوردی
    • Cymraeg
    • Dansk
    • Dolnoserbski
    • English
    • Esperanto
    • فارسی
    • Føroyskt
    • Gaeilge
    • Galego
    • ગુજરાતી
    • Farefare
    • Gungbe
    • 客家語/Hak-kâ-ngî
    • Hawaiʻi
    • हिन्दी
    • Hrvatski
    • Hornjoserbsce
    • Հայերեն
    • Bahasa Indonesia
    • Igbo
    • Ilokano
    • Ido
    • Íslenska
    • 日本語
    • ქართული
    • 한국어
    • Kurdî
    • Kernowek
    • Latina
    • Latviešu
    • Мокшень
    • Олык марий
    • Māori
    • Македонски
    • മലയാളം
    • Монгол
    • ဘာသာ မန်
    • मराठी
    • မြန်မာဘာသာ
    • नेपाली
    • Norsk bokmål
    • ਪੰਜਾਬੀ
    • Português
    • Română
    • Русский
    • Русиньскый
    • Srpskohrvatski / српскохрватски
    • ၽႃႇသႃႇတႆး
    • Simple English
    • سرائیکی
    • Slovenščina
    • ChiShona
    • Soomaaliga
    • Shqip
    • Sunda
    • Svenska
    • தமிழ்
    • ತುಳು
    • Тоҷикӣ
    • ไทย
    • Tok Pisin
    • Türkçe
    • Татарча / tatarça
    • Тыва дыл
    • Удмурт
    • Українська
    • اردو
    • Tiếng Việt
    • 吴语
    • Yorùbá
    • 中文
    • 文言
    • Bân-lâm-gú
    • 粵語
    ଉଇକିପିଡ଼ିଆ
    • ଏ ପୃଷ୍ଠାଟି ୫ ସେପ୍ଟେମ୍ବର ୨୦୨୨ ଦିନ ୨୧:୦୮ ବେଳେ ବଦଳାଯାଇଥିଲା ।
    • ଦର୍ଶାଯାଇନଥିଲେ ସମସ୍ତ ବିଷୟବସ୍ତୁ CC BY-SA 4.0 ରେ ଉପଲବ୍ଧ ।
    • ଗୁମର ନୀତି
    • ଉଇକିପିଡ଼ିଆ ବାବଦରେ
    • ଆମେ ଦାୟୀ ନୋହୁଁ
    • Code of Conduct
    • ବ୍ୟବହାର ନିୟମାବଳୀ
    • ଡେସ୍କଟପ
    • ଡେଭେଲପରମାନେ
    • ପରିସଂଖ୍ୟାନ
    • କୁକି ବିବରଣୀ