Template:Monzo: Difference between revisions

Xenwolf (talk | contribs)
link to site-wide common.css
ArrowHead294 (talk | contribs)
mNo edit summary
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><span class="monzo"><span class="left-delim">&#91;</span>{{trim| {{{1|{{{text|0}}}}}} }}<span class="right-delim">&#x27E9;</span></span></includeonly><noinclude>
<includeonly>{{#if: {{{legend|}}}|[[monzo]]:&nbsp;}}{{ket|{{{1|0}}}}}</includeonly><noinclude>
This template eases using [[monzo notation]]: it puts the right brackets (<code>&#91;</code> and <code>&#x27E9;</code>) around its arguments (it also removes surrounding space).
This '''monzo''' template eases typing [[monzo]]s by putting ket notation (<code>[</code> and <code>&#x27E9;</code>) around its arguments and removing surrounding spaces. You may optionally include a legend.  


== Usage example ==
{{documentation}}


; You type
[[Category:Formatting templates]]
: <code><nowiki>{{monzo| -19 12 }}</nowiki></code> or the equivalent
: <code><nowiki>{{monzo|text= -19 12 }}</nowiki></code>
(the option of adding spaces supports readability of the wiki markup)


; You get (rendered)
<!-- Interwiki -->
: <span class="monzo"><span class="left-delim">&#91;</span>{{trim| -19 12 }}<span class="right-delim">&#x27E9;</span></span>
 
== Technical Note ==
 
[[Code point]] [https://www.compart.com/unicode/U+27E9 U+27E9] is used for the right angle bracket <code>⟩</code>, the ASCII approximation is the greater-than symbol (<code>&gt;</code> or <code>&amp;gt;</code>).
 
== See also ==
 
* [[Template:Val]]
* [[Template:Lbrack]]
* [[Template:Trim]]
* [[MediaWiki:Common.css]] ... contains style definition(s) for the <code>monzo class</code>
 
[[Category:Templates]]
 
<!-- interwiki -->
[[de:Vorlage:Monzo]]
[[de:Vorlage:Monzo]]
[[es:Plantilla:Monzo]]
[[es:Plantilla:Monzo]]
</noinclude>
</noinclude>