Template:Val: Difference between revisions
m fixed closing span |
Reworked: inline CSS moved to external CSS site+user, usage text much shorter, technical details moved down |
||
Line 1: | Line 1: | ||
<includeonly><span | <includeonly><span class="val"><span class="left-delim">⟨</span>{{trim| {{{1|{{{text|0}}}}}} }}<span class="right-delim">]</span></span></includeonly><noinclude> | ||
This template eases using [[ | This template eases using [[val notation]]: it puts the right brackets (<code>⟨</code> and <code>]</code>) around its arguments (it also removes surrounding space). | ||
Usage example | == Usage example == | ||
; 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) | |||
<span | ; 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:Monzo]] | |||
* [[Template:Rbrack]] | |||
* [[Template:Trim]] | |||
* [[MediaWiki:Common.css]] | |||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> |