Difference between revisions of "Template:Item infobox gallery"

From Final Fantasy XIV Online Wiki
Jump to navigation Jump to search
 
Line 3: Line 3:
|- style="text-align:center;"
|- style="text-align:center;"
| {{#if: {{{gallery1|}}}
| {{#if: {{{gallery1|}}}
| {{#if: {{#ifexist|{{{gallery1|}}}|+}}
| {{#if:  
     | [[Has appearance::File:{{{gallery1}}}|220x200px]]
     | [[Has appearance::File:{{{gallery1}}}|220x200px]]
     | [[File:{{{gallery1}}}|Add a gallery image]]
     | [[File:{{{gallery1}}}|Add a gallery image]]
   }}
   }}
| {{#if: {{#ifexist|{{#replace:{{BASEPAGENAME}}|:|-}}.jpg|+}}
| {{#if:
     | [[Has appearance::File:{{#replace:{{BASEPAGENAME}}|:|-}}.jpg|220x200px]]
     | [[Has appearance::File:{{#replace:{{BASEPAGENAME}}|:|-}}.jpg|220x200px]]
     | [[File:{{#replace:{{BASEPAGENAME}}|:|-}}.jpg|Add a gallery image]]
     | [[File:{{#replace:{{BASEPAGENAME}}|:|-}}.jpg|Add a gallery image]]

Latest revision as of 20:06, 1 April 2023

Description

Used to generate a gallery of images for the item. This template sets Property: Has appearance to the first image in the gallery.

Usage

{{Item infobox gallery
| name = 
| gallery1 = 
| gallery1-text = 
| gallery2 = 
| gallery2-text = 
| gallery3 = 
| gallery3-text = 
| gallery4 = 
| gallery4-text = 
| gallery5 = 
| gallery5-text = 
}}

Parameters

Parameters handled by {{Item infobox gallery}} template

name
Required. The canonical name, used for Property:Has appearance. Defaults to the name of the base article ({{BASEPAGENAME}}).
gallery1 ... gallery5
Optional. Gallery of images. Defaults to {{PAGENAME}}.jpg.
gallery1-text ... gallery5-text
Optional. Image descriptions.

Examples

<div class="infobox">
{{Item infobox gallery
| name = Parasol
| gallery1 = parasol image1.png
| gallery1-text = Image of Parasol
}}
</div>
Add a gallery image

Image of Parasol