Template:Inflation/doc

From Azupedia
Jump to navigation Jump to search

Editing Template:Ifnumber/doc Jump to navigationJump to search Information about template data This is the documentation page of the template Ifnumber.

You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to a username, among other benefits.

Content that violates any copyrights will be deleted. Encyclopedic content must be verifiable through citations to reliable sources.

Advanced Special characters Help Cite

Usage

Returns 1 if the value is numeric and 0 otherwise.

Examples

coderesult
{{Inflation|1}}

Error when using {{Inflation}}: |value= (parameter 2) and |start_year= (parameter 3) must be specified.

{{Inflation|one}}

Error when using {{Inflation}}: |value= (parameter 2) and |start_year= (parameter 3) must be specified.

{{Inflation|}}

Error when using {{Inflation}}: |value= (parameter 2) and |start_year= (parameter 3) must be specified.

{{Inflation|1|a number|not a number}}

Error when using {{Inflation}}: |index=1 (parameter 1) not a recognized index.

{{Inflation|one|a number|not a number}}

Error when using {{Inflation}}: |index=one (parameter 1) not a recognized index.

{{Inflation|1000|a number|not a number}}

Error when using {{Inflation}}: |index=1000 (parameter 1) not a recognized index.

{{Inflation|10.00|a number|not a number}}

Error when using {{Inflation}}: |index=10.00 (parameter 1) not a recognized index.

{{Inflation|1,000|a number|not a number}}

Error when using {{Inflation}}: |index=1,000 (parameter 1) not a recognized index.

{{Inflation|1,000.50|a number|not a number}}

Error when using {{Inflation}}: |index=1,000.50 (parameter 1) not a recognized index.

{{Inflation|99 balloons|a number|not a number}}

Error when using {{Inflation}}: |index=99 balloons (parameter 1) not a recognized index.

{{Inflation|99.9999e10|a number|not a number}}

Error when using {{Inflation}}: |index=99.9999e10 (parameter 1) not a recognized index.

{{Inflation|−123|a number|not a number}}

Error when using {{Inflation}}: |index=−123 (parameter 1) not a recognized index.

{{Inflation|(456)|a number|not a number}}

Error when using {{Inflation}}: |index=(456) (parameter 1) not a recognized index.

{{Ifnumber|{{val|123|5}}|number|value "{{val|123|5}}" not numeric}}  value "123±5" not numeric

Notes

This template will not recognize formatted numbers, which is by design since formatted numbers will break expression parsers. To remove the formatting from a number, you can wrap the number first in {{formatnum: number |R}}.

coderesult
{{Inflation|1,000.50|a number|not a number}}Error when using {{Inflation}}: |index=1,000.50 (parameter 1) not a recognized index.
{{Inflation|{{formatnum:1,000.50|R}}|a number|not a number}}Error when using {{Inflation}}: |index=1000.50 (parameter 1) not a recognized index.

See also



Insert

 – — ° ′ ″ ≈ ≠ ≤ ≥ ± − × ÷ ← → · §   Sign your posts on talk pages: Fire (talk) 13:35, 17 December 2022 (JST)   Cite your sources: Cite error: Invalid <ref> tag; refs with no name must have content

Edit summary (Briefly describe your changes) By publishing changes, you agree to the Terms of Use, and you irrevocably agree to release your contribution under the CC BY-SA 3.0 License and the GFDL. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.

  Preview page with this template (what's this?)

Page title Pages transcluded onto the current version of this page (help):

Template:Documentation subpage (view source) (template editor protected) Template:Ifnumber (view source) (template editor protected) Template:Mbox (view source) (protected) Template:Strong (view source) (template editor protected) Template:TemplatePAGENAME (edit) Template:Template example row (edit) Template:Template link (view source) (protected) Template:Terminate sentence (view source) (template editor protected) Template:Tl (view source) (protected) Template:Val (view source) (template editor protected) Module:Arguments (view source) (protected) Module:Convert (view source) (template editor protected) Module:Convert/data (view source) (template editor protected) Module:Convert/text (view source) (template editor protected) Module:Gapnum (view source) (extended confirmed protected) Module:Message box (view source) (protected) Module:Message box/configuration (view source) (protected) Module:Message box/ombox.css (view source) (protected) Module:Text (view source) (template editor protected) Module:Val (view source) (template editor protected) Module:Yesno (view source) (protected) This page is a member of 1 hidden category (help):

Navigation menu Not logged in Talk Contributions Create account Log in TemplateTalk ReadEditView history Search Wikipedia Main page Contents Current events Random article About Wikipedia Contact us Donate Contribute Help Learn to edit Community portal Recent changes Upload file Tools What links here Related changes Special pages Page information

Languages Privacy policyAbout WikipediaDisclaimersContact WikipediaMobile viewDevelopersStatisticsCookie statementWikimedia FoundationPowered by MediaWiki