Difference between revisions of "Template:Angle bracket/doc"
blackwiki>Nardog m |
blackwiki>Colonies Chris (direct call of subtemplates; allow link redirects) |
||
Line 2: | Line 2: | ||
<!-- Categories at the bottom of this page, please; interwikis at Wikidata. --> | <!-- Categories at the bottom of this page, please; interwikis at Wikidata. --> | ||
{{high-use| 2400 }} | {{high-use| 2400 }} | ||
− | {{Template | + | {{Template shortcut |angbr|infix|grapheme}} |
− | Use this template to generate a pair of left (open) and right (close) [[ | + | 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 (computer programming)|parameter]] after the pipe (|) symbol. Examples: |
− | *<code><nowiki>{{ | + | *<code><nowiki>{{angle bracket|ŋ}}</nowiki></code> displays as {{angbr|ŋ}} |
− | *<code><nowiki>{{ | + | *<code><nowiki>{{angle bracket|foo}}</nowiki></code> displays as {{angbr|foo}} |
− | *<code><nowiki>{{ | + | *<code><nowiki>{{angle bracket|ψ{{!}}Ĥ{{!}}ψ}}</nowiki></code> displays as {{angbr|ψ{{!}}Ĥ{{!}}ψ}} |
You can also insert (nest) a text- or character-producing template as the parameter. Examples: | You can also insert (nest) a text- or character-producing template as the parameter. Examples: | ||
− | *<code><nowiki>{{ | + | *<code><nowiki>{{angle bracket|{{IPA|ŋ}}}}</nowiki></code> displays as {{angbr|{{IPA|ŋ}}}} |
− | *<code><nowiki>{{ | + | *<code><nowiki>{{angle bracket|{{date}}}}</nowiki></code> displays as {{angbr|{{date}}}} |
{{tl|angbr IPA}} is a shorthand for the first example. | {{tl|angbr IPA}} is a shorthand for the first example. | ||
Line 20: | Line 20: | ||
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: | ||
− | *<code><nowiki>'''{{ | + | *<code><nowiki>'''{{angle bracket|foo}}'''</nowiki></code> displays as '''{{angbr|foo}}''' |
− | *<code><nowiki>{{ | + | *<code><nowiki>{{angle bracket|<u>foo</u>}}</nowiki></code> displays as {{angbr|<u>foo</u>}} |
− | *<code><nowiki>{{ | + | *<code><nowiki>{{angle bracket|''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. | 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== | ==Meaning== | ||
− | Angle brackets (chevrons) have many uses as punctuation marks and symbols. See [[ | + | Angle brackets (chevrons) have many uses as punctuation marks and symbols. See [[Angle brackets]]. |
==See also== | ==See also== | ||
Line 36: | Line 36: | ||
== TemplateData == | == TemplateData == | ||
− | {{ | + | {{TemplateData header}} |
<templatedata> | <templatedata> | ||
{ | { |
Revision as of 13:39, 13 September 2019
![]() | This is a documentation subpage for Template:Angle bracket. It contains usage information, categories and other content that is not part of the original template page. |
![]() | This template is used on approximately 2,100 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
Transclusion count updated automatically (see documentation). |
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:
{{angle bracket|ŋ}}
displays as ⟨ŋ⟩{{angle bracket|foo}}
displays as ⟨foo⟩{{angle bracket|ψ{{!}}Ĥ{{!}}ψ}}
displays as ⟨ψ|Ĥ|ψ⟩
You can also insert (nest) a text- or character-producing template as the parameter. Examples:
{{angle bracket|{{IPA|ŋ}}}}
displays as ⟨ŋ⟩{{angle bracket|{{date}}}}
displays as ⟨15 June 2025⟩
{{angbr IPA}} is a shorthand for the first example.
Formatting (markup)
Place any HTML or Wiki markup either outside the template or after the pipe (|) symbol as part of the parameter. Examples:
'''{{angle bracket|foo}}'''
displays as ⟨foo⟩{{angle bracket|<u>foo</u>}}
displays as ⟨foo⟩{{angle bracket|''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
- {{Circumfix}}: linguistic affix set off with reversed angle brackets
- {{Bracket}}: square brackets
- {{Braket}}, {{Bra-ket}}, {{Bra}}, {{Ket}}: Dirac notation
- {{Langle}}, {{Rangle}}: single brackets
TemplateData
TemplateData for Angle bracket
Places the text inside an angle bracket. Used to indicate graphemes.
Parameter | Description | Type | Status | |
---|---|---|---|---|
text | 1 | Text to embrace in angle brackets
| Line | suggested |