Template:Dash/doc: Difference between revisions
ArrowHead294 (talk | contribs) No edit summary |
ArrowHead294 (talk | contribs) No edit summary |
||
| Line 17: | Line 17: | ||
==== Dual separators ==== | ==== Dual separators ==== | ||
This template currently supports up to two different separators. For the primary separator, separate items by <code>,</code> followed by one or more spaces. An additional separator can be invoked by separating items using two commas (<code>,,</code>) followed by one or more spaces. | This template currently supports up to two different separators. For the primary separator, separate items by <code>,</code> followed by one or more spaces. An additional separator can be invoked by separating items using two commas (<code>,,</code>) followed by one or more spaces. | ||
=== Usage === | === Usage === | ||
| Line 75: | Line 67: | ||
| Right arrow (U+2192 → <span style="font-size: 10px;">RIGHTWARDS ARROW</span>) | | Right arrow (U+2192 → <span style="font-size: 10px;">RIGHTWARDS ARROW</span>) | ||
|} | |} | ||
==== Bidirectional arrows ==== | |||
There are two special cases that are supported, in the case of chains of intervals: | |||
; <code>d=iarr</code> | |||
: Sets the primary separator to the right arrow (<code>→</code>) and the secondary separator to the left arrow (<code>←</code>). | |||
; <code>d=oarr</code> | |||
: Sets the primary separator to the left arrow (<code>←</code>) and the secondary separator to the right arrow (<code>→</code>). | |||
=== Examples === | === Examples === | ||
| Line 108: | Line 109: | ||
| {{dash|A, B, C, D, E, F, G, H|s=hair|d=}} | | {{dash|A, B, C, D, E, F, G, H|s=hair|d=}} | ||
|- | |- | ||
| <syntaxhighlight lang="text">{{dash|F, C, G, D, A,, E,, B|s=hair|d= | | <syntaxhighlight lang="text">{{dash|F, C, G, D, A,, E,, B,, F♯|s=hair|d=iarr}}</syntaxhighlight> | ||
| {{dash|F, C, G, D, A,, E,, B|s=hair|d= | | {{dash|F, C, G, D, A,, E,, B,, F♯|s=hair|d=iarr}} | ||
|- | |||
| <syntaxhighlight lang="text">{{dash|F, C, G, D, A,, E,, B,, F♯|s=hair|d=oarr}}</syntaxhighlight> | |||
| {{dash|F, C, G, D, A,, E,, B,, F♯|s=hair|d=oarr}} | |||
|} | |} | ||
=== See also === | === See also === | ||
* {{modlink}} | * {{modlink}} | ||