<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://www.videri.org/index.php?action=history&amp;feed=atom&amp;title=Template%3ALangSwitch</id>
		<title>Template:LangSwitch - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://www.videri.org/index.php?action=history&amp;feed=atom&amp;title=Template%3ALangSwitch"/>
		<link rel="alternate" type="text/html" href="https://www.videri.org/index.php?title=Template:LangSwitch&amp;action=history"/>
		<updated>2026-04-05T18:25:27Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.24.1</generator>

	<entry>
		<id>https://www.videri.org/index.php?title=Template:LangSwitch&amp;diff=119&amp;oldid=prev</id>
		<title>WikiSysop: Created page with &quot;&lt;!-- Documentation of code Snippet:   1) &quot;{{#if:{{{lang|}}}|{{{lang}}}|{{int:Lang}}}}&quot; - is the chosen language, either set by parameter &quot;lang=xx&quot;      or by language of the user...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.videri.org/index.php?title=Template:LangSwitch&amp;diff=119&amp;oldid=prev"/>
				<updated>2012-06-14T19:33:54Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;!-- Documentation of code Snippet:   1) &amp;quot;{{#if:{{{lang|}}}|{{{lang}}}|{{int:Lang}}}}&amp;quot; - is the chosen language, either set by parameter &amp;quot;lang=xx&amp;quot;      or by language of the user...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!-- Documentation of code Snippet: &lt;br /&gt;
 1) &amp;quot;{{#if:{{{lang|}}}|{{{lang}}}|{{int:Lang}}}}&amp;quot; - is the chosen language, either set by parameter &amp;quot;lang=xx&amp;quot; &lt;br /&gt;
    or by language of the user &amp;quot;{{int:Lang}}&amp;quot;&lt;br /&gt;
 2) &amp;quot;{{{ {{#if:{{{lang|}}}|{{{lang}}}|{{int:Lang}}}} |}}}&amp;quot; - is the input parameter matching the language for example {{{xx|}}}&lt;br /&gt;
 3) Without the fallback templates the LangSwitch template would be &lt;br /&gt;
{{{ &lt;br /&gt;
 {{#switch: {{{ {{#if:{{{lang|}}}|{{{lang}}}|{{int:Lang}}}} |}}} // switch based on input parameter matching the language ie. xx&lt;br /&gt;
  | ~        = empty                                    // if |xx=~| than the template will return {{{empty}}} which is empty&lt;br /&gt;
  |          = {{#if: {{{default|}}} | default | en }}  // if xx is undefined or empty |xx=| than return {{{default}}} or {{{en}}}&lt;br /&gt;
  | #default = {{#if:{{{lang|}}}|{{{lang}}}|{{int:Lang}}}} // for all other cases return {{{xx|}}}&lt;br /&gt;
 }}&lt;br /&gt;
|}}}&lt;br /&gt;
&lt;br /&gt;
The actual template is bit more complicated calling templates {{GetFallback}} and {{GetFallback2}} to allow language fallback. For example if desired encoding is &amp;quot;sr-ec&amp;quot; (Serbian using Cyrillic alphabet) than the fall back would be &amp;quot;sr&amp;quot; (Serbian))&lt;br /&gt;
--&amp;gt;{{{ &lt;br /&gt;
  {{#switch: {{{ {{#if:{{{lang|}}}|{{{lang}}}|{{int:Lang}}}} |}}} &lt;br /&gt;
  | ~ = empty&lt;br /&gt;
  |   = {{#switch: {{{ {{GetFallback| {{#if:{{{lang|}}}|{{{lang}}}|{{int:Lang}}}} |default=default}} |}}} &lt;br /&gt;
    | ~ = empty&lt;br /&gt;
    |   = {{#switch: {{{ {{GetFallback2| {{#if:{{{lang|}}}|{{{lang}}}|{{int:Lang}}}} |default=default}} |}}} &lt;br /&gt;
      | ~        = empty&lt;br /&gt;
      |          = {{#if: {{{default|}}} | default | en }}&lt;br /&gt;
      | #default = {{GetFallback2| {{#if:{{{lang|}}}|{{{lang}}}|{{int:Lang}}}} |default=default}} &lt;br /&gt;
      }} &lt;br /&gt;
    | #default = {{GetFallback| {{#if:{{{lang|}}}|{{{lang}}}|{{int:Lang}}}} |default=default}} &lt;br /&gt;
    }}&lt;br /&gt;
  | #default = {{#if:{{{lang|}}}|{{{lang}}}|{{int:Lang}}}} &lt;br /&gt;
  }} &lt;br /&gt;
|}}}&amp;lt;includeonly&amp;gt;{{#ifeq:{{NAMESPACE}}|File||{{#if:{{{en|}}}{{{default|}}}{{{nocat|&amp;lt;noinclude&amp;gt;1&amp;lt;/noinclude&amp;gt;}}}||[[Category:LangSwitch template without English version]]}}}}&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Documentation}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>	</entry>

	</feed>