Template:Monzo: Difference between revisions
mNo edit summary |
styling improved, next step could be to copy the layout provided by the math extension |
||
Line 1: | Line 1: | ||
<includeonly><span style="white-space: nowrap; padding: 0 0. | <includeonly><span style="white-space: nowrap; background-color:#f8f9ff"><span style="padding-left: 0.15em; padding-right: 0.15">[</span>{{trim| {{{1|{{{text|0}}}}}} }}<span style="padding-left: 0.15em; padding-right: 0.15em">⟩</span></span></includeonly><noinclude> | ||
This template eases using [[Monzo|monzo notation]], because the left angle bracket (<code>[</code>) controls specific wiki functions and the greater sign (<code>></code>) - used as a surrogate for right angle bracket <code>⟩</code> ([[Unicode]] code point [https://www.compart.com/de/unicode/U+27E9 U+27E9]) - has a special meaning in HTML and also in the wiki text. | This template eases using [[Monzo|monzo notation]], because the left angle bracket (<code>[</code>) controls specific wiki functions and the greater sign (<code>></code>) - used as a surrogate for right angle bracket <code>⟩</code> ([[Unicode]] code point [https://www.compart.com/de/unicode/U+27E9 U+27E9]) - has a special meaning in HTML and also in the wiki text. | ||
Usage example: | Usage example: | ||
<nowiki>{{Monzo|-19 12}}</nowiki> | <nowiki>{{Monzo| -19 12 }}</nowiki> | ||
...will be rendered as | ...will be rendered as | ||
[-19 12⟩ | <span style="white-space: nowrap; background-color:#f8f9ff"><span style="padding-left: 0.15em; padding-right: 0.15">[</span>{{trim| -19 12 }}<span style="padding-left: 0.15em; padding-right: 0.15em">⟩</span></span> | ||
:''see also [[template:val]]'' | :''see also [[template:val]]'' |