Template:Consecutive links: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
Created page with "<includeonly>{{#invoke: consecutive links | parse |{{{1}}}|{{{2|, }}}}}</includeonly><noinclude>Category:Templates Template that allows auto linking of a list by a specif..."
 
mNo edit summary
Line 1: Line 1:
<includeonly>{{#invoke: consecutive links | parse |{{{1}}}|{{{2|, }}}}}</includeonly><noinclude>[[Category:Templates]]
<includeonly>{{#invoke: consecutive links | parse |{{{1}}}|{{{2|,}}}|{{{3|, }}}}}</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:


<code><nowiki>{{Consecutive links|Joppa, Kyakukya, Grit Gate|, }}</nowiki></code>
<code><nowiki>{{Consecutive links|Joppa, Kyakukya, Grit Gate}}</nowiki></code>


{{Consecutive links|Joppa, Kyakukya, Grit Gate|,}}
{{Consecutive links|Joppa, Kyakukya, Grit Gate}}


The delimiter defaults to <code>, </code> (comma and space) if not specified. if that wants to change, then a delimiter can be specified in a second argument:  
The delimiter defaults to <code>,</code>(ignoring white space) if not specified, and splits it by <code>, </code> if that wants to change, then a delimiter can be specified in a second argument:  


<code><nowiki>{{Consecutive links|Joppa/Kyakukya/Grit Gate|/}}</nowiki></code>
<code><nowiki>{{Consecutive links|Joppa/Kyakukya/Grit Gate|/|/}}</nowiki></code>


{{Consecutive links|Joppa/Kyakukya/Grit Gate|/}}</noinclude>
{{Consecutive links|Joppa/Kyakukya/Grit Gate|/|/}}</noinclude>

Revision as of 18:53, 23 July 2019


Template that allows auto linking of a list by a specified delimiter.Usage:

{{Consecutive links|Joppa, Kyakukya, Grit Gate}}

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|/|/}}

Joppa/Kyakukya/Grit Gate