Template:Cents/doc: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
ArrowHead294 (talk | contribs)
ArrowHead294 (talk | contribs)
mNo edit summary
Line 10: Line 10:


produces the following output
produces the following output
: {{cents|3/2|5}}
: {{{{ROOTPAGENAME}}|3/2|5}}


Intervals can even be typed as evaluable mathematical expressions. For example:
Intervals can even be typed as evaluable mathematical expressions. For example:
Line 16: Line 16:


gives:
gives:
: {{cents|3^12/2^19|5}}
: {{{{ROOTPAGENAME}}|3^12/2^19|5}}


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

Revision as of 14:18, 3 September 2024

Usage

Use this template like this

{{cents|ratio|precision}}

Example

This input in the wiki source

{{cents|3/2|5}}

produces the following output

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

Intervals can even be typed as evaluable mathematical expressions. For example:

{{cents|3^12/2^19|5}}

gives:

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

See also