Template:WorldLink: Difference between revisions

From EarthMC
Jump to navigation Jump to search
(Corrected parameter error)
No edit summary
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>[[{{{1}}}{{#if:{{WorldSuffix}}| ({{WorldSuffix}})||}}|{{{2|{{{1}}}}}}]]</includeonly>
<includeonly>[[{{{1}}}{{#if:{{WorldSuffix}}|&#32;({{WorldSuffix}})||}}|{{{1|{{{2}}}}}}]]</includeonly><noinclude>
<noinclude>
Template that creates a link with a prefix that is the same as the one in the current page.
Template that creates a link with a prefix that is the same as the one in the current page.


<code><nowiki>{{WorldLink|Buenos Aires}}</nowiki></code> in a page called <code>La Plata (Aurora)</code> would turn into <code><nowiki>[[Buenos Aires (Aurora)|Buenos Aires]]</nowiki></code>
<code><nowiki>{{WorldLink|Buenos Aires}}</nowiki></code> in a page called <code>La Plata (Aurora)</code> would turn into <code><nowiki>[[Buenos Aires (Aurora)|Buenos Aires]]</nowiki></code>
</noinclude>
</noinclude>

Latest revision as of 01:10, 21 May 2022

Template that creates a link with a prefix that is the same as the one in the current page.


{{WorldLink|Buenos Aires}} in a page called La Plata (Aurora) would turn into [[Buenos Aires (Aurora)|Buenos Aires]]