Template:Mapping/doc: Difference between revisions

ArrowHead294 (talk | contribs)
m Self-closing «nowiki» tags also work
ArrowHead294 (talk | contribs)
mNo edit summary
 
(One intermediate revision by one other user 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
: <code>{{mapping<nowiki />| 31 49 72 87 }}</code>
: <code><nowiki>{{mapping| 31 49 72 87 }}</nowiki></code>
: <code>{{mapping<nowiki />| 1 0 -4 -13 | 0 1 4 10 }}</code>
: <code><nowiki>{{mapping| 1 0 -4 -13 | 0 1 4 10 }}</nowiki></code>


:'''Tip:''' adding spaces improves readability of the wiki markup.
:'''Tip:''' adding spaces improves readability of the wiki markup.
Line 12: Line 14:


; To include a legend, type
; To include a legend, type
: <code>{{mapping<nowiki />|legend=1| 1 0 0 0 | 0 1 1 2 | 0 0 2 -1 }}</code>
: <code><nowiki>{{mapping|legend=1| 1 0 0 0 | 0 1 1 2 | 0 0 2 -1 }}</nowiki></code>
: <code>{{mapping<nowiki />|legend=2| 1 0 0 0 | 0 1 1 2 | 0 0 2 -1 }}</code>
: <code><nowiki>{{mapping|legend=2| 1 0 0 0 | 0 1 1 2 | 0 0 2 -1 }}</nowiki></code>
: <code>{{mapping<nowiki />|legend=3| 1 0 0 0 | 0 1 1 2 | 0 0 2 -1 }}</code>
: <code><nowiki>{{mapping|legend=3| 1 0 0 0 | 0 1 1 2 | 0 0 2 -1 }}</nowiki></code>


; So you get
; So you get