Template:CHF

From HandWiki
Revision as of 16:15, 18 August 2023 by MainEditor (talk | contribs) (Created page with "<includeonly>{{#ifeq:{{{link|no}}}|yes|{{#if:{{{iso|{{{ISO|}}}}}}|CHF|SFr}}|{{#if:{{{iso|{{{ISO|}}}}}}|CHF|SFr}}}}{{#if:{{{1|}}}| {{{1|}}}}}</includeonly><noinclude>{{documentation}}<!-- Add categories and interwikis to the /doc subpage, not here! --></noinclude>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Template documentation[view] [edit] [history] [purge]

This is a multifunction template. At its simplest, it adds the currency mark "SFr", as recommended by MOS:CURRENCY for many situations. The template can also link to the Swiss franc article.

Usage

This template renders a Swiss currency value with a currency abbreviation, or optionally an ISO code (CHF), linked to the Swiss franc article. The Swiss Federal Chancellery prefers to use only the ISO code (CHF) in preference to the traditional SFr abbreviation[1], but SFr remains in common use as CHF is unintuitive unless one is familiar with Swiss state nomenclature.

{{CHF}} produces SFr (simple currency article link)

{{CHF|123.45}} produces SFr 123.45 (with a non-breaking space between the SFr and the value)

{{CHF|ISO=yes}} produces CHF (simple ISO 4217 identifier)

Suppress link

{{CHF|link=no}} produces SFr (simple currency abbreviation)

{{CHF|link=yes|ISO=yes}} produces CHF (simple ISO 4217 identifier)

References

  1. "Style Guides for English-language translators" (PDF). Berne, Switzerland: Federal Chancellery. 20 September 2017. https://www.bk.admin.ch/bk/en/home/dokumentation/languages/hilfsmittel-textredaktion.html. Retrieved 2019-07-03. 

See also