Difference between revisions of "Template:ShowNoD"
From Istaria Lexica
m (Elteria Shadowhand moved page Template:SNoD to Template:ShowNoD without leaving a redirect) |
|||
(15 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>{{#if:{{{1|}}}|{{#iferror:{{#ifexpr:{{formatnum:{{{1}}}|R}} > 0|{{formatnum:{{{1}}}|R}}|{{#if:{{{2|}}}|{{{2}}}|0}}}}|{{#if:{{{2|}}}|{{{2}}}|0}}}}|{{#if:{{{2|}}}|{{{2}}}|0}}}}</includeonly><noinclude>{{Documentation}}[[Category:Utility Templates]]</noinclude> | + | <includeonly>{{#if:{{{1|}}}|{{#iferror:{{#ifexpr:{{formatnum:{{{1}}}|R}}>0|{{formatnum:{{{1}}}|R}}|{{#if:{{{2|}}}|{{{2}}}|0}}}}|{{#if:{{{2|}}}|{{{2}}}|0}}}}|{{#if:{{{2|}}}|{{{2}}}|0}}}}</includeonly><noinclude>{{Documentation}}[[Category:Utility Templates]]</noinclude> |
Latest revision as of 16:46, 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)