Difference between revisions of "Template:Angle bracket/doc"
blackwiki>Edokter (Duplicate) |
m (46 revisions imported) |
||
| (14 intermediate revisions by 10 users not shown) | |||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!-- Categories at the bottom of this page, please; interwikis at Wikidata. --> | <!-- Categories at the bottom of this page, please; interwikis at Wikidata. --> | ||
| − | {{Template | + | {{high-use| 2400 }} |
| + | {{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>{{angbr|foo}}</nowiki></code> | + | *<code><nowiki>{{angle bracket|foo}}</nowiki></code> displays as {{angbr|foo}} |
| + | *<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. | ||
| + | |||
| + | == 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: | ||
| − | *<code> | + | *<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 == | |
| − | |||
| − | ==See also== | + | Angle brackets (chevrons) have many uses as punctuation marks and symbols. See [[Angle brackets]]. |
| + | |||
| + | == See also == | ||
| + | |||
| + | * {{tl|abs}} | ||
* {{tl|Circumfix}}: linguistic affix set off with reversed angle brackets | * {{tl|Circumfix}}: linguistic affix set off with reversed angle brackets | ||
* {{tl|Bracket}}: square brackets | * {{tl|Bracket}}: square brackets | ||
* {{tl|Braket}}, {{tl|Bra-ket}}, {{tl|Bra}}, {{tl|Ket}}: Dirac notation | * {{tl|Braket}}, {{tl|Bra-ket}}, {{tl|Bra}}, {{tl|Ket}}: Dirac notation | ||
* {{tl|Langle}}, {{tl|Rangle}}: single brackets | * {{tl|Langle}}, {{tl|Rangle}}: single brackets | ||
| + | * {{tl|norm}} | ||
| + | * {{tl|pars}} | ||
| + | |||
| + | == TemplateData == | ||
| + | {{TemplateData header}} | ||
| + | <templatedata> | ||
| + | { | ||
| + | "params": { | ||
| + | "1": { | ||
| + | "label": "text", | ||
| + | "description": "Text to embrace in angle brackets", | ||
| + | "example": "ψ|Ĥ|ψ", | ||
| + | "type": "line", | ||
| + | "suggested": true | ||
| + | } | ||
| + | }, | ||
| + | "description": "Places the text inside an angle bracket. Used to indicate graphemes." | ||
| + | } | ||
| + | </templatedata> | ||
| − | <includeonly> | + | <includeonly>{{Sandbox other|| |
<!-- Categories go here, and interwikis go in Wikidata --> | <!-- Categories go here, and interwikis go in Wikidata --> | ||
[[Category:Language formatting and function templates]] | [[Category:Language formatting and function templates]] | ||
[[Category:Character templates]] | [[Category:Character templates]] | ||
| − | </includeonly> | + | [[Category:Mathematical formatting templates]] |
| + | }}</includeonly> | ||
Latest revision as of 06:59, 22 October 2020
| 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 ⟨11 November 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
- {{abs}}
- {{Circumfix}}: linguistic affix set off with reversed angle brackets
- {{Bracket}}: square brackets
- {{Braket}}, {{Bra-ket}}, {{Bra}}, {{Ket}}: Dirac notation
- {{Langle}}, {{Rangle}}: single brackets
- {{norm}}
- {{pars}}
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 |