Template:Mapping: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
ArrowHead294 (talk | contribs)
mNo edit summary
Calling another template is pointless as these characters are invisible to users
Tag: Undo
Line 1: Line 1:
<includeonly>{{#switch: {{{legend|}}}
<includeonly>{{#switch: {{{legend|}}} | 1 = [[Mapping]]:&nbsp; | 2 = [[Sval]] [[mapping]]:&nbsp; | 3 = [[Gencom]] [[mapping]]:&nbsp; }}<span class="left-delim">&#91;</span>{{bra| {{{1|0}}} }}{{#if: {{{2|}}}|, {{bra| {{{2|}}} }} }}{{#if: {{{3|}}}|, {{bra| {{{3|}}} }} }}{{#if: {{{4|}}}|, {{bra| {{{4|}}} }} }}<span class="right-delim">&#93;</span></includeonly><noinclude>
| 1=[[Mapping]]:&nbsp;
This '''mapping''' template eases typing [[mapping]]s: it puts bra notation (<code>&#x27E8;</code> and <code>&#93;</code>) around each of its arguments and left and right brackets outside (it also removes surrounding spaces). You may optionally include a legend. Mappings are supported up to rank-4.  
| 2=[[Sval]] [[mapping]]:&nbsp;
| 3=[[Gencom]] [[mapping]]:&nbsp;
}}<span class="left-delim">{{lbrack}}</span>{{bra|{{{1|0}}}}}{{#if: {{{2|}}}|, {{bra|{{{2|}}}}}}}{{#if: {{{3|}}}|, {{bra|{{{3|}}}}}}}{{#if: {{{4|}}}|, {{bra|{{{4|}}}}}}}<span class="right-delim">{{rbrack}}</span></includeonly><noinclude>
This '''mapping''' template eases typing [[mapping]]s. It puts bra notation (<code>&#x27E8;</code> and <code>&#93;</code>) around each of its arguments and left and right brackets outside (it also removes surrounding spaces). You may optionally include a legend. Mappings are supported up to rank-4.  


{{doc}}
{{doc}}

Revision as of 14:58, 3 September 2024

This mapping template eases typing mappings: it puts bra notation ( and ]) around each of its arguments and left and right brackets outside (it also removes surrounding spaces). You may optionally include a legend. Mappings are supported up to rank-4.

Template:Doc