Template:Rket/doc: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
ArrowHead294 (talk | contribs)
Docpage
 
m Style
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{dochead}}
{{Dochead}}
This template eases using [[Dave Keenan]] and [[Douglas Blumeyer]]'s [[extended bra–ket notation #Variant including curly and square brackets|variation]] on [[extended bra–ket notation]]: It puts a left square bracket <code>&#91;</code> and a right curly bracket <code>&#125;</code> around its arguments and removes surrounding spaces.
 
=== Usage example ===
=== Usage example ===
; You type
; You type
Line 5: Line 7:


; You get
; You get
: <span class="monzo"><span class="left-delim">&#91;</span>{{trim| -19 12 }}<span class="right-delim">&#x7d;</span></span>
: {{{{ROOTPAGENAME}}| -19 12 }}
 
{{Spaces note}}


=== See also ===
=== See also ===
* [[Template: Ket]]
* [[Template: Ket]] – puts ket notation around its argument
* [[Template: Rbra]] – puts rounded bra notation around its argument
* [[Template: Trim]]
* [[MediaWiki: Common.css]] – contains style definition(s) for the <code>left-delim</code> and <code>right-delim</code> classes.

Latest revision as of 07:26, 30 January 2026

This template eases using Dave Keenan and Douglas Blumeyer's variation on extended bra–ket notation: It puts a left square bracket [ and a right curly bracket } around its arguments and removes surrounding spaces.

Usage example

You type
{{rket| -19 12 }}
You get
[-19 12}
💡Tip: Adding spaces improves readability of the markup.

See also