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

From blackwiki
Jump to navigation Jump to search
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 shortcuts |angbr|infix|grapheme}}
+
{{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>{{angbr|ψ{{!}}Ĥ{{!}}ψ}}</nowiki></code> displays as {{angbr|ψ{{!}}Ĥ{{!}}ψ}}
+
*<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.
 
{{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>'''{{angbr|foo}}'''</nowiki></code> displays as '''{{angbr|foo}}'''
+
*<code><nowiki>'''{{angle bracket|foo}}'''</nowiki></code> displays as '''{{angbr|foo}}'''
*<code><nowiki>{{angbr|<u>foo</u>}}</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]].
+
Angle brackets (chevrons) have many uses as punctuation marks and symbols. See [[Angle brackets]].
  
 
==See also==
 
==See also==
Line 36: Line 36:
  
 
== TemplateData ==
 
== TemplateData ==
{{TemplateDataHeader}}
+
{{TemplateData header}}
 
<templatedata>
 
<templatedata>
 
{
 
{

Revision as of 13:39, 13 September 2019

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

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