Difference between revisions of "Template:ShowNoD"
From Istaria Lexica
(Created page with "<includeonly>{{#if:{{{1|}}}|{{#ifexpr:{{formatnum:{{{1}}}|R}} > 0|{{{1}}}|{{#if:{{{2|}}}|{{{2}}}|0}}|{{#if:{{{2|}}}|{{{2}}}|0}}}}}}</includeonly><noinclude>{{Documentation}}...") |
|||
Line 1: | Line 1: | ||
− | <includeonly>{{#if:{{{1|}}}|{{#ifexpr:{{formatnum:{{{1}}}|R}} > 0|{{{1}}}|{{#if:{{{2|}}}|{{{2}}}|0}}|{{#if:{{{2|}}}|{{{2}}}|0}}}}}}</includeonly><noinclude>{{Documentation}}[[Category:Utility Templates]]</noinclude> | + | <includeonly>{{#if:{{{1|}}}| |
+ | {{#iferror: | ||
+ | {{#ifexpr:{{formatnum:{{{1}}}|R}} > 0|{{{1}}}|{{#if:{{{2|}}}|{{{2}}}|0}}}}| | ||
+ | {{#if:{{{2|}}}|{{{2}}}|0}}| | ||
+ | {{#if:{{{2|}}}|{{{2}}}|0}}}}}}</includeonly><noinclude>{{Documentation}}[[Category:Utility Templates]]</noinclude> |
Revision as of 12:22, 26 September 2022
Template documentation (for the template shown above, sometimes hidden or invisible)
Description[edit]
Verifies if the given parameter is a valid number, else it shows a default (0). You can pass an alternative default if you wish to.
- Try out this template in your sandbox
- Find pages using this template
Parameters[edit]
{{ShowNoD|3233}} {{ShowNoD|notanumber|unknown}} {{ShowNoD|notanumber|5}} {{ShowNoD|0|zero}}
Visit Template:ShowNoD/doc to edit this text. (How to: document correctly)