Difference between revisions of "Template:ShowNoD"
From Istaria Lexica
Line 1: | Line 1: | ||
<includeonly>{{#if:{{{1|}}}| | <includeonly>{{#if:{{{1|}}}| | ||
{{#iferror: | {{#iferror: | ||
− | {{#ifexpr:{{formatnum:{{{1}}}|R}} > 0|{{{1}}}|{{#if:{{{2|}}}|{{{2}}}|0}}}}| | + | {{#ifexpr:{{formatnum:{{{1}}}|R}} > 0|{{{1}}}|{{#if:{{{2|}}}|a{{{2}}}|0}}}}| |
− | {{#if:{{{2|}}}|{{{2}}}|0}}| | + | {{#if:{{{2|}}}|b{{{2}}}|0}}| |
− | {{#if:{{{2|}}}|{{{2}}}|0}}}}}}</includeonly><noinclude>{{Documentation}}[[Category:Utility Templates]]</noinclude> | + | {{#if:{{{2|}}}|c{{{2}}}|0}}}}}}</includeonly><noinclude>{{Documentation}}[[Category:Utility Templates]]</noinclude> |
Revision as of 12:23, 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)