Difference between revisions of "Template:Angle bracket/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Kremmen
blackwiki>Edokter
(Undid revision 684249617 by Kremmen (talk) What happens on your system is not the norm.)
Line 3: Line 3:
 
{{Template shortcuts |angbr|infix}}
 
{{Template shortcuts |angbr|infix}}
  
Use this template to generate a pair of left (open) and right (close) [[Bracket#Angle brackets|angle brackets]] (also called ''chevrons'') that will not necessarily display correctly on operating systems and browsers that normally cannot display these characters when they are used in text. (e.g. The following will not display as angle brackets for Firefox users under WinXP.) The angle brackets will surround whatever you insert as a [[Parameter (computer programming)|parameter]] after the pipe (|) symbol. Examples:
+
Use this template to generate a pair of left (open) and right (close) [[Bracket#Angle brackets|angle brackets]] (also called ''chevrons'') that will display correctly, even on operating systems and browsers that normally cannot display these characters when they are used in text. The angle brackets will surround whatever you insert as a [[Parameter (computer programming)|parameter]] after the pipe (|) symbol. Examples:
  
 
*<code><nowiki>{{angbr|ŋ}}</nowiki></code>  displays as  {{angbr|ŋ}}
 
*<code><nowiki>{{angbr|ŋ}}</nowiki></code>  displays as  {{angbr|ŋ}}

Revision as of 16:22, 5 October 2015

Template:Template shortcuts

Use this template to generate a pair of left (open) and right (close) angle brackets (also called chevrons) that will display correctly, even on operating systems and browsers that normally cannot display these characters when they are used in text. The angle brackets will surround whatever you insert as a parameter after the pipe (|) symbol. Examples:

  • {{angbr|ŋ}} displays as ⟨ŋ⟩
  • {{angbr|foo}} displays as ⟨foo⟩

You can also insert (nest) a text- or character-producing template as the parameter. Examples:

  • {{angbr|{{IPA|ŋ}}}} displays as ⟨ŋ
  • {{angbr|{{unicode|ŋ}}}} displays as ⟨Template:Unicode
  • {{angbr|{{date}}}} displays as ⟨2 January 2026⟩

Formatting (markup)

Place any HTML or Wiki markup either outside the template or after the pipe (|) symbol as part of the parameter. Examples:

  • <b>{{angbr|foo}}</b> displays as ⟨foo⟩
  • {{angbr|<u>foo</u>}} displays as ⟨foo
  • {{angbr|''foo''}} displays as ⟨foo

The template does not work properly with an equals sign (=) in the parameter. Start the parameter with 1= to circumvent this problem.

Meaning

Angle brackets (chevrons) have many uses as punctuation marks and symbols. See Angle brackets.

See also