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

From blackwiki
Jump to navigation Jump to search
blackwiki>Gorobay
m (fix HTML)
blackwiki>Edokter
(→‎Usage: bad example)
Line 14: Line 14:
 
*<code><nowiki>{{angbr|{{date}}}}</nowiki></code> displays as  {{angbr|{{date}}}}
 
*<code><nowiki>{{angbr|{{date}}}}</nowiki></code> displays as  {{angbr|{{date}}}}
  
 
+
===Formatting (markup)===
;Formatting (markup)
 
 
Place any HTML or Wiki markup either outside the template or after the pipe (|) symbol as part of the parameter. Examples:
 
Place any HTML or Wiki markup either outside the template or after the pipe (|) symbol as part of the parameter. Examples:
  
Line 22: Line 21:
 
*<code><nowiki>{{angbr|''foo''}}</nowiki></code>  displays as  {{angbr|''foo''}}
 
*<code><nowiki>{{angbr|''foo''}}</nowiki></code>  displays as  {{angbr|''foo''}}
  
''But'', the template does not work properly with an equals symbol (=) in the parameter or anywhere inside the template. Therefore, always place tags that contain an equals symbol ''outside'' the template. Example:
+
The template does not work properly with an equals sign (=) in the parameter. Start the parameter with <code>1=</code> to circumvent this problem.
 
 
*<code>&lt;font color=red&gt;<nowiki>{{angbr|foo}}</nowiki>&lt;/font&gt;</code> displays as <font color=red>{{angbr|foo}}</font>
 
 
 
  
;Meaning
+
===Meaning===
 
Angle brackets (chevrons) have many uses as punctuation marks and symbols. See [[Bracket#Angle brackets|Angle brackets]].
 
Angle brackets (chevrons) have many uses as punctuation marks and symbols. See [[Bracket#Angle brackets|Angle brackets]].
  

Revision as of 12:42, 6 December 2014

Usage

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 ⟨10 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.

Redirects

See also