Template:Dash/doc: Difference between revisions

ArrowHead294 (talk | contribs)
mNo edit summary
ArrowHead294 (talk | contribs)
mNo edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{dochead}}
{{dochead}}{{substitute|no}}{{clear}}{{lua}}
This template converts a sequence separated by commas and spaces into one separated by dashes.
This template is designed to illustrate chains of intervals (fifths especially) without having to manually type out the entities such as <code>&amp;mdash;</code> or <code>&amp;ndash;</code>. It also allows the insertion of spaces in between the dashes and elements in order to reduce clutter. It converts a sequence separated by commas and spaces into one separated by dashes.


=== Parameters ===
=== Parameters ===
Line 30: Line 30:
To adjust spacing between list elements and dashes, use the <code>spaces</code> parameter (defaults to the regular space character).
To adjust spacing between list elements and dashes, use the <code>spaces</code> parameter (defaults to the regular space character).
{| class="wikitable center-all"
{| class="wikitable center-all"
|-
! You type !! You get
! You type !! You get
|-
|-
Line 48: Line 49:


{| class="wikitable center-all"
{| class="wikitable center-all"
|-
! You type !! You get
! You type !! You get
|-
|-
Line 74: Line 76:
=== Examples ===
=== Examples ===
{| class="wikitable center-all"
{| class="wikitable center-all"
|-
! You type !! You get
! You type !! You get
|-
|-
Line 98: Line 101:
| <code><nowiki>{{dash|F, C, G, D, A,, E,, B,, F&#x266F;|s=hair|d=oarr}}</nowiki></code> || {{{{ROOTPAGENAME}}|F, C, G, D, A,, E,, B,, F&#x266F;|s=hair|d=oarr}}
| <code><nowiki>{{dash|F, C, G, D, A,, E,, B,, F&#x266F;|s=hair|d=oarr}}</nowiki></code> || {{{{ROOTPAGENAME}}|F, C, G, D, A,, E,, B,, F&#x266F;|s=hair|d=oarr}}
|}
|}
=== See also ===
* {{modlink}}