Uso editar

Esta plantilla utiliza JS, así que para ver cualquier cambio o si no te funciona, vacía la caché de tu navegador (clic aquí y aquí).

{{galería|[[File:img1.jpg|120px|La primera imagen]]|[[File:Img2.png|120px|La segunda imagen]]|y así sucesivamente...}}

o

{{galería|
{{imagen|..paráms}}|
{{imagen|..paráms}}
}}

También puedes usar title<núm. de pestaña>=loquesea, o una cabecera de sección (==algo==) para anular el título normal de la imagen (número de imagen). Si hay encabezados de sección en el código, se asume que cada sección representa una pestaña, así que los encabezados no se muestran. Si quieres mostrarlos, puedes usar la sintaxis alternativa:

<h2 style="display:block">algo</h2>

A continuación, un ejemplo de cómo invalidar la numeración automática de pestañas:

{{galería|1=
[[Archivo:Algo.png]]
|title1=2
|2=
[[Archivo:Algo más.png]]
|title2=1
}}

La plantilla permite un máximo de 200 imágenes. También permite usar los parámetros opcionales width (si no se especifica el ancho, predetermina 400px), noborder, y align. El uso más común para esta plantilla podría ser:

{{galería
|{{imagen|
|archivo= 2008 Taiwan Designers Week PI on Basket.jpg
|texto_archivo= Basket - PI on Basket, showed a critical issue on a trendy increase of global price index.
|pie= At the Xinyi Public Assembly Hall in Taipei, Taiwan, the 2008 Taiwan Designers' Week showed topical phenomena on environment, modern lifestyle, current incident, and subculture.
|créditos= [[User:BrockF5|Rico Shen]]
|noticia_completa= 2008 Taiwan Designers' Week shows potential of innovations
|tam= 240
}}
|{{imagen|
|archivo= 2008Taipei101RunUp EliteChampions.jpg
|texto_archivo= Thomas Dold & Jenny Li, Champions of 2008 Taipei 101 Run Up
|pie= Thomas Dold (left) from Germany, and Jenny Li (right) from Taiwan, take the top honors at the 2008 Taipei 101 Run Up respectively in Men's and Women's Elite classes.
|créditos= [[User:BrockF5|Rico Shen]]
|noticia_completa=Jenny Li and Thomas Dold win the 2008 Taipei 101 Run Up
|tam=320
}}
|{{imagen|
|archivo=Mays Island, Cedar Rapids, June 12 2008.jpg
|texto_archivo= Mays Island, Cedar Rapids, June 12 2008
|pie=Mays Island in Cedar Rapids, Iowa, during the flooding of 2008, taken from Interstate 380 at around 2:00 p.m. on June 12, 2008. Nearly all of downtown is submerged in water.
|créditos=Golbez
|noticia_completa=Floodwaters swamp Cedar Rapids, Iowa
|tam=320
}}
|{{imagen|
|archivo=Opening Plenary - World Economic Forum on Africa 2008.jpg
|texto_archivo= Opening Plenary - World Economic Forum on Africa 2008
|pie=Leaders of various African countries met as part of the 2008 World Economic Forum on Africa.
|créditos=Eric Miller
|noticia_completa=<!--Artcile  not published so full story commented out. Critics of Robert Mugabe speak at Africa World Economic Forum-->
|tam=320
}}
}}

Que produce:

Basket - PI on Basket, showed a critical issue on a trendy increase of global price index.
Basket - PI on Basket, showed a critical issue on a trendy increase of global price index.
Rico Shen
At the Xinyi Public Assembly Hall in Taipei, Taiwan, the 2008 Taiwan Designers' Week showed topical phenomena on environment, modern lifestyle, current incident, and subculture.  » Noticia completa
Thomas Dold & Jenny Li, Champions of 2008 Taipei 101 Run Up
Thomas Dold & Jenny Li, Champions of 2008 Taipei 101 Run Up
Rico Shen
Thomas Dold (left) from Germany, and Jenny Li (right) from Taiwan, take the top honors at the 2008 Taipei 101 Run Up respectively in Men's and Women's Elite classes.  » Noticia completa
Mays Island, Cedar Rapids, June 12 2008
Mays Island, Cedar Rapids, June 12 2008
Golbez
Mays Island in Cedar Rapids, Iowa, during the flooding of 2008, taken from Interstate 380 at around 2:00 p.m. on June 12, 2008. Nearly all of downtown is submerged in water.  » Noticia completa
Opening Plenary - World Economic Forum on Africa 2008
Opening Plenary - World Economic Forum on Africa 2008
Eric Miller
Leaders of various African countries met as part of the 2008 World Economic Forum on Africa.

Algunos bugs y limitaciones editar

  • 200 imágenes máximo (pero si se necesitan más, puede editarse fácilmente esta plantilla)
  • La compatibilidad con encabezados (==algo==) es confusa (esto puede cambiar)
    • asume que tu encabezado es el título de una pestaña y lo oculta
      • si quieres un encabezado usa: <h2 style="display:block">foo</h2> (cambia el 2 al número de signos de igual que usarías en la sintaxis normal)
    • Makes it the title of the tab (as opposed to auto-numbering)
      • use a title<number>=picture_numb if you want to override other labeling of tabs

The max 200 tabs is a limit to this template, not the tab system, and can be expanded as needed. I don't consider that an issue. The tab title issues are problems with adapting the tabber code to the wiki. They require minnor changes to js (I should get around to fixing them sometime soon). In the meanwhile i don't think it will be an issue.

Nota: el título de las pestañas es determinado por:

  1. title<tab number>=something parameter of template (corresponding to title attribute of containing div)
  2. any section headers
  3. as last resort, automatically given a number (this is what is generally used)