https://it.humanipedia.org/index.php?title=Template:Otherlang&feed=atom&action=historyTemplate:Otherlang - Cronologia2024-03-28T21:06:25ZCronologia della pagina su questo sitoMediaWiki 1.39.6https://it.humanipedia.org/index.php?title=Template:Otherlang&diff=746&oldid=prevLuigi: Creata pagina con "{{otherlang |ru=Template:Otherlang:ru }} This template adds available translations for the page to the top through the use of flags. To prevent issues, this template must be..."2015-02-03T23:47:26Z<p>Creata pagina con "{{otherlang |ru=Template:Otherlang:ru }} This template adds available translations for the page to the top through the use of flags. To prevent issues, this template must be..."</p>
<p><b>Nuova pagina</b></p><div>{{otherlang<br />
|ru=Template:Otherlang:ru<br />
}}<br />
<br />
This template adds available translations for the page to the top through the use of flags.<br />
<br />
To prevent issues, this template must be placed '''at the very beginning of a page'''.<br />
<br />
Tip! When contributing a new translation to a document that already has other translations, please carry over the existing translations to the otherlang template of your contributed page. This way all multilingual pages are linked.<br />
<br />
== Syntax ==<br />
{{otherlang<br />
| noborder=true (OPTIONAL)<br />
| title=localized page display title<br />
| lang=page:lang<br />
| lang2=page:lang2<br />
| etc...<br />
}}<br />
<br />
<br />
Warning! Do not include the language of the current page. This will only confuse readers.<br />
<br />
=== Example ===<br />
On a page called [[Template:Otherlang]]:<br />
{{otherlang<br />
| title=Template:Otherlang<br />
| ru=Category:Programming:ru<br />
}}<br />
<br />
<br />
Note that:<br />
* The language "en" is not included, as it is the language of the page that template is being used on.<br />
* 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 {{wrongtitle}} and {{DISPLAYTITLE}} templates currently in common use.<br />
* The English page has no suffix.<br />
<br />
== Available Languages ==<br />
{| class="table table-bordered" border="2" cellpadding="7"<br />
! Language<br />
! Syntax<br />
! Result<br />
|- id="en"<br />
|English<br />
|en=Page_name<br />
|[[File:En.png]]<br />
|- id="ru"<br />
|Russian<br />
|ru=Page_name:ru<br />
|[[File:Ru.png]]<br />
|}<br />
<br />
{{#if: {{{title|}}} | {{DISPLAYTITLE:{{{title}}}}} }}{{#if: {{{en|}}} | '''[[File:En.png|alt=English|link={{{en}}}]]''' }} {{#if: {{{ru|}}} | [[File:Ru.png|alt=Русский|link={{{ru}}}]] }}</div>Luigi