Esta plantilla tiene dos propósitos: se utiliza principalmente en la transclusión de otras plantillas como {{ Expand French }} o {{ Expand Spanish }} para marcar artículos de Wikipedia en inglés que se pueden mejorar con una traducción de una Wikipedia en un idioma extranjero. En segundo lugar, esta plantilla se puede colocar directamente en las páginas de artículos si un artículo se puede mejorar con traducciones de varias Wikipedias en idiomas extranjeros. En general, debe utilizar una de las plantillas de esta lista siempre que sea posible, en lugar de esta plantilla. Si no está seguro de si esta es la plantilla correcta para usar, probablemente no lo sea.
El uso principal de esta plantilla es crear una nueva plantilla contenedora para un idioma en particular. Si necesita crear {{ Expand Klingon }} , siga estos pasos. Cuando se transcluye, la plantilla hija crea un {{ ambox }} de tipo "aviso" con instrucciones de traducción en un cuadro para ocultar/mostrar y clasifica la página en una o más categorías de traducción, según los valores de los parámetros.
Para obtener una lista de todas las plantillas hijas, consulte Categoría:Expandir por idioma Plantillas de Wikipedia .
Puede iniciar una nueva plantilla siguiendo estos pasos:{{Expand <Language-name>}}
Estos parámetros se pueden utilizar para crear una plantilla hija. El código de idioma ( |langcode=
) y el nombre del idioma ( |name=
) se pueden encontrar en meta:Tabla de proyectos Wikimedia#Proyectos por códigos de idioma.
|date=
– pasar a través; establecer en{{{date|}}}
|fa=
– se utiliza para generar nombres de categorías. Para artículos destacados, configure|fa=yes
|langcode=
– Código de idioma de 2 o 3 letras. [a] Por ejemplo, fr
.|name=
– Nombre completo del idioma en inglés; columna 2 en la tabla. Por ejemplo,French
|no interwiki=
– pasar a través; establecer en{{{no interwiki|}}}
|nodoc=
– pasar a través; establecer en{{{nodoc|}}}
|otherarticle=
– establecido en {{{1|}}}
; bloquea la generación de categorías de seguimiento para argumentos faltantes que solo se necesitan en la plantilla principal.|section=
– pasar a través; establecer en{{{section|}}}
|topic=
se utiliza en la generación de nombres de categorías; puede ser cualquier cadena, pero tiene un uso convencional; consulte § Temas a continuación.|googlelangcode=
– raramente usado. Ver abajo.No utilice |langcode2=
, |langcode3=
, |otherarticle2=
, o |otherarticle3=
.
El uso de |topic=
es una abreviatura diseñada para facilitar al usuario la categorización de un artículo que necesita una expansión de idioma en la subcategoría correcta. Un usuario puede usar la invocación simple , por ejemplo, lo que da como resultado la categorización en " Categoría: Artículos sobre gobierno y política que necesitan traducción de Wikipedia en francés ", sin tener que recordar detalles del nombre de la categoría o qué categorías están disponibles. No todas las plantillas de expansión de idioma usan , pero las que lo hacen eligen los valores de tema permitidos del conjunto bio , cult , geo , gov , hist , mil , sci , sport , struct , tech y transport , que implican una de un conjunto de subcategorías con nombres convencionales.{{Expand French|topic=gov}}
|topic=
Si hay demasiados artículos en una categoría de idioma, se pueden crear nuevas subcategorías para incluirlas y, si se desea, se puede agregar un nuevo código de tema a la plantilla para manejarlo, [b] incluso uno que no esté en la lista de valores de tema anterior. [c]
Param |googlelangcode=
solo es necesario en los casos en los que el código de traducción de idioma de Google no es el mismo que el código de traducción de idioma de Wikipedia. El único caso actual es el de la variedad de idioma noruego Nynorsk y se utiliza en Template:Expand Norwegian (Nynorsk) . Ejemplo de uso:
| googlelangcode=no <!--Not the English negative, but the langcode -->
Después de crear una nueva plantilla hija, debe crear la página de documento de plantilla y la categoría de seguimiento principal para el idioma. Si hay cientos o miles de inclusiones de la plantilla, la categoría de seguimiento puede resultar muy larga y difícil de explorar; se pueden crear subcategorías para subtemas como biografías, geografía, etc. En los pasos siguientes, "XXXX" representa el nombre del idioma de la plantilla que acaba de crear; por lo tanto, "XXXX" es la versión en francés de Template:Expand French .
{{Expand language/howto|XXXX}}
.Si se necesitan subcategorías porque hay demasiados artículos para la categoría principal, entonces:
La transclusión de una plantilla hija clasifica la página en una o más categorías según los parámetros. Los códigos de idioma se convierten al nombre completo del idioma, por lo que fr se convierte en francés en la cadena de nombre de la categoría, de se convierte en alemán , y así sucesivamente. Los códigos de tema suelen expandirse. Por ejemplo, cuando se utilizan como parte de un nombre de categoría, el código de tema geo se convierte en Geografía , gov se convierte en Gobierno y política , y así sucesivamente. La lista exacta de códigos de tema disponibles y sus expansiones depende de cada plantilla hija.
|topic=
parámetro: Categoría:< tema > artículos que necesitan traducción de Wikipedia en < idioma >|topic=
: Categoría:artículos que necesitan traducción de Wikipedia en < idioma >|fa=
: Categoría:Artículos destacados que necesitan traducción de Wikipedia en < idioma >El uso del |topic=
parámetro clasifica el artículo en una subcategoría asociada con el valor del tema. Algunas plantillas de idioma de Expand tienen subcategorías y valores de tema asociados, y otras no. Como ejemplo, esta tabla [d] muestra los |topic=
códigos disponibles para {{ Expand French }} y enlaces a la subcategoría de cada uno:
No todos los idiomas tienen subcategorías para cada tema; aquí hay {{ Expand Catalan }} con tres temas/subcategorías:
La mayoría de los idiomas tienen menos transclusiones de la plantilla y no necesitan subcategorías; por ejemplo, {{ Expandir hindi }} , {{ Expandir persa }} o {{ Expandir turco }} .
Para obtener un modelo genérico de copia y pegado que se puede utilizar para iniciar una nueva plantilla secundaria, consulte Template:Expand language/template preload . Para ver algunos ejemplos reales, consulte:
Un uso secundario de esta plantilla es colocarla directamente en la página de un artículo. Por lo general, esto se debe evitar cuando se dispone de una plantilla de idioma específico (como {{ Expand French }} ) para su uso. Sin embargo, la transclusión directa puede ser útil para un artículo que se puede mejorar con traducciones de más de una Wikipedia en idioma extranjero.
{{Expand language |langcode=xx |otherarticle=<Article-1 in lang-xx> |langcode2=yy |otherarticle2=<Article-2 in lang-yy> |langcode3=zz |otherarticle3=<Article-3 in lang-zz>}}
Consejo: Si solo hay un idioma involucrado, entonces no utilice esta plantilla. [e]
|langcode=
– Código de idioma de 2 o 3 letras del primer artículo extranjero de Wikipedia que enlaza [a] Por ejemplo, fr
. Obligatorio.|langcode2=
– código del segundo artículo extranjero de Wikipedia. [e] Por ejemplo, de
. Opcional.)|langcode3=
– código del tercer artículo extranjero de Wikipedia. [a] Por ejemplo, es
. Opcional.|otherarticle=
– nombre del artículo en el idioma original, correspondiente al primer código de idioma. Obligatorio.|otherarticle2=
– nombre del artículo en el idioma original, correspondiente al segundo código de idioma. Opcional. [e]|otherarticle3=
– nombre del artículo en el idioma original, correspondiente al tercer código de idioma. Opcional.|section=yes
– opcional; se establece en 'sí' cuando se utiliza en una sección del artículo en lugar de en la parte superior. Opcional.|date=
– opcional; actualizado por el bot si se omite.|fa=
– opcional; si el artículo es un artículo destacado o no.No utilice estos parámetros para la transclusión directa:
|name=
(predeterminado en 'Expandir idioma'; solo es necesario para incluir plantillas; podría cambiar la membresía de la clase CSS si se modifica, lo que podría afectar la apariencia renderizada del cuadro)|topic=
(podría interferir con la categorización)Esta plantilla utiliza entre 1 y 9 funciones de análisis costosas según los parámetros que se utilicen. En determinadas páginas con una gran cantidad de otras plantillas que utilizan funciones de análisis costosas, esto puede provocar que se alcancen los límites de la plantilla .
|langcode=
, consulte la columna uno de meta:Tabla de proyectos Wikimedia#Proyectos por códigos de idioma./topics
subpágina para agregar una fila a la tabla de temas en el documento, por cada nuevo tema agregado que no esté en la lista. Vea, por ejemplo, el uso de |topic=commune
en {{ Expand French }} .|fa=
y |topic=
y diez para las filas de la tabla de temas. Quince es un número bajo y no es motivo de preocupación.Sin descripción.