Template:Format-money: Difference between revisions

From Zed Wiki

No edit summary
No edit summary
Tag: Reverted
Line 3: Line 3:
</noinclude>
</noinclude>
<nowiki>
<nowiki>
{{#ifeq:{{{1}}}| |
{{if|{{{1|}}}
  $0
    |then found parameter 1|else no parameter 1| ← extra "|" ends else-clause
  |$ {{{1}}}
}}
}}
</nowiki>
</nowiki>

Revision as of 03:11, 8 November 2024

This template formats a number as money (e.g., $1,234.56).

{{if|{{{1|}}} |then found parameter 1|else no parameter 1| ← extra "|" ends else-clause }}