Template:Linkstart/doc: Difference between revisions

Jump to navigation Jump to search
(Created page with "Used to separate a single link into two links when a template automatically makes a link, by making it so that <nowiki></nowiki> is not immediately interpreted as starting a...")
 
No edit summary
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
Used to separate a single link into two links when a template automatically makes a link, by making it so that <nowiki>[[</nowiki> is not immediately interpreted as starting a link.
Used to separate a single internal link into two or more internal links when a template automatically makes a single internal link from an input, by making it so that <code><nowiki>[[</nowiki></code> is not immediately interpreted as starting a new internal link.


For example:
To use, place <code><nowiki>]]</nowiki></code> after the end of the first item meant to be a link, and insert this instead of <code><nowiki>[[</nowiki></code> before the final item which you wish to turn into a link.
 
==Examples==
With [[Template:Format link]] you get:<br>
With [[Template:Format link]] you get:<br>
<code><nowiki>{{format link|Lion}}</nowiki></code>→<code><nowiki>[[Lion]]</nowiki></code>→[[Lion]]
<code><nowiki>{{format link|Lion}}</nowiki></code> → <code><nowiki>[[Lion]]</nowiki></code> → [[Lion]]
 
 
If, for whatever reason you wanted to make two links with that template, and you were to use:<br>
<code><nowiki>{{format link|Lion]], [[Tiger}}</nowiki></code><br>
You would end up breaking the code.
 
 
By using this template you can do:<br>
<code><nowiki>{{format link|Lion]], {{linkstart}}Tiger}}</nowiki></code> → {{format link|Lion]], {{linkstart}}Tiger}}<br>
And make both "Lion" and "Tiger" separate links.


If you were to use:<br>
<code><nowiki>{{format link|Lion]] [[Tiger}}</nowiki></code><br>
you would end up breaking the code.


By using this template you can do this:
You could also insert linked items before this template, for example you can do this:<br>
<code><nowiki>{{format link|Lion]] {{linkstart}}Tiger}}</nowiki></code>→{{format link|Lion]] {{linkstart}}Tiger}}
<code><nowiki>{{format link|Lion]], [[Tiger]], {{linkstart}}Bird}}</nowiki></code> → {{format link|Lion]], [[Tiger]], {{linkstart}}Bird}}<br>
And make "Lion", "Tiger", and "Bird" all separate links.

Latest revision as of 06:31, 8 July 2021

Used to separate a single internal link into two or more internal links when a template automatically makes a single internal link from an input, by making it so that [[ is not immediately interpreted as starting a new internal link.

To use, place ]] after the end of the first item meant to be a link, and insert this instead of [[ before the final item which you wish to turn into a link.

Examples

With Template:Format link you get:
{{format link|Lion}}[[Lion]]Lion


If, for whatever reason you wanted to make two links with that template, and you were to use:
{{format link|Lion]], [[Tiger}}
You would end up breaking the code.


By using this template you can do:
{{format link|Lion]], {{linkstart}}Tiger}}Lion, Tiger
And make both "Lion" and "Tiger" separate links.


You could also insert linked items before this template, for example you can do this:
{{format link|Lion]], [[Tiger]], {{linkstart}}Bird}}Lion, Tiger, Bird
And make "Lion", "Tiger", and "Bird" all separate links.