13,212
edits
(→Known issues: Pipes/vertical strokes will break the template as well) |
m (Commenting the template source) |
||
Line 1: | Line 1: | ||
{{#if: {{{lang|}}} | {{{ {{{lang}}} }}} | {{#if: {{{ {{lc: {{#titleparts: {{PAGENAME}} | 1}} }}| }}} | {{{ {{lc: {{#titleparts: {{PAGENAME}} | 1}} }} }}} | {{{en|}}} }} }}<noinclude> | {{#if: {{{lang|}}} <!-- Is lang defined or non-empty? --> | ||
| <!-- If lang is defined, try use the language code in that parameter. --> | |||
{{{ {{{lang}}} }}} | |||
| <!-- If lang is empty or undefined, try use the language code of the page. --> | |||
{{#if: {{{ {{lc: {{#titleparts: {{PAGENAME}} | 1}} }}| }}} <!-- Does the page have a language prefix/language code? --> | |||
| <!-- If the page does have a language prefix, use the the contents of the parameter with that language code. --> | |||
{{{ {{lc: {{#titleparts: {{PAGENAME}} | 1}} }} }}} | |||
| <!-- If lang is empty or undefined and there is no language prefix, use the English content. --> | |||
{{{en|}}} | |||
}} | |||
}}<noinclude> | |||
{{Informative template|1= | {{Informative template|1= | ||
== Goal == | == Goal == |