Template:Mapping/doc: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
ArrowHead294 (talk | contribs)
Docpage
 
ArrowHead294 (talk | contribs)
No edit summary
Line 8: Line 8:


; 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
: <code><nowiki>{{mapping|legend=1| 1 0 0 0 | 0 1 1 2 | 0 0 2 -1 }}</nowiki></code>
: <code><nowiki>{{ROOTPAGENAME|legend=1| 1 0 0 0 | 0 1 1 2 | 0 0 2 -1 }}</nowiki></code>
: <code><nowiki>{{mapping|legend=2| 1 0 0 0 | 0 1 1 2 | 0 0 2 -1 }}</nowiki></code>
: <code><nowiki>{{ROOTPAGENAME|legend=2| 1 0 0 0 | 0 1 1 2 | 0 0 2 -1 }}</nowiki></code>
: <code><nowiki>{{mapping|legend=3| 1 0 0 0 | 0 1 1 2 | 0 0 2 -1 }}</nowiki></code>
: <code><nowiki>{{ROOTPAGENAME|legend=3| 1 0 0 0 | 0 1 1 2 | 0 0 2 -1 }}</nowiki></code>


; 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 ===

Revision as of 02:07, 22 May 2024

Usage

You type
{{mapping| 31 49 72 87 }}
{{mapping| 1 0 -4 -13 | 0 1 4 10 }}
Tip: adding spaces improves readability of the wiki markup.
You get
[31 49 72 87]]
[1 0 -4 -13], 0 1 4 10]]
To include a legend, type
{{ROOTPAGENAME|legend=1| 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 }}
{{ROOTPAGENAME|legend=3| 1 0 0 0 | 0 1 1 2 | 0 0 2 -1 }}
So you get
Mapping[1 0 0 0], 0 1 1 2], 0 0 2 -1]]
Sval mapping[1 0 0 0], 0 1 1 2], 0 0 2 -1]]
Gencom mapping[1 0 0 0], 0 1 1 2], 0 0 2 -1]]

Technical note

This template calls Template:Bra to render the brackets.

See also