Year of the Dragon: Through May 28th, claim free Expansion Pack (excluding Vecna Unleashed) or a Greater Elixir of Discovery! Speak to Xatheral in the Hall of Heroes. edit

Thank you for your patience while we continue to upgrade DDOwiki to the latest MediaWiki LTS version. If you find any errors on the site, please visit the Discord chat server and let us know.

Game mechanicsNewbie guideIn developmentDDO StoreSocial Media


ChallengesClassesCollectablesCraftingEnhancementsEpic DestiniesFavorFeats

GlossaryItemsMapsMonstersPlacesQuestsRacesReincarnationSkillsSpells


Please create an account or log in to remove ads, build a reputation, and unlock more editing privileges and then visit DDO wiki's IRC Chat/Discord if you need any help!

Template:Gallery

From DDO wiki
Jump to navigation Jump to search

USAGE[edit]

{{ Gallery | First image.jpg | Second_image.png | ... | Nth image.bmp | caption 1 = Image of First | caption # = ... | alt 1 = alternate image | alt # = ... }}

  • This template will accept unlimited* implicit or explicitly numbered parameters. Each numbered parameter is expected to be just the name of the file itself, ie First image.jpg or Second_image.png only. Do not put File: or Media: in front of it and don't wrap it in [[Square brackets]].
  • (Optional) |caption #= parameters are available to change the default text from a link to the file page to whatever you want to have as a caption.
  • (Optional) |alt #= parameters let you override the default image if the image is missing with any other image on wiki of your choice. (- Default: No pic.jpg
    -)
  • (Optional) |mode= allows you to use the traditional, nolines, packed, packed-overlay, or packed-hover modes. Note: the slideshow mode option is not available until we upgrade to MW:1.28+. (- Default: traditional -)
  • (Optional) |caption= allows you to add a caption to the entire gallery. Not to be confused with the |caption #= option above.
  • (Optional) |widths= allows you to set the max width in px (input the integer part only) of all the images. (- Default: 120 -)
  • (Optional) |heights= allows you to set the max height in px (input the integer part only) of all the images. (- Default: 120 -)
  • (Optional) |per row= allows you to define the number of images that should be in a row. Set to 0 for "auto-adjust". (- Default: 0 -)

CODING[edit]

The code in this section is "includeonly" transcluded onto the page.