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 List of subst helper templates  














Template:Ifsubst






Afrikaans
ak:Nhwɛsode:Ifsubst
Anarâškielâ
ि
Аԥсшәа
العربية
Azərbaycanca
تۆرکجه
Basa Bali

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

Bosanski
Буряад
Català
ChiTumbuka
Dansk
الدارجة
Ελληνικά
Эрзянь
فارسی
Føroyskt
Français
Gaelg
Galego
ГӀалгӀай


Հայերեն
Ilokano
Íslenska
עברית
Jawa
Kapampangan
Kurdî
Кыргызча
Ladin
Latina
Lëtzebuergesch
ि
Македонски

Māori
مصرى




Нохчийн
Norsk bokmål
Norsk nynorsk
ି
Oʻzbekcha / ўзбекча

Pälzisch


Português
Română
Русиньскый
Русский
Саха тыла

Scots

Simple English
سنڌي
Slovenščina
کوردی
Српски / srpski
Sunda
Svenska
Taqbaylit
Татарча / tatarça
 


Türkçe
Українська
اردو
Tiếng Vit



 

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  



Wikimedia Commons
MediaWiki
Meta-Wiki
Wikidata
Wikifunctions
Wikisource
Wikiversity
Wikivoyage
 
















Appearance
   

 





Permanently protected template

From Wikipedia, the free encyclopedia
 


Usage

Meta template that returns the first parameter if evaluated during substitution, and the second parameter if evaluated during transclusion.
Note that this template must be used in safesubst mode to work properly:

{{ safesubst:<noinclude/>ifsubst| yes | no }}

The |demo= parameter can be used for testing the template. Set |demo=yes to always display the yes text, |demo=no to always display the no text, or |demo={{{demo|}}} to pass through the value from the parent template.

List of subst helper templates


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

Categories: 
Wikipedia metatemplates
If-then-else templates
Hidden category: 
Wikipedia template-protected templates
 



This page was last edited on 2 January 2022, at 08:48 (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