Template:Step vis/doc: Difference between revisions

ArrowHead294 (talk | contribs)
Make documentation page
 
ArrowHead294 (talk | contribs)
mNo edit summary
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{dochead}}
{{dochead}}{{substitute|no}}{{lua}}
This template is used to visualize the step pattern of a scale given as a sequence of whole-number step sizes.
 
=== Usage ===
=== Usage ===
Step patterns are entered as shown below. The first parameter should contain the step pattern, with step sizes separated by spaces.
Step patterns are entered as shown below. The first parameter should contain the step pattern, with step sizes separated by spaces.


<pre>{{Step vis|5 5 5 3 5 5 3}}</pre>
For example, you can use this
{{Step vis|5 5 5 3 5 5 3}}
 
<pre>{{Step vis|4 1 4 1 4 1 4 1 4 1 4 1 4}}</pre>
 
to illustrate the [[7L&nbsp;6s]] scale in [[34edo]]:


<pre>{{Step vis|1=5 5 5 3 5 5 3}}</pre>
{{{{ROOTPAGENAMEE}}|4 1 4 1 4 1 4 1 4 1 4 1 4}}
{{Step vis|1=5 5 5 3 5 5 3}}


Step patterns are drawn using the {{w|Box-drawing character|Unicode box-drawing symbols}} ├ (<code>U+251C</code>), ┤ (<code>U+2524</code>), ─ (<code>U+2500</code>), and ┼ (<code>U+253C</code>).
Step patterns are drawn using the {{w|Box-drawing character|Unicode box-drawing symbols}} ├ (<code>U+251C</code>), ┤ (<code>U+2524</code>), ─ (<code>U+2500</code>), and ┼ (<code>U+253C</code>).
Line 14: Line 18:
Step sizes of 0 are depicted using the symbol ╫ (<code>U+256B</code>), ╢ (<code>U+2562</code>), or ╟ (<code>U+255F</code>), depending on the location.
Step sizes of 0 are depicted using the symbol ╫ (<code>U+256B</code>), ╢ (<code>U+2562</code>), or ╟ (<code>U+255F</code>), depending on the location.


<pre>{{Step vis|5 5 5 0 5 5 0}}</pre>
<pre>{{Step vis|5 2 5 0 4 5 0 5 3 1 4 0 5}}</pre>
{{Step vis|5 5 5 0 5 5 0}}
{{{{ROOTPAGENAMEE}}|5 2 5 0 4 5 0 5 3 1 4 0 5}}
 
Scales with consecutive size-0 steps may not display properly.


<pre>{{Step vis|0 0 5 5 5 0 0 5 5 0 0}}</pre>
<pre>{{Step vis|0 0 5 2 5 0 0 0 4 5 0 5 3 0 0 1 4 0 2 3 5 0 0 0}}</pre>
{{Step vis|0 0 5 5 5 0 0 5 5 0 0}}
{{{{ROOTPAGENAMEE}}|0 0 5 2 5 0 0 0 4 5 0 5 3 0 0 1 4 0 2 3 5 0 0 0}}