Template:Cent/doc: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
Notice about the shortcut
ArrowHead294 (talk | contribs)
mNo edit summary
 
(11 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{dochead}}
{{dochead}}{{substitute|no}}
This template inserts a thin non-breaking space followed by the ¢ symbol with a link to the [[cent]] article.
This template inserts a narrow no-break space ([https://www.compart.com/en/unicode/U+202F U+202F]) followed by the cent symbol with a link to the [[cent|article about cents]].


=== Usage ===
=== Usage ===
Use as follows:
Use as follows:


: <code><nowiki>{{cent}}</nowiki></code>
<pre>{{cent}}</pre>
 
: '''Note''': you can use <code><nowiki>{{c}}</nowiki></code> as a shortcut.


==== Example ====
==== Example ====
: <code><nowiki>50{{cent}}</nowiki></code>
<pre>50{{cent}}</pre>


will look like this:
will look like this:


: &#x202F;[[Cent|&#xA2;]]
50{{ {{ROOTPAGENAME}} }}


=== See also ===
=== See also ===
* [[Template: Cents]] &ndash; A substituted template to calculate the cents value of a ratio.
* [[Template: C]] – to print the cent sign without a link to the article
* [[Template: Cents]] – a substituted template to calculate the cents value of a ratio.

Latest revision as of 14:12, 20 May 2025

This template should not be substituted.

This template inserts a narrow no-break space (U+202F) followed by the cent symbol with a link to the article about cents.

Usage

Use as follows:

{{cent}}

Example

50{{cent}}

will look like this:

50 ¢

See also

  • Template: C – to print the cent sign without a link to the article
  • Template: Cents – a substituted template to calculate the cents value of a ratio.