Template:InterWiki: Difference between revisions

actually, let's keep {{PAGENAME}} in as a secondary default in case something goes wrong with #language
(use #language parsing of the specified code, instead of the {{PAGENAME}}, if no {{{1}}} is specified. (really, {{{1}}} should been an alias for {{{code}}}, with {{{2}}} as display text... but too late to change that now))
(actually, let's keep {{PAGENAME}} in as a secondary default in case something goes wrong with #language)
{{sister
|project=wikipedia
|text='''''[[:{{{code}}}:| {{{1| {{#if:{{{code|}}} | {{#language:{{{code}}}|en}} }} }}} edition]]''''' of [[Wikipedia]], the free encyclopedia
|{{#ifeq:{{#language:{{{code}}}|en}}|{{{code}}}<!-- if an invalid or unsupported code is specified, #language just returns the same thing that was input -->
|{{Title without disambig|{{PAGENAME}}}}
|{{#language:{{{code}}}|en}}
}}
}} }}} edition]]''''' of [[Wikipedia]], the free encyclopedia
}}<noinclude>
{{documentation}}