Ajuda:Multilanguage infobox images

Examples modifica

In these examples are used

In both cases the default width for images has been set to 150px (the usually default width is 300px).

{{#invoke:Infobox images demo 1|infobox|
|allitems=params
}}
M.P.KeyDefault namesLocalized names (i18n)ValuesWD content (ca)T.
IMI1nameName, names
GIBT2imageimage, ImageimatgeWD P18Imatges
GIBT3image_idximage_idximatge_idxi+
GIBT4altalts
GIBT5sizesize, widthmida, ampladas
GIBT6captioncaption, CaptionpeuWD P18,P2096P18,P2096s

M.: Abbreviation of the used module/s. P.: Position according to the appearance order in the infobox
You can change the localizated text in:

Used argument types: s (string), i+ (positive integer)


{{#invoke:Infobox images demo 2|infobox|
|allitems=params
}}
M.P.KeyDefault namesLocalized names (i18n)ValuesWD content (ca)T.
IMI1nameName, names
GIBT2image1image, Image, image1, Image1imatge, imatge1WD P18Imatges
GIBT3image_idx1image_idx1imatge_idx1i+
GIBT4alt1alt, alt1s
GIBT5size1size, width, size1, width1mida, amplada, mida1, amplada1s
GIBT6caption1caption, Caption, caption1, Caption1peu, peu1WD P18,P2096P18,P2096s
GIBT7image2image2, Image2imatge2s
GIBT8image_idx2image_idx2imatge_idx2i+
GIBT9alt2alt2s
GIBT10size2size2, width2mida2, amplada2s
GIBT11caption2caption2, Caption2peu2s

M.: Abbreviation of the used module/s. P.: Position according to the appearance order in the infobox
You can change the localizated text in:

Used argument types: s (string), i+ (positive integer)


Directly modifica

Without caption

Multilanguage infobox images
 
{{#invoke:Infobox images demo 1|infobox|
|image=Example title.svg
}}


Changing width

Multilanguage infobox images
 
{{#invoke:Infobox images demo 1|infobox|
|image=Example title.svg
|size=250px
}}


With caption

Multilanguage infobox images
 
Example
{{#invoke:Infobox images demo 1|infobox|
|image=Example title.svg
|caption=Example
}}


Two images with caption

Multilanguage infobox images
 
Example 1
 
Example 2
{{#invoke:Infobox images demo 2|infobox|
|image1=SVG Example1.svg
|caption1=Example 1
|image2=SVG Example2.svg
|caption2=Example 2
}}


Using Wikidata modifica

Always appears the pencil to link Wikidata below of last image or caption.

Histiocitosi de cèl·lules de Langerhans (Q374036) modifica

Only with one image

In Catalan WP exists legend for first image, then it is displayed

Histiocitosi de cèl·lules de Langerhans
 
Un pacient amb la malaltia de Hand-Schüller-Christian que és un subtipus d’histiocitosi de cèl·lules de Langerhans.  
{{#invoke:Infobox images demo 1|infobox|
|item=Q374036
}}


In this language doesn't exist a legend

Langerhans-cell histiocytosis (en)  
   
{{#invoke:Infobox images demo 1|infobox|
|item=Q374036
|lang=as
}}


If you do not want the image to appear

Histiocitosi de cèl·lules de Langerhans
{{#invoke:Infobox images demo 1|infobox|
|item=Q374036
|image=NONE
}}


Custom message is not displayed when image is load from WD

Histiocitosi de cèl·lules de Langerhans
 
Un pacient amb la malaltia de Hand-Schüller-Christian que és un subtipus d’histiocitosi de cèl·lules de Langerhans.  
{{#invoke:Infobox images demo 1|infobox|
|item=Q374036
|caption=A caption
}}


The selected image is the second one in WD

Histiocitosi de cèl·lules de Langerhans
 
Lesions estelades de la histiocitosi de cèl·lules de Langerhans  
{{#invoke:Infobox images demo 1|infobox|
|item=Q374036
|image_idx = 2
}}


With two first images

Existing in WD for this item

Histiocitosi de cèl·lules de Langerhans
 
Un pacient amb la malaltia de Hand-Schüller-Christian que és un subtipus d’histiocitosi de cèl·lules de Langerhans.
 
Lesions estelades de la histiocitosi de cèl·lules de Langerhans  
{{#invoke:Infobox images demo 2|infobox|
|item=Q374036
}}


Changing the order of images in WD

Histiocitosi de cèl·lules de Langerhans
 
Lesions estelades de la histiocitosi de cèl·lules de Langerhans
 
Un pacient amb la malaltia de Hand-Schüller-Christian que és un subtipus d’histiocitosi de cèl·lules de Langerhans.  
{{#invoke:Infobox images demo 2|infobox|
|item=Q374036
|image_idx1 = 2
|image_idx2 = 1
}}


Without the first image of WD

Histiocitosi de cèl·lules de Langerhans
 
Lesions estelades de la histiocitosi de cèl·lules de Langerhans  
{{#invoke:Infobox images demo 2|infobox|
|item=Q374036
|image_idx1 = 2
|image_idx2 = 0
}}


Mixed displayed images (manually and from WD)

Histiocitosi de cèl·lules de Langerhans
 
Un pacient amb la malaltia de Hand-Schüller-Christian que és un subtipus d’histiocitosi de cèl·lules de Langerhans.
   
{{#invoke:Infobox images demo 2|infobox|
|item=Q374036
|image1=SVG Example1.svg
}}


Histiocitosi de cèl·lules de Langerhans
 
Example 1
 
Un pacient amb la malaltia de Hand-Schüller-Christian que és un subtipus d’histiocitosi de cèl·lules de Langerhans.  
{{#invoke:Infobox images demo 2|infobox|
|item=Q374036
|image1=SVG Example1.svg
|caption1=Example 1
}}


Histiocitosi de cèl·lules de Langerhans
 
Example 1
 
Lesions estelades de la histiocitosi de cèl·lules de Langerhans  
{{#invoke:Infobox images demo 2|infobox|
|item=Q374036
|image1=SVG Example1.svg
|caption1=Example 1
|image_idx2 = 2
}}


Histiocitosi de cèl·lules de Langerhans
 
Un pacient amb la malaltia de Hand-Schüller-Christian que és un subtipus d’histiocitosi de cèl·lules de Langerhans.  
{{#invoke:Infobox images demo 2|infobox|
|item=Q374036
|image1=Hans-Schuller-Christian.jpg
}}