Difference between revisions of "Template:If lang link"

From Kerbal Space Program Wiki
Jump to: navigation, search
(+force;)
m (!use force correctly (if lang.from wasn't it);)
Line 1: Line 1:
[[{{{1}}}{{if lang|from={{{force|}}}}}|{{{2|{{{1}}}}}}]]<noinclude>
+
[[{{{1}}}{{#if: {{{force|}}}|/{{{force}}}|{{if lang}}}}|{{{2|{{{1}}}}}}]]<noinclude>
 
----
 
----
 
Creates a link which automatically links to the article in the same language. Has one parameter to the link target.
 
Creates a link which automatically links to the article in the same language. Has one parameter to the link target.

Revision as of 18:40, 16 May 2013

[[{{{1}}}|{{{1}}}]]


Creates a link which automatically links to the article in the same language. Has one parameter to the link target.

{{if lang link|Main Page}} would create a link to the Main Page if on an English page and to Main Page/ru if on an Russian page.

Template:Parameter Table