Template:Val: Difference between revisions
Jump to navigation
Jump to search
m +link to template:multival |
m Wikipedia has an article on code point and we can link directly |
||
Line 3: | Line 3: | ||
== Usage example == | == Usage example == | ||
; You type | ; You type | ||
: <code><nowiki>{{val| 31 49 72 87 }}</nowiki></code> or the equivalent | : <code><nowiki>{{val| 31 49 72 87 }}</nowiki></code> or the equivalent | ||
Line 13: | Line 12: | ||
== Technical Note == | == Technical Note == | ||
[[Wikipedia: Code point|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>). | |||
[[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 == | == See also == | ||
* [[Template:Multival]] | * [[Template:Multival]] | ||
* [[Template:Monzo]] | * [[Template:Monzo]] |
Revision as of 20:14, 3 November 2021
This template eases using val notation: it puts the right brackets (⟨
and ]
) around its arguments (it also removes surrounding space).
Usage example
- You type
{{val| 31 49 72 87 }}
or the equivalent{{val|text= 31 49 72 87 }}
(the option of adding spaces supports readability of the wiki markup)
- You get (rendered)
- ⟨31 49 72 87]
Technical Note
Code point U+27E8 is used for the left angle bracket ⟨
, the ASCII approximation is less-than symbol (<
or <
).
See also
- Template:Multival
- Template:Monzo
- Template:Rbrack
- Template:Trim
- MediaWiki:Common.css … contains style definition(s) for the
val class