Template:Angbr: Difference between revisions

1,793 bytes removed ,  9 September 2020
no edit summary
No edit summary
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<span class="Unicode">&lang;</span>{{{1|}}}<span class="Unicode">&rang;</span>
<span class="Unicode">&lang;</span>{{{1|}}}<span class="Unicode">&rang;</span><noinclude>
<noinclude>
{{documentation}}
== Usage ==
[[Category:Meta]]
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:
[[Category:Functional]]
 
*<code><nowiki>{{angbr|ŋ}}</nowiki></code>  displays as  {{angbr|ŋ}}
*<code><nowiki>{{angbr|foo}}</nowiki></code>  displays as  {{angbr|foo}}
 
You can also insert (nest) a text- or character-producing template as the parameter. Examples:
 
*<code><nowiki>{{angbr|{{IPA|ŋ}}}}</nowiki></code> displays as  {{angbr|{{IPA|ŋ}}}}
*<code><nowiki>{{angbr|{{unicode|ŋ}}}}</nowiki></code> displays as  {{angbr|{{unicode|ŋ}}}}
*<code><nowiki>{{angbr|{{date}}}}</nowiki></code> displays as  {{angbr|{{date}}}}
 
 
;Formatting (markup)
Place any HTML or Wiki markup either outside the template or after the pipe (|) symbol as part of the parameter. Examples:
 
*<code>{{angbr|b}}<nowiki>{{angbr|foo}}</nowiki>{{angbr|/b}}</code>  displays as  <b>{{angbr|foo}}</b>
*<code><nowiki>{{angbr|&lt;u&gt;foo&lt;/u&gt;}}</nowiki></code>  displays as  {{angbr|<u>foo</u>}}
*<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:
 
*<code>&lt;font color=red&gt;<nowiki>{{angbr|foo}}</nowiki>{{angbr|/font}}</code>  displays as  <font color=red>{{angbr|foo}}</font>
 
 
;Meaning
Angle brackets (chevrons) have many uses as punctuation marks and symbols. See [[Bracket#Angle brackets|Angle brackets]].
</noinclude>
</noinclude>