Template:Consecutive links: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
add support for prefix and postfix |
||
Line 1: | Line 1: | ||
<includeonly>{{#invoke: consecutive links | parse |{{{1}}}|{{{2|,}}}|{{{3|, }}}}}</includeonly><noinclude>[[Category:Templates]] | <includeonly>{{#invoke: consecutive links | parse |{{{1}}}|{{{2|,}}}|{{{3|, }}}|{{{4|}}}|{{{5|}}}}}</includeonly><noinclude>[[Category:Templates]] | ||
Template that allows auto linking of a list by a specified delimiter.Usage: | Template that allows auto linking of a list by a specified delimiter.Usage: | ||
Line 10: | Line 10: | ||
<code><nowiki>{{Consecutive links|Joppa/Kyakukya/Grit Gate|/|/}}</nowiki></code> | <code><nowiki>{{Consecutive links|Joppa/Kyakukya/Grit Gate|/|/}}</nowiki></code> | ||
Additionally, you can use the 4th and 5th parameters to specify an overall prefix and an overall postfix to the string that is returned. | |||
{{Consecutive links|Joppa/Kyakukya/Grit Gate|/|/}}</noinclude> | {{Consecutive links|Joppa/Kyakukya/Grit Gate|/|/}}</noinclude> |
Revision as of 15:23, 12 August 2019
Template that allows auto linking of a list by a specified delimiter.Usage:
{{Consecutive links|Joppa, Kyakukya, Grit Gate}}
The delimiter defaults to ,
(ignoring white space) if not specified, and splits it by ,
if that wants to change, then a delimiter can be specified in a second argument:
{{Consecutive links|Joppa/Kyakukya/Grit Gate|/|/}}
Additionally, you can use the 4th and 5th parameters to specify an overall prefix and an overall postfix to the string that is returned.