<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://embargo.energy/index.php?action=history&amp;feed=atom&amp;title=Template%3ALs%2Fdoc</id>
	<title>Template:Ls/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://embargo.energy/index.php?action=history&amp;feed=atom&amp;title=Template%3ALs%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://embargo.energy/index.php?title=Template:Ls/doc&amp;action=history"/>
	<updated>2026-05-18T09:20:25Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.6</generator>
	<entry>
		<id>https://embargo.energy/index.php?title=Template:Ls/doc&amp;diff=722&amp;oldid=prev</id>
		<title>imported&gt;Ciencia Al Poder: workaround when text contain URLs with equal signs</title>
		<link rel="alternate" type="text/html" href="https://embargo.energy/index.php?title=Template:Ls/doc&amp;diff=722&amp;oldid=prev"/>
		<updated>2015-01-24T11:48:54Z</updated>

		<summary type="html">&lt;p&gt;workaround when text contain URLs with equal signs&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{documentation subpage}}&lt;br /&gt;
&lt;br /&gt;
==Usage==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;pre&amp;gt;&amp;lt;div class=&amp;quot;multilingual&amp;quot;&amp;gt;&lt;br /&gt;
{{ls|en|This text is English}}&lt;br /&gt;
{{ls|fr|Ce texte est en français}}&lt;br /&gt;
{{ls|it|Questo testo è Italiano}}&lt;br /&gt;
{{ls|nl|Deze tekst is in het Nederlands}}&lt;br /&gt;
{{ls|el|Αυτό το κείμενο είναι στα Ελληνικά.}}&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
|style=&amp;quot;font-size:3em;&amp;quot;| &amp;amp;rarr;&lt;br /&gt;
| &amp;lt;div class=&amp;quot;multilingual&amp;quot;&amp;gt;&lt;br /&gt;
{{ls|en|This text is English}}&lt;br /&gt;
{{ls|fr|Ce texte est en français}}&lt;br /&gt;
{{ls|it|Questo testo è Italiano}}&lt;br /&gt;
{{ls|nl|Deze tekst is in het Nederlands}}&lt;br /&gt;
{{ls|el|Αυτό το κείμενο είναι στα Ελληνικά.}}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
This template wraps translations for [[Meta:Language select|Language select]], a script which dynamically hides languages when the user&amp;#039;s preferred language is available. &lt;br /&gt;
&lt;br /&gt;
===Parameters===&lt;br /&gt;
; Suppressing the leading label of the language name&lt;br /&gt;
:To suppress the language name heading the content (because it is already part of it):&lt;br /&gt;
:{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;pre&amp;gt;&amp;lt;div class=&amp;quot;multilingual&amp;quot;&amp;gt;&lt;br /&gt;
{{ls|en|This new text is &amp;#039;&amp;#039;&amp;#039;English&amp;#039;&amp;#039;&amp;#039;.|label=no}}&lt;br /&gt;
{{ls|fr|Cet ancien texte est en &amp;#039;&amp;#039;&amp;#039;français&amp;#039;&amp;#039;&amp;#039;.|label=no}}&lt;br /&gt;
{{ls|it|Questo vecchio testo è &amp;#039;&amp;#039;&amp;#039;Italiano&amp;#039;&amp;#039;&amp;#039;.|label=no}}&lt;br /&gt;
{{ls|nl|Deze oude tekst is in het &amp;#039;&amp;#039;&amp;#039;Nederlands&amp;#039;&amp;#039;&amp;#039;.|label=no}}&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
|style=&amp;quot;font-size:3em;&amp;quot;| &amp;amp;rarr;&lt;br /&gt;
| &amp;lt;div class=&amp;quot;multilingual&amp;quot;&amp;gt;&lt;br /&gt;
{{ls|en|This new text is &amp;#039;&amp;#039;&amp;#039;English&amp;#039;&amp;#039;&amp;#039;.|label=no}}&lt;br /&gt;
{{ls|fr|Cet ancien texte est en &amp;#039;&amp;#039;&amp;#039;français&amp;#039;&amp;#039;&amp;#039;.|label=no}}&lt;br /&gt;
{{ls|it|Questo vecchio testo è &amp;#039;&amp;#039;&amp;#039;Italiano&amp;#039;&amp;#039;&amp;#039;.|label=no}}&lt;br /&gt;
{{ls|nl|Deze oude tekst is in het &amp;#039;&amp;#039;&amp;#039;Nederlands&amp;#039;&amp;#039;&amp;#039;.|label=no}}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
; Outdated translations&lt;br /&gt;
:To mark a translation as outdated:&lt;br /&gt;
:{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;pre&amp;gt;&amp;lt;div class=&amp;quot;multilingual&amp;quot;&amp;gt;&lt;br /&gt;
{{ls|en|This new text is English.}}&lt;br /&gt;
{{ls|fr|Cet ancien texte est en français.|update=en}}&lt;br /&gt;
{{ls|it|Questo vecchio testo è Italiano.|update=en}}&lt;br /&gt;
{{ls|nl|Deze oude tekst is in het Nederlands.|update=en}}&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
|style=&amp;quot;font-size:3em;&amp;quot;| &amp;amp;rarr;&lt;br /&gt;
| &amp;lt;div class=&amp;quot;multilingual&amp;quot;&amp;gt;&lt;br /&gt;
{{ls|en|This new text is English.}}&lt;br /&gt;
{{ls|fr|Cet ancien texte est en français.|update=en}}&lt;br /&gt;
{{ls|it|Questo vecchio testo è Italiano.|update=en}}&lt;br /&gt;
{{ls|nl|Deze oude tekst is in het Nederlands.|update=en}}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
; Customize appearance&lt;br /&gt;
: To customize the appearance using CSS:&lt;br /&gt;
:{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;pre&amp;gt;&amp;lt;div class=&amp;quot;multilingual&amp;quot;&amp;gt;&lt;br /&gt;
{{ls|en|This text is English.|CSS-box=background:#000; color:#FFF;}}&lt;br /&gt;
{{ls|en|This text is English.|CSS-label=background:#000; color:#FFF;}}&lt;br /&gt;
{{ls|fr|Ce texte est en français.|CSS-box=background:#000; color:#FFF;}}&lt;br /&gt;
{{ls|fr|Ce texte est en français.|CSS-label=background:#000; color:#FFF;}}&lt;br /&gt;
{{ls|it|Questo testo è Italiano.|CSS-box=background:#000; color:#FFF;}}&lt;br /&gt;
{{ls|it|Questo testo è Italiano.|CSS-label=background:#000; color:#FFF;}}&lt;br /&gt;
{{ls|nl|Deze tekst is in het Nederlands.|CSS-box=background:#000; color:#FFF;}}&lt;br /&gt;
{{ls|nl|Deze tekst is in het Nederlands.|CSS-label=background:#000; color:#FFF;}}&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
|style=&amp;quot;font-size:3em;&amp;quot;| &amp;amp;rarr;&lt;br /&gt;
| &amp;lt;div class=&amp;quot;multilingual&amp;quot;&amp;gt;&lt;br /&gt;
{{ls|en|This text is English.|CSS-box=background:#000; color:#FFF;}}&lt;br /&gt;
{{ls|en|This text is English.|CSS-label=background:#000; color:#FFF;}}&lt;br /&gt;
{{ls|fr|Ce texte est en français.|CSS-box=background:#000; color:#FFF;}}&lt;br /&gt;
{{ls|fr|Ce texte est en français.|CSS-label=background:#000; color:#FFF;}}&lt;br /&gt;
{{ls|it|Questo testo è Italiano.|CSS-box=background:#000; color:#FFF;}}&lt;br /&gt;
{{ls|it|Questo testo è Italiano.|CSS-label=background:#000; color:#FFF;}}&lt;br /&gt;
{{ls|nl|Deze tekst is in het Nederlands.|CSS-box=background:#000; color:#FFF;}}&lt;br /&gt;
{{ls|nl|Deze tekst is in het Nederlands.|CSS-label=background:#000; color:#FFF;}}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
; Use of span boxes&lt;br /&gt;
:To mark a translation in a header:&lt;br /&gt;
:{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;pre&amp;gt;&amp;lt;div class=&amp;quot;multilingual&amp;quot;&amp;gt;&lt;br /&gt;
{{ls|en|This new text is English.|label=no|tag=span}}&lt;br /&gt;
{{ls|it|Questo vecchio testo è Italiano.|label=no|tag=span}}&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
|style=&amp;quot;font-size:3em;&amp;quot;| &amp;amp;rarr;&lt;br /&gt;
| &amp;lt;div class=&amp;quot;multilingual&amp;quot;&amp;gt;&lt;br /&gt;
{{ls|en|This new text is English.|label=no|tag=span}}&lt;br /&gt;
{{ls|it|Questo vecchio testo è Italiano.|label=no|tag=span}}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Translation===&lt;br /&gt;
To translate the &amp;quot;update needed&amp;quot; message, edit {{[[template:snippets/update needed|snippets/update needed]]}}.&lt;br /&gt;
&lt;br /&gt;
== Workaround if the translation contains an equal sign (because of URLs or custom HTML tags) ==&lt;br /&gt;
&lt;br /&gt;
If the translation contains an equal sign, possibly inside an URL, it will cause the text to not show up ([[phab:T16235]]). To workaround that, use the following syntax: precede the language parameter with &amp;lt;code&amp;gt;1=&amp;lt;/code&amp;gt;, and the text parameter with &amp;lt;code&amp;gt;2=&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
In the following examples, the first one won&amp;#039;t display correctly because of the equal sign of the URL. The second one uses the workaround to fix the issue.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;pre&amp;gt;&amp;lt;div class=&amp;quot;multilingual&amp;quot;&amp;gt;&lt;br /&gt;
{{ls|en|Example URL: http://example.com/?p=1|label=no}}&lt;br /&gt;
{{ls|1=en|2=Example URL: http://example.com/?p=1|label=no}}&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
|style=&amp;quot;font-size:3em;&amp;quot;| &amp;amp;rarr;&lt;br /&gt;
|&amp;lt;div class=&amp;quot;multilingual&amp;quot;&amp;gt;&lt;br /&gt;
{{ls|en|Example URL: http://example.com/?p=1|label=no}}&lt;br /&gt;
{{ls|1=en|2=Example URL: http://example.com/?p=1|label=no}}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* {{tlx|LangSelect}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- template categories --&amp;gt;&lt;br /&gt;
&amp;lt;includeonly&amp;gt;&lt;br /&gt;
[[Category:Tools and scripts]]&lt;br /&gt;
[[Category:Internationalization templates]]&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;Ciencia Al Poder</name></author>
	</entry>
</feed>