Template:Cents/doc: Difference between revisions

ArrowHead294 (talk | contribs)
No edit summary
ArrowHead294 (talk | contribs)
mNo edit summary
Line 3: Line 3:
Use this template like this
Use this template like this


: <code><nowiki>{{subst:cents|ratio|precision}}</nowiki></code>
: <code>{{((}}cents{{pipe}}ratio{{pipe}}precision{{))}}</code>


=== Example ===
=== Example ===
This input in the wiki source
This input in the wiki source
: <code><nowiki>{{subst:cents|3|5}}</nowiki></code>
: <code>{{((}}cents{{pipe}}3{{pipe}}5{{))}}</code>


produces the following output
produces the following output
: 1901.95500
: {{cents|3|5}}


=== See also ===
=== See also ===
* [[Template:Cent]] &ndash; A template to insert the cent symbol
* [[Template:Cent]] &ndash; A template to insert the cent symbol