Template:WorldLink: Difference between revisions

From EarthMC
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>[[{{{1}}}{{#if:{{WorldSuffix}}|&#32;({{WorldSuffix}})||}}]]</includeonly>
<includeonly>[[{{{1}}}{{#if:{{WorldSuffix}}|&#32;({{WorldSuffix}})||}}|{{{2|{{{1}}}}}}]]</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>

Revision as of 01:02, 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]]