Template:MUFI/doc

From Wikipedia, the free encyclopedia
Jump to: navigation, search

Usage[edit]

This template sets the font for its argument to one which is known to support Medieval Unicode Font Initiative (MUFI) special symbols. The argument is specified using HTML character encoding, either in decimal (e.g. {) or hexadecimal (e.g. ©). Do not paste it as plain text, since some Wikpedia editors will choke on such PUA characters. Example:

Purpose[edit]

This template was created to allow easy switching to fonts that support characters in the Private Use Area of Unicode according to conventions laid out by the Medieval Unicode Font Initiative. Browsers should not use different fonts, because they may use the same coded postitions for completely different characters and hence glyphs.

The fonts selected are designed to maximize the probability of rendering MUFI characters correctly. They are specified in descending order of MUFI support.

Internals[edit]

The source for the template is:

<span class="MUFI mufi" style="font-family: Cardo, Palemonas, Palemonas MUFI, Andron Scriptor, Andron Scriptor Web, LeedsUni, Alphabetum, ALPHABETUM Unicode  Junicode, Titus Cyberbit, TITUS Cyberbit Basic, ALPHA-Demo">{{PUA|{{{1|}}}}}</span>{{#ifeq:{{{2|}}}|!|<sup class="noprint Inline-Template" style="white-space: nowrap;">&#91;''[[MUFI|may not display]]''&#93;</sup>}}

You can override this with your own MUFI class definition in your personal stylesheet (e.g. User:username/common.css).

Template data[edit]

This is the TemplateData documentation for this template used by VisualEditor and other tools.

MUFI

Set the font so that MUFI PUA characters are more likely to work.

Template parameters
Parameter Description Type Default Auto value Status
Character 1 The code, either in decimal, hexadecimal or symbol form. line empty empty optional
Note 2 A literal exclamation mark ‘!’ enables an inline warning message. line empty empty optional

See also[edit]

  • {{Unicode}} – Similar for regular Unicode characters with spotty support in common fonts.
  • {{Script}} – Selects font by ISO script identifier.
  • {{IPA}} – To format symbols of the International Phonetic Alphabet
  • {{PUA}} – To mark characters from the Private Use Area that should be retained
  • {{transl}} –– Unified transliteration template