Template:Consecutive links: Difference between revisions
(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...") |
No edit summary |
||
(7 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#invoke: consecutive links | | <includeonly>{{#invoke: consecutive links | consecutivelinks |{{{1}}}|{{{2|,}}}|{{{3|, }}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}|{{{8|}}}|{{{9|}}}}}</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 | <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> ( | 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|/|/}} | ||
Additionally, you can use the 4th and 5th parameters to specify an overall prefix and an overall postfix to the string that is returned. | |||
<code><nowiki>{{Consecutive links|Joppa/Kyakukya/Grit Gate|/|<div class{{=}}"example"></div>|<div class{{=}}"example">|</div>}}</nowiki></code> | |||
{{consecutive links|Joppa/Kyakukya/Grit Gate|/|-|(|)}} | |||
Moreover, you can use parameters 6th and 7th to add stuff before and after inside of the links. | |||
<code><nowiki>{{consecutive links|Blade, Weapon, Long Blade|,|, |||:Category:| Mods}}</nowiki></code> | |||
{{consecutive links|Blade, Weapon, Long Blade|,|, |||:Category:| Mods}} | |||
Last but not least! You can use parameters 8th and 9th to add text before the actual link | |||
<code><nowiki>{{consecutive links|Cooking and Gathering,Harvestry,Bow and Rifle,--Steady Hands,--Draw a Bead,Wilderness Lore: Jungles|,|3=</div><div>|4=<div>|5=</div>|8=--|9=<span> » </span>}}</nowiki></code> | |||
{{consecutive links|Cooking and Gathering,Harvestry,Bow and Rifle,--Steady Hands,--Draw a Bead,Wilderness Lore: Jungles|,|3=</div><div>|4=<div>|5=</div>|8=--|9=<span> » </span>}} | |||
</noinclude> |
Latest revision as of 19:43, 19 December 2020
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.
{{Consecutive links|Joppa/Kyakukya/Grit Gate|/|<div class{{=}}"example"></div>|<div class{{=}}"example">|</div>}}
Moreover, you can use parameters 6th and 7th to add stuff before and after inside of the links.
{{consecutive links|Blade, Weapon, Long Blade|,|, |||:Category:| Mods}}
Category:Blade Mods, Category:Weapon Mods, Category:Long Blade Mods
Last but not least! You can use parameters 8th and 9th to add text before the actual link
{{consecutive links|Cooking and Gathering,Harvestry,Bow and Rifle,--Steady Hands,--Draw a Bead,Wilderness Lore: Jungles|,|3=</div><div>|4=<div>|5=</div>|8=--|9=<span> » </span>}}