Template:Control code link/doc

This is an old revision of this page, as edited by HarJIT (talk | contribs) at 17:16, 13 January 2020. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Used for linking mnemonic codes for control codes, whitespace characters and format effectors, as well as any other characters requiring reference by mnemonics in the manner of control codes (such as the Wansung and N-byte Hangul fillers). The intent is to allow code charts (including Unicode block charts and more especially Unicode mapping charts) and other references to control code mnemonics to link to the destination which best explains that character, and to allow these links to be changed across the board if more detailed information is added elsewhere.

There is one mandatory parameter, which is the mnemonic. A few exceptions to note:

  • The mnemonic FS is used for two different controls in different sets: use ASCII:FS for File Separator and EBCDIC:FS for the S/360 CPU control Field Separator.
  • The mnemonic OSC is used for two different controls in different sets: use ANSI:OSC or ECMA:OSC for Operating System Command and DIN:OSC for Optional Syllabification Control.
  • The mnemonic SOS is used for two different controls in different sets: use ANSI:SOS or ECMA:SOS for Start of String and EBCDIC:SOS for the S/360 CPU control Start of Significance.

The default link label is the mnemonic, with anything before the last colon removed (so, without any ASCII/ANSI/ECMA/ISO/EBCDIC prefix). This can be overridden by the optional second positional parameter, which should contain the desired link label wikitext.

An optional internal=1 parameter may be provided, which will cause the link to be formatted in the style of {{Glossary link internal}}. This is appropriate if (a) the link is expected to go to an anchor in the same article, and (b) it isn't somewhere (such as a code chart) where a blue link would be expected in all cases. This can help avoid a "sea of blue" effect in a page documenting a large number of such characters.