(Created page with "{{Template|SplitLink}} is used to break up lists of (potential) references to other pages and create links if they exist. ==Usage== It accepts one {{parameter|mandatory|string}}, a semi-colon delimited list of article titles. ==Return== It returns a comma-delimited list of article titles, as links if the article exists or as plain text if it does not. For example, {{code|<nowiki>{{SplitLink|Mattias Torrez; Shirayuri}}</nowiki>}} returns: {{Return|{{SplitLink|Mattias Tor...") |
No edit summary |
||
| Line 1: | Line 1: | ||
{{Template|SplitLink}} is used to break up lists of (potential) references to other pages and create links if they exist. | {{Template|SplitLink}} is used to break up lists of (potential) references to other pages and create links if they exist. | ||
==Usage== | ==Usage== | ||
It accepts one {{parameter|mandatory|string}}, a | It accepts one {{parameter|mandatory|string}}, a delimited list of article titles. | ||
It accepts two {{parameter|optional|string}}s, which can be used to control what delimiters are used. | |||
* {{code|in}} (default {{code|;}}) controls the delimiter used for the input. | |||
* {{code|out}} (default {{code|,}}) controls the delimiter used for the output. | |||
==Return== | ==Return== | ||
It returns a comma-delimited list of article titles, as links if the article exists or as plain text if it does not. | It returns a comma-delimited list of article titles, as links if the article exists or as plain text if it does not. | ||
For example, {{code|<nowiki>{{SplitLink|Mattias Torrez; Shirayuri}}</nowiki>}} returns: {{Return|{{SplitLink|Mattias Torrez; Shirayuri}}}} | For example, {{code|<nowiki>{{SplitLink|Mattias Torrez; Shirayuri}}</nowiki>}} returns: {{Return|{{SplitLink|Mattias Torrez; Shirayuri}}}} | ||
Revision as of 17:19, 27 January 2023
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 comma-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
