Template:Val: Difference between revisions
m Wikipedia has an article on code point and we can link directly |
Simply call Template: Bra to do the rendering |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly>{{#if: {{{legend|}}} | [[val]]: }}{{bra| {{{1|0}}} }}</includeonly><noinclude> | ||
This template eases | This template eases typing [[val]]s: it puts bra notation (<code>⟨</code> and <code>]</code>) around its arguments (it also removes surrounding spaces), and you may optionally include a legend. | ||
== Usage example == | == Usage example == | ||
; You type | ; You type | ||
: <code><nowiki>{{val| 31 49 72 87 }}</nowiki></code> | : <code><nowiki>{{val| 31 49 72 87 }}</nowiki></code> | ||
: <code><nowiki>{{val| | : <code><nowiki>{{val|legend=1| 31 49 72 87 }}</nowiki></code> | ||
:'''Tip''': adding spaces improves readability of the wiki markup. | |||
; You get (rendered) | ; You get (rendered) | ||
: | : {{{{PAGENAME}}| 31 49 72 87 }} | ||
: {{{{PAGENAME}}|legend=1| 31 49 72 87 }} | |||
== Technical | == Technical note == | ||
[[ | This template calls [[Template: Bra]] to render the brackets. | ||
== See also == | == See also == | ||
* [[Template:Multival]] | * [[Template: Multival]] | ||
* [[Template:Monzo]] | * [[Template: Monzo]] | ||
* [[Template: | * [[Template: Bra]] | ||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> |