|
|
(6 intermediate revisions by 2 users not shown) |
Line 1: |
Line 1: |
| <includeonly><span class="val"><span class="left-delim">⟨</span>{{trim| {{{1|{{{text|0}}}}}} }}<span class="right-delim">]</span></span></includeonly><noinclude> | | <includeonly>{{#if: {{{legend|}}}|[[val]]: }}{{bra|{{{1|0}}}}}</includeonly><noinclude> |
| This template eases using [[val notation]]: it puts the right brackets (<code>⟨</code> and <code>]</code>) around its arguments (it also removes surrounding space).
| | {{documentation}} |
|
| |
|
| == Usage example ==
| | [[Category:Formatting templates]] |
| | |
| ; You type
| |
| : <code><nowiki>{{val| 31 49 72 87 }}</nowiki></code> or the equivalent
| |
| : <code><nowiki>{{val|text= 31 49 72 87 }}</nowiki></code>
| |
| (the option of adding spaces supports readability of the wiki markup)
| |
| | |
| ; You get (rendered)
| |
| : <span class="val"><span class="left-delim">⟨</span>{{trim| 31 49 72 87 }}<span class="right-delim">]</span></span>
| |
| | |
| == Technical Note ==
| |
| | |
| [[Code point]] [https://www.compart.com/unicode/U+27E8 U+27E8] is used for the left angle bracket <code>⟨</code>, the ASCII approximation is less-than symbol (<code><</code> or <code>&lt;</code>).
| |
| | |
| == See also ==
| |
| | |
| * [[Template:Multival]]
| |
| * [[Template:Monzo]]
| |
| * [[Template:Rbrack]]
| |
| * [[Template:Trim]]
| |
| * [[MediaWiki:Common.css]] … contains style definition(s) for the <code>val class</code>
| |
| | |
| [[Category:Templates]] | |
| </noinclude> | | </noinclude> |