Template:Mapping/doc: Difference between revisions

ArrowHead294 (talk | contribs)
Docpage
 
ArrowHead294 (talk | contribs)
mNo edit summary
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{dochead}}
{{dochead}}
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.
=== Usage ===
=== Usage ===
; You type
; You type
Line 8: Line 10:


; You get
; You get
: {{{{PAGENAME}}| 31 49 72 87 }}
: {{{{ROOTPAGENAME}}| 31 49 72 87 }}
: {{{{PAGENAME}}| 1 0 -4 -13 | 0 1 4 10 }}
: {{{{ROOTPAGENAME}}| 1 0 -4 -13 | 0 1 4 10 }}


; To include a legend, type
; To include a legend, type
Line 17: Line 19:


; So you get
; So you get
: {{{{PAGENAME}}|legend=1| 1 0 0 0 | 0 1 1 2 | 0 0 2 -1 }}
: {{{{ROOTPAGENAME}}|legend=1| 1 0 0 0 | 0 1 1 2 | 0 0 2 -1 }}
: {{{{PAGENAME}}|legend=2| 1 0 0 0 | 0 1 1 2 | 0 0 2 -1 }}
: {{{{ROOTPAGENAME}}|legend=2| 1 0 0 0 | 0 1 1 2 | 0 0 2 -1 }}
: {{{{PAGENAME}}|legend=3| 1 0 0 0 | 0 1 1 2 | 0 0 2 -1 }}
: {{{{ROOTPAGENAME}}|legend=3| 1 0 0 0 | 0 1 1 2 | 0 0 2 -1 }}


=== Technical note ===
=== Technical note ===
This template calls [[Template:Bra]] to render the brackets.  
This template calls [[Template: Bra]] to render the brackets.  


=== See also ===
=== See also ===
* [[Template:Val]]
* [[Template: Val]]
* [[Template:Multival]]
* [[Template: Multival]]
* [[Template:Bra]]
* [[Template: Bra]]