13,208
edits
(Lets see if this will force use of English parameter if local language parameter is empty) |
(I can now happily remove the disclaimer, the template is rather fully tested, and works. This calls for celebration! :-) |
||
Line 19: | Line 19: | ||
This template will show texts in different languages depending on the language of the page it is placed on. | This template will show texts in different languages depending on the language of the page it is placed on. | ||
The language the text will be shown in depends on the two letter language code between the page namespace and the page title, for example [[Talk:De/HB Radio-NAV|Talk:'''De'''/HB Radio-NAV]]. If a parameter with a text is not available in the language of the page, the English text will be shown instead. | |||
The language the text will be shown in depends on the two letter language code between the page namespace and the page title, for example [[Talk:De/HB Radio-NAV|Talk:'''De'''/HB Radio-NAV]]. If a parameter with a text is not available in the language of the page or is empty, the English text will be shown instead provided it is available. | |||
== Usage == | == Usage == | ||
Line 74: | Line 75: | ||
== Known issues == | == Known issues == | ||
Using equal signs inside template parameters will break the template. Two ways around this is to either use {{tl|{{=}}}} or <nowiki>=</nowiki>. | Using equal signs inside template parameters will break the template. Two ways around this is to either use {{tl|{{=}}}} or <nowiki>=</nowiki>. | ||
== Related category == | == Related category == |