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 See also  














Template:P1






Anarâškielâ
العربية
ܐܪܡܝܐ
Asturianu
Авар
تۆرکجه
Basa Bali

 / Bân-lâm-gú
Беларуская
Беларуская (тарашкевіца)
Bikol Central
Български
Bosanski
Буряад
Català
Чӑвашла
Cymraeg
Dansk
الدارجة
Ελληνικά
Эрзянь
Español
فارسی
Fiji Hindi
Føroyskt
Français
  / Gõychi Konknni

Հայերեն
Ilokano
Bahasa Indonesia
Ирон
IsiZulu
Íslenska
Italiano
Jawa


Қазақша
Kurdî
Latina
Latviešu
Lietuvių
ि


مصرى

Bahasa Melayu
Мокшень
Монгол


Нохчийн
Oʻzbekcha / ўзбекча

Português
Română
Русский
Scots

Simple English
Slovenčina
Slovenščina
کوردی
Српски / srpski
Suomi
Svenska
Tagalog
ி
Татарча / tatarça
 


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


Zazaki

 

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
Wikispecies
Wikibooks
Wikidata
Wikiversity
 
















Appearance
   

 





Permanently protected template

From Wikipedia, the free encyclopedia
 


{{{1}}}

The templates P1 and P2 simply return the first respectively second unnamed input parameter respectively. For example:

These templates can be used inside other templates as an alternative to the {{#switch}} parser function, to switch between outputs based on whether the input is "1" or "2":

Using {{#switch}}, this syntax is equivalent to

except that the parser function strips whitespace between parameters whereas the templates don't.

See also


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

Category: 
Parameter selection templates
Hidden category: 
Wikipedia template-protected templates
 



This page was last edited on 25 March 2017, at 16:04 (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