Template:Cents/doc: Difference between revisions
ArrowHead294 (talk | contribs) mNo edit summary |
ArrowHead294 (talk | contribs) mNo edit summary |
||
Line 5: | Line 5: | ||
Use this template like this | Use this template like this | ||
<pre>{{subst: cents|ratio| | <pre>{{subst: cents|ratio|prec}}</pre> | ||
=== Example === | === Example === | ||
Line 21: | Line 21: | ||
: 23.46001 | : 23.46001 | ||
Add in a lowercase C to the end of the expression to add {{tlx|c}} or uppercase C to add {{tlx|cent}}: | |||
<pre>{{subst: cents|5/4c|2}}</pre> | |||
gives: | |||
: 386.31{{c}} | |||
<pre>{{subst: cents|5/4C|2}}</pre> | |||
gives: | |||
: 386.31{{cent}} | |||
=== See also === | === See also === | ||
* [[Template:Cent]], [[Template:C]] – templates to insert the cent symbol, with and without (respectively) a link to [[cent|the article about cents]]. | * [[Template:Cent]], [[Template:C]] – templates to insert the cent symbol, with and without (respectively) a link to [[cent|the article about cents]]. |