Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Usage  





2 Demospace  





3 Technical details  














Template:Module other






Аԥсшәа
العربية

Asturianu
Azərbaycanca
تۆرکجه
Basa Bali

 / Bân-lâm-gú
Башҡортса
Беларуская
Беларуская (тарашкевіца)

Bosanski
Brezhoneg
Cebuano
ChiShona
Cymraeg
Dansk
الدارجة
Dolnoserbski
Esperanto
Farefare
فارسی
Føroyskt
Gaeilge
Galego

Gungbe
/Hak-kâ-ngî

Hawaiʻi
Հայերեն
ि
Hornjoserbsce
Hrvatski
Ido
Igbo
Ilokano
Bahasa Indonesia
IsiXhosa
Íslenska
עברית

Kernowek
Kurdî
Latina
Latviešu
Magyar
Македонски

Māori

مصرى

 / Mìng-dĕ̤ng-nḡ
Мокшень
Монгол



Norsk bokmål
Олык марий
ି


Tok Pisin
Português
Qaraqalpaqsha
Română
Русиньскый
Русский
سرائیکی
Shqip
Simple English
Slovenščina
Soomaaliga
کوردی
Српски / srpski
Srpskohrvatski / српскохрватски
Sunda
Svenska
ி
Татарча / tatarça
 

Тоҷикӣ

Türkçe
Тыва дыл
Удмурт
Українська
اردو
Tiếng Vit


Yorùbá


 

Edit links
 









Template
Talk
 

















Read
View source
View history
 








Tools
   


Actions  



Read
View source
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 




In other projects  



MediaWiki
Wikibooks
Wikiversity
 
















Appearance
   

 





Permanently protected template

From Wikipedia, the free encyclopedia
 



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.

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.



Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Module_other&oldid=1050945039"

Categories: 
Namespace manipulation templates
Module namespace templates
Hidden categories: 
Wikipedia extended-confirmed-protected templates
Navboxes using background colours
 



This page was last edited on 20 October 2021, at 19:50 (UTC).

Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Mobile view



Wikimedia Foundation
Powered by MediaWiki