Diferencia entre revisiones de «Plantilla:Traducción»

De FdIwiki ELP
Saltar a: navegación, buscar
Línea 1: Línea 1:
 
<noinclude>
 
<noinclude>
 
{{traducción
 
{{traducción
|es=Plantilla:Traducción
+
|en=Plantilla:Traducción
 
}}
 
}}
  
This template adds available translations for the page to the top through the use of flags.
+
Esta plantilla añade a la parte superior derecha de la página enlaces a sus traducciones disponibles, usando banderas.
  
To prevent issues, this template must be placed '''at the very beginning of a page'''.
+
Para evitar problemas, la plantilla debe colocarse '''al principio de la página'''.
  
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.
+
== Sintaxis ==
 
+
== Syntax ==
+
 
<pre>
 
<pre>
 
{{traducción
 
{{traducción
| noborder=true (OPTIONAL)
+
| noborder=true (Opcional)
| title=localized page display title
+
| title=Título_Página_Actual
| lang=page:translated page
+
| lang=Título_Traducción
| lang2=translated page2
+
| lang2=Título_Otra_Traducción
 
| etc...
 
| etc...
 
}}
 
}}
 
</pre>
 
</pre>
  
Warning! Do not include the language of the current page. This will only confuse readers.
+
'''Nota.''' No se suele incluir el idioma actual de la página.
  
=== Example ===
+
=== Ejemplo ===
On a page called [[Template:Otherlang]]
+
En una página llamada''Página_Ejemplo'', cuya traducción se encuentra en ''Sample_Page'':
 
<pre>
 
<pre>
 
{{traducción
 
{{traducción
| title=Template:Otherlang
+
| title=Página_Ejemplo
| es=Plantilla:Traducción
+
| en=Sample_Page
 
}}
 
}}
 
</pre>
 
</pre>
  
Note that:
+
== Idiomas Disponibles ==
* The language "<code>en</code>" is not included, as it is the language of the page that template is being used on.
+
* <code>title</code> is assigned the translated name of the page, and will appear as the display title (heading) for the page. This can replace the existing <nowiki>{{wrongtitle}} and {{DISPLAYTITLE}}</nowiki> templates currently in common use.
+
* The English page has no suffix.
+
 
+
== Available Languages ==
+
 
{| class="table table-bordered" border="2" cellpadding="7"
 
{| class="table table-bordered" border="2" cellpadding="7"
 
! Idioma
 
! Idioma
Línea 51: Línea 44:
 
|[[File:En.png | 48px]]
 
|[[File:En.png | 48px]]
 
|}
 
|}
 +
 +
== Referencias ==
 +
* [[http://wiki.micdoodle8.com/wiki/Template:Otherlang | Template:Otherlang]]
  
 
</noinclude> {{#if: {{{title|}}} | {{DISPLAYTITLE:{{{title}}}}} }}<div style="position:relative;top:-42px;margin-bottom: -40px;float:right;text-align:right;padding:2px;line-height:11px;background:#000000{{#if: {{{noborder|}}} | margin-top:5px;border:0; | border:1px solid #000000;border-bottom:0;}}">{{#if: {{{en|}}} | '''[[File:En.png|alt=English|link={{{en}}}|48px]]''' }} {{#if: {{{es|}}} | [[File:Es.png|alt=Español|link={{{es}}}|48px]] }} </div>
 
</noinclude> {{#if: {{{title|}}} | {{DISPLAYTITLE:{{{title}}}}} }}<div style="position:relative;top:-42px;margin-bottom: -40px;float:right;text-align:right;padding:2px;line-height:11px;background:#000000{{#if: {{{noborder|}}} | margin-top:5px;border:0; | border:1px solid #000000;border-bottom:0;}}">{{#if: {{{en|}}} | '''[[File:En.png|alt=English|link={{{en}}}|48px]]''' }} {{#if: {{{es|}}} | [[File:Es.png|alt=Español|link={{{es}}}|48px]] }} </div>

Revisión de 13:18 2 ene 2021

English

Esta plantilla añade a la parte superior derecha de la página enlaces a sus traducciones disponibles, usando banderas.

Para evitar problemas, la plantilla debe colocarse al principio de la página.

Sintaxis

{{traducción
| noborder=true (Opcional)
| title=Título_Página_Actual
| lang=Título_Traducción
| lang2=Título_Otra_Traducción
| etc...
}}

Nota. No se suele incluir el idioma actual de la página.

Ejemplo

En una página llamadaPágina_Ejemplo, cuya traducción se encuentra en Sample_Page:

{{traducción
| title=Página_Ejemplo
| en=Sample_Page
}}

Idiomas Disponibles

Idioma Sintaxis Resultado
Español es=Nombre_Página Es.png
English en=Page_Name En.png

Referencias