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

From blackwiki
Jump to navigation Jump to search
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 shortcuts |angbr|infix|grapheme}}
+
{{high-use| 2400 }}
 +
{{Template shortcut |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:
+
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>{{angbr|ŋ}}</nowiki></code> displays as {{angbr|ŋ}}
+
*<code><nowiki>{{angle bracket|ŋ}}</nowiki></code> displays as {{angbr|ŋ}}
*<code><nowiki>{{angbr|foo}}</nowiki></code> displays as {{angbr|foo}}
+
*<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>{{angbr|{{IPA|ŋ}}}}</nowiki></code> displays as {{angbr|{{IPA|ŋ}}}}
+
*<code><nowiki>{{angle bracket|{{IPA|ŋ}}}}</nowiki></code> displays as {{angbr|{{IPA|ŋ}}}}
*<code><nowiki>{{angbr|{{date}}}}</nowiki></code> displays as {{angbr|{{date}}}}
+
*<code><nowiki>{{angle bracket|{{date}}}}</nowiki></code> displays as {{angbr|{{date}}}}
 +
 
 +
{{tl|angbr IPA}} is a shorthand for the first example.
 +
 
 +
== Formatting (markup) ==
  
===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>&lt;b&gt;<nowiki>{{angbr|foo}}</nowiki>&lt;/b&gt;</code> displays as <b>{{angbr|foo}}</b>
+
*<code><nowiki>'''{{angle bracket|foo}}'''</nowiki></code> displays as '''{{angbr|foo}}'''
*<code><nowiki>{{angbr|&lt;u&gt;foo&lt;/u&gt;}}</nowiki></code> displays as {{angbr|<u>foo</u>}}
+
*<code><nowiki>{{angle bracket|<u>foo</u>}}</nowiki></code> displays as {{angbr|<u>foo</u>}}
*<code><nowiki>{{angbr|''foo''}}</nowiki></code> displays as {{angbr|''foo''}}
+
*<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 [[Bracket#Angle brackets|Angle brackets]].
 
  
==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

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

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Angle bracket

Places the text inside an angle bracket. Used to indicate graphemes.

Template parameters

ParameterDescriptionTypeStatus
text1

Text to embrace in angle brackets

Example
ψ|Ĥ|ψ
Linesuggested