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 Examples  





3 See also  














Template:Isnumeric






Afrikaans
Alemannisch
Алтай тил
العربية
Arpetan

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

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

Bikol Central
Boarisch
Bosanski
Dansk
الدارجة
Deutsch
Dolnoserbski

Eesti
Ελληνικά
Esperanto
فارسی
Føroyskt
Français
ГӀалгӀай
گیلکی


Hausa
ि
Hornjoserbsce
Bahasa Hulontalo
Ilokano
Bahasa Indonesia
Ирон
IsiZulu
Italiano

Kurdî
Ladin
Lëtzebuergesch
Ligure
Magyar
ि

مازِرونی
Bahasa Melayu
Мокшень

Nedersaksies


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

Pälzisch
Português
Română
Rumantsch
Русский
Scots
Shqip

Simple English
سنڌي
Slovenščina
کوردی
Српски / srpski
 


Türkçe
Українська
اردو
Vèneto
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  



Wikiversity
 
















Appearance
   

 





Permanently protected template

From Wikipedia, the free encyclopedia
 



This template tests whether a value is numeric (or at least, that it can be treated as such by the expression ParserFunction, see Help:Calculation).

Usage

By default, simply writing {{Isnumeric|1,327}} (where 1,327 is an example number) will pass through the parameter if it's numeric and be blank if it's not. If the parameter boolean=true is given, as in {{Isnumeric|1,327|boolean=true}}, then the template will output 1 if numeric and 0 if not numeric.

Examples

coderesult
{{Isnumeric|1,327.50}}

1,327.50

{{Isnumeric|9,999 (1950)}}
{{Isnumeric|9999999999999}}

9999999999999

{{Isnumeric|500 metres}}
{{Isnumeric|500*500}}

500*500

{{Isnumeric|e<>pi}}

e<>pi

{{Isnumeric|9.999e50}}

9.999e50

{{Isnumeric|1+1}}

1+1

{{Isnumeric|}}

See also


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

Categories: 
If-then-else templates
Mathematical function templates
Wikipedia utility templates
Hidden category: 
Wikipedia template-protected templates
 



This page was last edited on 8 March 2022, at 03:30 (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