Template:Gallery: Difference between revisions

From Tygron Support wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(7 intermediate revisions by one other user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
{{#tag:gallery|
<div class="gallerycaptionalign-{{{captionalign|center}}}">{{#tag:gallery|
{{#if:{{{ 1|}}}|File:{{{ 1|}}}{{!}}{{{ 2|}}}|}}
{{#if:{{{ 1|}}}|File:{{{ 1|}}}{{!}}{{{ 2|}}}|}}
{{#if:{{{ 3|}}}|File:{{{ 3|}}}{{!}}{{{ 4|}}}|}}
{{#if:{{{ 3|}}}|File:{{{ 3|}}}{{!}}{{{ 4|}}}|}}
Line 22: Line 22:
{{#if:{{{39|}}}|File:{{{39|}}}{{!}}{{{40|}}}|}}
{{#if:{{{39|}}}|File:{{{39|}}}{{!}}{{{40|}}}|}}
|mode={{{mode|traditional}}}
|mode={{{mode|traditional}}}
|widths={{{width|120px}}}
|position=center
|position=center
|captionalign=center
}}</div>
}}
</includeonly><noinclude>
</includeonly><noinclude>
Create standardized image gallery. Currently allows 20 images, but can be expanded to more.
Create standardized image gallery. Currently allows 20 images, but can be expanded to more.
Line 30: Line 30:
Example:
Example:
{{gallery
{{gallery
  | mode=
  | mode=traditional
  | Interface_game_top_bar_-_indicator_hover_panel.jpg | Hover over an indicator
  | Interface_game_top_bar_-_indicator_hover_panel.jpg | Hover over an indicator
  | Internal_breach_area.JPG                          |
  | Internal_breach_area.JPG                          |
  | Internal_breach_area_3.JPG                        | Watch the breach
  | Internal_breach_area_3.JPG                        | Watch the breach and the water and all the flooding.
}}
}}


Parameters:
Parameters:
* 1, 3, 5, 7..n: Filenames to include in the gallery
* 1, 3, 5, 7..n: Filenames of images to include in the gallery
* 2, 4, 6, 7..n: Accompanying captions for images
* mode: gallery mode.
* mode: gallery mode.
* captionalign: how to align the caption of the gallery
</noinclude>
</noinclude>

Latest revision as of 12:57, 28 May 2021

Create standardized image gallery. Currently allows 20 images, but can be expanded to more.

Example:


Parameters:

  • 1, 3, 5, 7..n: Filenames of images to include in the gallery
  • 2, 4, 6, 7..n: Accompanying captions for images
  • mode: gallery mode.
  • captionalign: how to align the caption of the gallery