模板:Valid
跳至導覽
跳至搜尋
File:Test Template Info-Icon - Version (2).svg 模板文件[檢視] [編輯] [歷史] [清除快取]
Purpose[編輯]
Determines whether something is valid in a certain context. Currently only implemented for determining if a number is within the precision that wikipedia expressions can handle.
Returns[編輯]
true if the argument is valid, false if it is not.
Examples[編輯]
{{valid|number=A}}= (not a number){{valid|number=1234}}={{valid|number=+1234}}={{valid|number=-1234}}={{valid|number=(1234)}}= (one pair of parenthesis is allowed){{valid|number=--1234}}= (incorrect sign use){{valid|number=1234567890}}={{valid|number=12345678901234567890}}= (too large){{valid|number=1.234567890}}={{valid|number=1.2345678901234567890}}= (too many decimals)