Difference between revisions of "Template:OtherLang"

From POV-Wiki
Jump to navigation Jump to search
m
m
Line 1: Line 1:
<includeonly>{|class="OtherLang"
+
{|class="OtherLang"
 
|
 
|
 
Warning! Do not include the language of the current page. This will only confuse readers.
 
Warning! Do not include the language of the current page. This will only confuse readers.
Line 34: Line 34:
  
 
  {{#if: {{{title|}}} | {{DISPLAYTITLE:{{{title}}}}} }}{{#if: {{{en|}}} | '''[[File:En.png|alt=English|link={{{en}}}]]''' }} {{#if: {{{fr|}}} | [[File:Fr.png|alt=French|link={{{fr}}}]] }}
 
  {{#if: {{{title|}}} | {{DISPLAYTITLE:{{{title}}}}} }}{{#if: {{{en|}}} | '''[[File:En.png|alt=English|link={{{en}}}]]''' }} {{#if: {{{fr|}}} | [[File:Fr.png|alt=French|link={{{fr}}}]] }}
|}</includeonly>
+
 
 
<noinclude>{{Documentation}}</noinclude>
 
<noinclude>{{Documentation}}</noinclude>

Revision as of 18:54, 26 December 2024

Warning! Do not include the language of the current page. This will only confuse readers.

Example

On a page called Template:Otherlang:

Template:otherlang


Note that:

  • The language "en" is not included, as it is the language of the page that template is being used on.
  • title is assigned the translated name of the page, and will appear as the display title (heading) for the page. This can replace the existing Template:wrongtitle and Template:DISPLAYTITLE templates currently in common use.
  • The English page has no suffix.

Available Languages

Language Syntax Result
English en=Page_name File:En.png
French fr=Page_name:fr File:Fr.png
{{#if:  |  }}{{#if:  | link={{{en}}} }} {{#if:  | link={{{fr}}} }}


Template:OtherLang/doc