User:Ganaram inukshuk/Sandbox: Difference between revisions

Ganaram inukshuk (talk | contribs)
MOS modes: Sandboxed documentation
Ganaram inukshuk (talk | contribs)
No edit summary
Line 864: Line 864:


=== MOS modes ===
=== MOS modes ===
=== Arguments ===
The template currently supports the following arguments:
{| class="wikitable"
{| class="wikitable"
|+
|+
Line 871: Line 873:
|-
|-
|Tuning
|Tuning
|No (for mos pages)
|No (optional)
Yes for any other page
|"xL ys" (for 2/1-equivalent mosses), "xL ys<nowiki><p/q>" or "xL ys⟨p/q⟩" (for non-2/1 mosses), or "xL ys (p/q-equivalent)" (if the tuning is specified in the page's title). If left blank, then the page's title will be used instead, or if not on a mos page, then 5L 2s will be used instead.</nowiki>
|"xL ys" (for 2/1-equivalent mosses), "xL ys<nowiki><p/q>" or "xL ys⟨p/q⟩" (for non-2/1 mosses), or "xL ys (p/q-equivalent)" (if the tuning is specified in the page's title). If left blank, then the page's title will be used instead.</nowiki>
|-
|-
|ModeNames
|ModeNames
Line 880: Line 881:
|}
|}


==== Different mosses with mode names ====
=== Typical use ===
5L 2s does not need names to be entered, as they're hardcoded and are added if the tuning is "5L 2s".{{#invoke:MOS_modes|modes_table}}
For most mos pages, simply include the code below. If included on any other page, the template will default to the modes of 5L 2s, including mode names. The number of names must match the number of modes or they won't be included.
Names for each mode are separated by semicolons, allowing multiple names per mode or multiple words per name.
<syntaxhighlight>{{#invoke:MOS_modes|modes_table}}</syntaxhighlight>
{{#invoke:MOS_modes|modes_table}}
=== Usage with a different tuning ===
To specify a tuning, include it as shown below. Non-octave tunings are supported.
<syntaxhighlight>{{MOS modes|Tuning=5L 3s}}</syntaxhighlight>
{{MOS modes|Tuning=5L 3s}}
<syntaxhighlight>{{MOS modes|Tuning=4L 5s <3/1>}}</syntaxhighlight>
{{MOS modes|Tuning=4L 5s <3/1>}}
=== Usage with mode names ===
Names for each mode are separated by semicolons, as shown below. A mode may have multiple names or a name consisting of multiple words.


{{MOS modes|Tuning=5L 3s|ModeNames=Dylathian, Dylian; Ilarnekian; Celephaïsian, Celephian; Ultharian; Mnarian; Kadathian, Kadian; Hlanithian, Hlanian; Sarnathian, Sarnian, Sarn}}
<syntaxhighlight>{{MOS modes|Tuning=5L 3s|ModeNames=Dylathian, Dylian; Ilarnekian; Celephaïsian; Ultharian; Mnarian; Kadathian, Kadian; Hlanithian, Hlanian; Sarnathian, Sarnian, Sarn}}</syntaxhighlight>
{{MOS modes|Tuning=5L 3s|ModeNames=Dylathian, Dylian; Ilarnekian; Celephaïsian; Ultharian; Mnarian; Kadathian, Kadian; Hlanithian, Hlanian; Sarnathian, Sarnian, Sarn}}


<syntaxhighlight>{{MOS modes|Tuning=4L 5s <3/1>|ModeNames=Walker I; Walker II; Moll I (Delta); Lambda; Moll II (Pierce); Harmonic; Dur I; Walker A; Walker B}}</syntaxhighlight>
{{MOS modes|Tuning=4L 5s <3/1>|ModeNames=Walker I; Walker II; Moll I (Delta); Lambda; Moll II (Pierce); Harmonic; Dur I; Walker A; Walker B}}
{{MOS modes|Tuning=4L 5s <3/1>|ModeNames=Walker I; Walker II; Moll I (Delta); Lambda; Moll II (Pierce); Harmonic; Dur I; Walker A; Walker B}}
=== To-do ===
* Some mos pages have more than one set of names. This currently is not supported.


==== Different mosses without mode names ====
The same tables from above (except for 5L 2s) are shown without mode names. The number of names entered must match the number of mode names, or names won't be added.
{{MOS modes|Tuning=5L 3s}}
{{MOS modes|Tuning=4L 5s <3/1>}}
To-do
== Template text sandbox ==
This section is to test out possible wordings for text-based templates, such as for the edo intro template.


=== Mos intro text ===
=== Mos intro text ===