<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://aerialwiki.iamcolorful.com/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="http://aerialwiki.iamcolorful.com/index.php?action=history&amp;feed=atom&amp;title=Template%3ALangSwitch"/>
	<link rel="alternate" type="text/html" href="http://aerialwiki.iamcolorful.com/index.php?title=Template:LangSwitch&amp;action=history"/>
	<updated>2026-05-02T19:49:47Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>http://aerialwiki.iamcolorful.com/index.php?title=Template:LangSwitch&amp;diff=1077&amp;oldid=prev</id>
		<title>Kwickert: Protected &quot;Template:LangSwitch&quot; (‎[edit=sysop] (indefinite) ‎[move=sysop] (indefinite))</title>
		<link rel="alternate" type="text/html" href="http://aerialwiki.iamcolorful.com/index.php?title=Template:LangSwitch&amp;diff=1077&amp;oldid=prev"/>
		<updated>2012-09-04T19:28:43Z</updated>

		<summary type="html">&lt;p&gt;Protected &amp;quot;&lt;a href=&quot;/index.php/Template:LangSwitch&quot; title=&quot;Template:LangSwitch&quot;&gt;Template:LangSwitch&lt;/a&gt;&amp;quot; (‎[edit=sysop] (indefinite) ‎[move=sysop] (indefinite))&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 19:28, 4 September 2012&lt;/td&gt;
				&lt;/tr&gt;
&lt;!-- diff cache key kovsph_mw890-mw_:diff::1.12:old-923:rev-1077 --&gt;
&lt;/table&gt;</summary>
		<author><name>Kwickert</name></author>
		
	</entry>
	<entry>
		<id>http://aerialwiki.iamcolorful.com/index.php?title=Template:LangSwitch&amp;diff=923&amp;oldid=prev</id>
		<title>Kwickert: 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 u...&quot;</title>
		<link rel="alternate" type="text/html" href="http://aerialwiki.iamcolorful.com/index.php?title=Template:LangSwitch&amp;diff=923&amp;oldid=prev"/>
		<updated>2012-09-03T17:23:32Z</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 u...&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>Kwickert</name></author>
		
	</entry>
</feed>