Difference between revisions of "Template:If lang link"
From Kerbal Space Program Wiki
(+force;) |
m (!use force correctly (if lang.from wasn't it);) |
||
Line 1: | Line 1: | ||
− | [[{{{1}}}{{if | + | [[{{{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.