Template:Angbr: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<span class="Unicode">⟨</span>{{{1|}}}<span class="Unicode">⟩</span> | <span class="Unicode">⟨</span>{{{1|}}}<span class="Unicode">⟩</span><noinclude> | ||
<noinclude> | |||
== Usage == | == Usage == | ||
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: | 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: | ||
Line 6: | Line 5: | ||
*<code><nowiki>{{angbr|ŋ}}</nowiki></code> displays as {{angbr|ŋ}} | *<code><nowiki>{{angbr|ŋ}}</nowiki></code> displays as {{angbr|ŋ}} | ||
*<code><nowiki>{{angbr|foo}}</nowiki></code> displays as {{angbr|foo}} | *<code><nowiki>{{angbr|foo}}</nowiki></code> displays as {{angbr|foo}} | ||
;Formatting (markup) | ;Formatting (markup) | ||
Line 25: | Line 17: | ||
*<code><font color=red><nowiki>{{angbr|foo}}</nowiki>{{angbr|/font}}</code> displays as <font color=red>{{angbr|foo}}</font> | *<code><font color=red><nowiki>{{angbr|foo}}</nowiki>{{angbr|/font}}</code> displays as <font color=red>{{angbr|foo}}</font> | ||
</noinclude> | </noinclude> |
Revision as of 19:59, 22 July 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⟩
- 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⟩
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:
<font color=red>{{angbr|foo}}⟨/font⟩
displays as ⟨foo⟩