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

From blackwiki
Jump to navigation Jump to search
blackwiki>Edokter
(Duplicate)
(Replaced content with 'MT')
Line 1: Line 1:
{{Documentation subpage}}
+
MT
<!-- Categories at the bottom of this page, please; interwikis at Wikidata. -->
 
{{Template shortcuts |angbr|infix|grapheme}}
 
 
 
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|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|{{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>&lt;b&gt;<nowiki>{{angbr|foo}}</nowiki>&lt;/b&gt;</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''}}
 
 
 
The template does not work properly with an equals sign (=) in the parameter. Start the parameter with <code>1=</code> to circumvent this problem.
 
 
 
===Meaning===
 
Angle brackets (chevrons) have many uses as punctuation marks and symbols. See [[Bracket#Angle brackets|Angle brackets]].
 
 
 
==See also==
 
* {{tl|Circumfix}}: linguistic affix set off with reversed angle brackets
 
* {{tl|Bracket}}: square brackets
 
* {{tl|Braket}}, {{tl|Bra-ket}}, {{tl|Bra}}, {{tl|Ket}}: Dirac notation
 
* {{tl|Langle}}, {{tl|Rangle}}: single brackets
 
 
 
<includeonly>
 
<!-- Categories go here, and interwikis go in Wikidata -->
 
[[Category:Language formatting and function templates]]
 
[[Category:Character templates]]
 
</includeonly>
 

Revision as of 21:59, 13 August 2016

MT