模板:Valid/doc

来自Local Chinese Wikipedia
imported>UAL552010年9月26日 (日) 09:38的版本 建立内容为“<includeonly><!-- 在這裡加入模板的保護標識 --></includeonly><noinclude>{{template doc page viewed directly}}</noinclude> <!-- 在本行下...”的新頁面)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转到导航 跳转到搜索

package.lua第80行Lua错误:module 'Module:Category handler/data' not found

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)