Diferencia entre revisiones de «Ayuda:Enlace interwiki»

Contenido eliminado Contenido añadido
Echani (discusión | contribs.)
Echani (discusión | contribs.)
Línea 168:
==Enlaces a otros idiomas==
 
Para el caso de proyectos multilingües, con un proyecto paralelo por cada idioma, se utiliza un sistema de enlaces interlingüísticos. Cada página del proyecto muestra una lista en el panel lateral, en la sección de otros idiomas, con enlaces a las páginas equivalentes en otros idiomas. Normalmente solo es necesario especificar manualmente una página en un idioma alternativo, ya que los [[w:WikipeidaWikipedia:Bots|botsBot]] se encargan de completar la lista automáticamente, siempre y cuando se especifique al menos uno.
 
Los enlaces entre lenguas también pueden utilizarse para conectar las descripciones en diferentes idiomas de una misma imagen.
===Sintaxis===
 
===Sintáxis básica===
 
Los enlaces interlingüísticos tienen la siguiente forma:
Línea 182 ⟶ 184:
No se debe incluir un enlace hacia la página de la lengua que está escribiendo.
 
===Sintáxis avanzada===
===Utilidad de los enlaces interlingüísticos===
 
*Cuando una página esté previsto que se use como [[w:Ayuda:Plantillas|plantilla]] (incluso si no está en el espacio de nombres ''Plantillas:''), los interwikis deben colocarse entre las etiquetas <tt>&lt;noinclude&gt;</tt> y <tt>&lt;/noinclude&gt;</tt>. Así se evita que los interwikis se añadan a la página en la que es insertada la plantilla. Por ejemplo <tt>&lt;noinclude&gt;[&#91;en:interwiki linking&#93;]&lt;/noinclude&gt;</tt>.
Los enlaces interlingüísticos se emplean para enlazar páginas equivalentes en diferenetes idiomas.
Thus, interlanguage link is mainly suitable for linking to the ''corresponding'' page in another language. It is not suitable for multiple links of the same other language. See '''[[Interlanguage use case]]''' for a discussion of common troubles with this system and other possible implementations.
 
The feature can also be used on an image description page to link to the same or a similar image in a sister project. Other interwiki links to images require the prefixed colon.
 
Note that, if a page may be used as a [[Help:template|template]] (even if it is not in the template namespace), it should note its interlanguage links between <tt>&lt;noinclude&gt;</tt> and <tt>&lt;/noinclude&gt;</tt>. This is the same idea as for [[Help:Category|categories]]. Comparison:
# <tt>[&#91;:en:link&#93;]</tt> or <tt>[&#91;:category:name&#93;]</tt> are ordinary links.
# <tt>[&#91;m:en:link&#93;]</tt> or <tt>[&#91;m:category:name&#93;]</tt> are Interwiki links, see above.
# <tt>[&#91;category:name&#93;]</tt> without leading colon adds a category to the page.<br /><tt>[&#91;en:link&#93;]</tt> without leading colon adds an interlanguage link to the page.
# <tt>&lt;noinclude&gt;[&#91;category:name&#93;]&lt;/noinclude&gt;</tt> limited to actual page.<br /><tt>&lt;noinclude&gt;[&#91;en:link&#93;]&lt;/noinclude&gt;</tt> ditto limited to actual page.
 
For projects like [[m:|Meta]] a missing leading colon has no effect, Meta doesn't support Interlanguage links. For [[w:|Wikipedia]] and similar projects it's a major difference.
 
The mutual order of interlanguage links is preserved, but otherwise the positions within the wikitext are immaterial, again the same rule as for categories. Usually they
are put at the end. With section editing they appear in the preview if they are in the section being edited.
 
 
A link to the project itself (hence also a link to the page itself), even if referred to with the project prefix, appears in-page.
 
Suppose that we have pages [[:de:Zug]], [[:en:Train]], [[:fr:Train]] then we need:
Línea 212 ⟶ 203:
*[[Template:About]].
 
===In-page interlanguage links===
To make an interlanguage link in-page, prefix a colon (e.g. <nowiki>[[:en:wiki|wiki]]</nowiki>). This can e.g. be useful to link to a page in another language if no local version is available. See also some example templates for conveniently making such links:
 
*Para que un enlace entre idiomas aparezca en el propio cuerpo de la página, se le debe colocar el símbolo '''<code>":"</code>''' al principio: por ejemplo <code><nowiki>[[:en:wiki]]</nowiki></code>. Puede ser útil para enlazar una página en otro idioma cuando no existe una versión local.
*{{tiw|en|nli}} - <nowiki>[[:nl:{{{1}}}]] (in [[Dutch language|Dutch]])</nowiki>
*{{tiw|en|nlil}} - <nowiki>[[{{{1}}}]] ([[:nl:{{{2|{{{1}}}}}}|nl]])</nowiki>
*{{tiw|en|nlii}} - <nowiki>''[[{{{1}}}]]'' ([[:nl:{{{2|{{{1}}}}}}|nl]])</nowiki>
*{{tiw|en|nlis}} - <nowiki>([[:nl:{{{1|{{PAGENAME}}}}}|nl]])</nowiki>
*{{tiw|en|nlinl}} - <nowiki>{{{1}}} ([[:nl:{{{2|{{{1}}}}}}|nl]])</nowiki>
 
*El texto que se muestra por defecto es el nombre del idioma. No se puede modificar (con la sintáxis <code><nowiki>[[a|b]]</nowiki></code>) a no ser que se convierta previamente en un enlace en el texto por medio de '''<code>":"</code>'''. Por ejemplo: <code><nowiki>[[:en:wiki|wiki]]</nowiki></code>.
===Interlanguage link in the wider sense===
 
*Un enlace al mismo proyecto (es decir, a la misma página), aparece en el cuerpo del texto incluso aunque se especifique el prefijo del proyecto. Por ejemplo <code><nowiki>[[es:Ayuda:Enlace_interwiki]]</nowiki></code> se muestra [[es:Ayuda:Enlace_interwiki]].
An interlanguage link in the wider sense includes a link to a corresponding page in another language which, for the software, is a regular link, as opposed to one employing the special interlanguage link ''feeature'' as described above. This can also be an internal link on a multilingual project, e.g. on Meta:
 
*Un enlace a otro idioma puede enlazar directamente a una sección del artículo de destino, por ejemplo: <code><nowiki>[[en:Help:Interwiki linking#See also]]</nowiki></code>.
*[[Meta:Interlanguage links]]
 
*En proyectos no multilingües, el funcionamiento es ligeramente diferente:
Possible reasons for using an "interlanguage link" in the page body include:
**en '''commons''', un enlace interlingüístico en ''commons'' enlazará a la versión en dicho idioma de [[w:|wikipedia]].
*control over position
** '''meta''' utiliza otro método basado en URL para los diferentes idiomas, por ejemplo véase http://meta.wikimedia.org/wiki/Meta:Es/Enlaces_entre_lenguas
*control over label
*the target contains an anchor
 
==Véase también==