Difference between revisions of "Template:If lang link"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (!use force correctly (if lang.from wasn't it);)
m
Line 1: Line 1:
[[{{{1}}}{{#if: {{{force|}}}|/{{{force}}}|{{if lang}}}}|{{{2|{{{1}}}}}}]]<noinclude>
+
<includeonly>[[{{{1}}}{{#if: {{{force|}}}|/{{{force}}}|{{if lang}}}}|{{{2|{{{1}}}}}}]]</includeonly><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 21:33, 11 July 2013


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