Template:Val: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
Simply call Template: Bra to do the rendering
mNo edit summary
Line 2: Line 2:
This template eases typing [[val]]s: it puts bra notation (<code>&#x27E8;</code> and <code>&#93;</code>) around its arguments (it also removes surrounding spaces), and you may optionally include a legend.  
This template eases typing [[val]]s: it puts bra notation (<code>&#x27E8;</code> and <code>&#93;</code>) around its arguments (it also removes surrounding spaces), and you may optionally include a legend.  


== Usage example ==
== Usage ==
; You type
; You type
: <code><nowiki>{{val| 31 49 72 87 }}</nowiki></code>
: <code><nowiki>{{val| 31 49 72 87 }}</nowiki></code>
Line 17: Line 17:


== See also ==
== See also ==
* [[Template: Mapping]]
* [[Template: Multival]]
* [[Template: Multival]]
* [[Template: Monzo]]
* [[Template: Monzo]]

Revision as of 11:02, 25 May 2023

This template eases typing vals: it puts bra notation ( and ]) around its arguments (it also removes surrounding spaces), and you may optionally include a legend.

Usage

You type
{{val| 31 49 72 87 }}
{{val|legend=1| 31 49 72 87 }}
Tip: adding spaces improves readability of the wiki markup.
You get (rendered)
31 49 72 87]
val31 49 72 87]

Technical note

This template calls Template: Bra to render the brackets.

See also