• Home
  • Random
  • Log in
  • Settings
  • About English Wikipedia @ Freddythechick
English Wikipedia @ Freddythechick

Template:Image array/sandbox

  • Language
  • Watch
  • View source
< Template:Image array
__EXPECTUNUSEDTEMPLATE__This is the template sandbox page for Template:Image array (diff).
See also the companion subpage for test cases.
Template documentation[view] [edit] [history] [purge]
Before making a gallery, please read over the image use policy for galleries. Generally, a gallery should not be added so long as there is space for images to be effectively presented adjacent to text.
This template uses Lua:
  • Module:Image array (sandbox)

This template is used to generate a rectangular image array, typically for use within an infobox. For image galleries, please use {{gallery}} or <gallery>...</gallery>. For most other uses, please consider using {{multiple image}} instead.

Contents

  • 1 Basic usage
  • 2 Embedding
  • 3 Additional parameters
    • 3.1 Default image size
    • 3.2 Alternative text
    • 3.3 Hint text
    • 3.4 Link text
    • 3.5 Borders
    • 3.6 Classes
  • 4 Examples.
    • 4.1 Example 1: images only
    • 4.2 Example 2: optional parameters
  • 5 See also

Basic usage

A 4x4 image array <syntaxhighlight lang="wikitext"></syntaxhighlight> <syntaxhighlight lang="wikitext"> </syntaxhighlight> A 5x5 image array <syntaxhighlight lang="wikitext"></syntaxhighlight> A 5x6 image array <syntaxhighlight lang="wikitext"></syntaxhighlight>

Embedding

To create a simple floating image array, use the template with {{Image frame}}. <syntaxhighlight lang="wikitext">

</syntaxhighlight>

Additional parameters

Default image size

The default image size is 60px by 70px. To override this default, use |width=YY and |height=ZZ, where YY and ZZ are raw numbers, without the px units.

Alternative text

To add alternative text for an image, use |altX=, where X is the image number.

Hint text

To add hint or tooltip text for an image, use |textX=, where X is the image number. To use the captions for the hint or tooltip text for all images, use |text=y.

Link text

By default, clicking on an image will direct the viewer to the file page, which contains licensing and attribution information for the image. This is required for any non-public domain images. To change the link to the image, use |linkX=, where X is the image number. However, be careful to make sure that you only do this for public domain images that do not require attribution.

Borders

To add a standard image border to an image, use |borderX=, where X is the image number. To add a border around all the image cells, use |border-width=X, where X is the width in pixels.

Classes

To add a class to the entire image array, use |class=. For example, |class=infobox or |class=toccolours.

Examples.

Example 1: images only

<syntaxhighlight lang="wikitext" style="overflow:auto">

</syntaxhighlight>

Example 2: optional parameters

<syntaxhighlight lang="wikitext" style="overflow:auto">

alt1
caption1
alt2
caption2
alt3
caption3
alt4
caption4

</syntaxhighlight>

alt1
caption1
alt2
caption2
alt3
caption3
alt4
caption4

See also

  • {{Multiple image}}
  • {{Photomontage}}
  • {{Image frame}}
  • Wikipedia:Collage tips
The above documentation is transcluded from Template:Image array/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://enwiki.freddythechick.net/index.php?title=Template:Image_array/sandbox&oldid=6594822"
Last edited on 23 April 2016, at 01:02

Languages

      This page is not available in other languages.

      English Wikipedia @ Freddythechick
      • This page was last edited on 23 April 2016, at 01:02.
      • Content is available under Creative Commons Attribution-ShareAlike 4.0 unless otherwise noted.
      • About English Wikipedia @ Freddythechick
      • Desktop