Template:Scale link/doc: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
ArrowHead294 (talk | contribs)
mNo edit summary
ArrowHead294 (talk | contribs)
mNo edit summary
Line 1: Line 1:
{{dochead}}
{{dochead}}
For example, instead of having to type, for example, <code>[<nowiki />[4L 5s (3/1-equivalent)|4L 5s]]</code>, you can type <code>{<nowiki />{scale link|4L 5s|3/1}}</code>.
When linking non-octave scales (such as [[3/1|tritave]]-equivalent scales), one often has to type the scale twice (e.g. <code>[[<nowiki />4L 5s (3/1-equivalent)|4L 5s]]</code>). This template is intended to simplify this by only requiring the scale once, so you can type (for example) <code>{{<nowiki />scale link|4L 5s|3/1}}</code> instead.


To link to, for example, the octave-repeating [[4L 5s]] scale, just type <code>[<nowiki />[4L 5s]]</code> or <code>[<nowiki />[4L&amp;nbsp;5s]]</code>
To link to, for example, the octave-repeating [[4L 5s]] scale, just type <code>[[<nowiki />4L 5s]]</code> or <code>[[<nowiki />4L&amp;nbsp;5s]]</code>.


=== Parameters ===
=== Parameters ===

Revision as of 14:20, 9 January 2025

When linking non-octave scales (such as tritave-equivalent scales), one often has to type the scale twice (e.g. [[4L 5s (3/1-equivalent)|4L 5s]]). This template is intended to simplify this by only requiring the scale once, so you can type (for example) {{scale link|4L 5s|3/1}} instead.

To link to, for example, the octave-repeating 4L 5s scale, just type [[4L 5s]] or [[4L&nbsp;5s]].

Parameters

{{{1}}} (required)
The scale (in terms of L and s intervals, e.g. 5L 2s), as the first unnamed parameter. Spaces will be replaced with a non-breaking space (&nbsp;).
{{{2}}} (optional)
The equave (if the scale is a non-octave scale), as the second unnamed parameter.