Anonymous
×
Create a new article
Write your page title here:
We currently have 205 articles on Shadowrun Seattle Shutdown. Type your article name above or click on one of the titles below and start writing!



Shadowrun Seattle Shutdown

Template:SplitLink: Difference between revisions

No edit summary
No edit summary
 
(20 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Documentation}}
{{Documentation}}
<includeonly><onlyinclude>
<includeonly><onlyinclude>{{#loop: p-loop
{{#ifexpr:{{#count:{{{1}}}|;}}=0
|{{#ifexist:{{{1}}}|[[{{{1}}}]]|{{{1}}}}}
|{{#loop: p-loop
| 0
| 0
| {{#count:{{{1}}}|;}}
| {{#count:{{{1}}}{{{in|;}}}|{{{in|;}}}}}
| {{#vardefine:p-name|{{#explode:{{{1}}}|;|{{#var:p-loop}}}}}}{{#ifexist:{{#var:p-name}}|[[{{#var:p-name}}]]|{{#var:p-name}}}}{{#ifexpr:{{#var:p-loop}} + 1 = {{#count:{{{1}}}|;}}||,&#32;}}
| {{#vardefine:p-name|{{#explode:{{{1}}}|{{{in|;}}}|{{#var:p-loop}}}}}}{{#ifeq:Level|{{#sub:{{#var:p-name}}|0|5}}|{{Level|{{#explode:{{#var:p-name}}| |1}}}}|{{#ifexist:{{SplitP|{{#var:p-name}}|out}}|[[{{SplitP|{{#var:p-name}}|out}}]] {{#ifexpr:1={{#count:{{#var:p-name}}|(}}| ({{SplitP|{{#var:p-name}}|in}})}}|{{#var:p-name}}}}}}{{#ifexpr:{{#var:p-loop}} = {{#count:{{{1}}}|{{{in|;}}}}}||{{#ifeq:{{{out}}}|br|<br />|{{{out|,}}}&#32;}}}}
}}</onlyinclude></includeonly>
}}</onlyinclude></includeonly>

Latest revision as of 13:50, 9 January 2025

Icon-documentation.svg

Template:SplitLink is used to break up lists of (potential) references to other pages and create links if they exist.

Usage

It accepts one mandatory string parameter, a delimited list of article titles.

It accepts two optional string parameters, which can be used to control what delimiters are used.

  • in (default ;) controls the delimiter used for the input.
  • out (default ,) controls the delimiter used for the output.

Return

It returns a delimited list of article titles, as links if the article exists or as plain text if it does not.

For example, {{SplitLink|Mattias Torrez; Shirayuri}} returns:
Mattias Torrez, Shirayuri
For example, {{SplitLink|SCIRE, Level 3, Mall|in=,}} returns:

The documentation above was transcluded from Template:SplitLink/Documentation.