Template:Cents: Difference between revisions

m Added See also section (to avoid confusion with a similar template)
ArrowHead294 (talk | contribs)
No edit summary
Line 5: Line 5:
It must always be combined with the ''subst:'' keyword. The substitution is already carried out for the page preview. At save, the cent value is being placed into the wiki source.
It must always be combined with the ''subst:'' keyword. The substitution is already carried out for the page preview. At save, the cent value is being placed into the wiki source.


== Usage ==
== Documentation ==
Use this template like this
{{/doc}}
 
<nowiki>{{subst:cents|ratio|precision}}</nowiki>
 
== Example ==
 
this input in the wiki source
<nowiki>{{subst:cents|3|5}}</nowiki>
 
produces the following output
1901.95500
 
== See also ==
* [[Template:Cent]] — a template to insert the cent symbol


[[Category:Substituted templates]]
[[Category:Substituted templates]]
</noinclude>
</noinclude>