Template:Dash/doc: Difference between revisions

ArrowHead294 (talk | contribs)
mNo edit summary
ArrowHead294 (talk | contribs)
mNo edit summary
Line 15: Line 15:
: Second separator for bidirectional lists.
: Second separator for bidirectional lists.


''Note:'' If only two parameters are supplied, the second parameter will be used to determine the separator instead of the space. If three or four parameters are specified, the second will determine the space while the third (and fourth, if passed) will determine the separators.
'''Note:''' If you pass in all unnamed parameters, the second will be used to determine the dash instead of the space if only two parameters are invoked. If three or four are specified, the second parameter will determine the space while the third (and fourth, if passed) will determine the dash.


==== Dual separators ====
==== Dual separators ====
This template currently has options for two different separators.
This template currently has options for two different separators.


For the primary separator, separate items by <code>,</code> followed by one or more spaces (if no secondary separator is specified, any combination of commas and whitespaces that ends in one or more spaces will be treated as a single separator). An additional separator can be invoked by separating items using two commas (<code>,,</code>) followed by one or more spaces.
For the primary separator, separate items by <code>,</code> followed by one or more spaces (if no secondary separator is specified, any combination of commas and whitespaces of any length will be treated as a single separator, as long as it ends in one or more whitespaces). An additional separator can be invoked by separating items using two commas (<code>,,</code>) followed by one or more spaces.


=== Usage ===
=== Usage ===