Template:Scale link/doc: Difference between revisions
Jump to navigation
Jump to search
ArrowHead294 (talk | contribs) mNo edit summary |
ArrowHead294 (talk | contribs) mNo edit summary |
||
Line 2: | Line 2: | ||
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}}</code> or <code>{{<nowiki />sl|4L 5s}}</code> instead. | 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}}</code> or <code>{{<nowiki />sl|4L 5s}}</code> instead. | ||
To link to, for example, the octave-repeating [[4L 5s]] scale, just type <code>[[<nowiki />4L 5s]]</code> or <code>[[<nowiki />4L&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&nbsp;5s]]</code>. | ||
=== Parameters === | === Parameters === |
Revision as of 18:28, 14 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}}
or {{sl|4L 5s}}
instead.
To link to, for example, the octave-repeating 4L 5s scale, just type [[4L 5s]]
or [[4L 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 (
).
{{{2}}}
(optional)- The equave (if the equave is neither the octave nor the tritave), as the second unnamed parameter.