Template:Cents/doc: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
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

Revision as of 16:05, 28 August 2024

Usage

Use this template like this

{{cents|ratio|precision}}

Example

This input in the wiki source

{{cents|3|5}}

produces the following output

This template must be substituted. Replace {{Cents ...}} with {{subst:Cents ...}}.

See also