Difference between revisions of "Template:Item infobox gallery"
Jump to navigation
Jump to search
JohnnySolas (talk | contribs) |
JohnnySolas (talk | contribs) (Undo revision 581920 by JohnnySolas (talk)) Tag: Undo |
||
Line 3: | Line 3: | ||
|- style="text-align:center;" | |- style="text-align:center;" | ||
| {{#if: {{{gallery1|}}} | | {{#if: {{{gallery1|}}} | ||
| {{#if: {{ifimage|{{{gallery1|}}}|+}} | |||
| [[Has appearance::File:{{{gallery1}}}|220x200px]] | | [[Has appearance::File:{{{gallery1}}}|220x200px]] | ||
| [[File:{{{gallery1}}}|Add a gallery image]] | | [[File:{{{gallery1}}}|Add a gallery image]] | ||
}} | }} | ||
| {{#if: {{ifimage|{{#replace:{{BASEPAGENAME}}|:|-}}.jpg|+}} | |||
| [[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]] |
Revision as of 19:13, 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>