Module:Gallery List/Documentation

From Zelda Wiki, the Zelda encyclopedia
Jump to navigation Jump to search

This is the documentation page for Module:Gallery List

This is the main module for the following templates:

In addition, this module exports the following functions.

parseEntry

parseEntry(subject, game, fileType, [options])

Allows other modules such as Module:Data Table to use Template:Gallery List's filename generation syntax.

Parameters

Returns

  • An object containing a filename, a term link, a term string, and the subject received minus any Template:Gallery List syntax.

Examples

#InputOutputStatus
1
parseEntry("Candy (The Minish Cap)", "TMC", "Sprite")
{
  subject = "Candy (The Minish Cap)",
  file = "File:TMC Candy Sprite.png",
  term = "Candy",
  link = "[[Candy (The Minish Cap)#The Minish Cap|Candy]]",
  info = "",
}
Green check.svg
2
parseEntry(
  "Ore Chunk [Red] <span>(10)</span>",
  "OoS",
  "Sprite"
)
{
  subject = "Ore Chunk",
  file = "File:OoS Ore Chunk Red Sprite.png",
  link = "[[Ore Chunk#Oracle of Seasons|Ore Chunk]]",
  term = "Ore Chunk",
  variant = "Red",
  info = " <span>(10)</span>",
}
Green check.svg
3
parseEntry(
  "Stained Glass [File:TMC Stained Glass Artwork.png]",
  "TMC",
  ""
)
{
  info = "",
  file = "File:TMC Stained Glass Artwork.png",
  term = "Stained Glass",
  link = "[[Stained Glass#The Minish Cap|Stained Glass]]",
  subject = "Stained Glass",
}
Green check.svg
4
parseEntry("Hyper Pico Bloom [No Image]", "TMC", "")
{
  info = "",
  file = "File:No Image.png",
  term = "Hyper Pico Bloom",
  link = "[[Hyper Pico Bloom#The Minish Cap|Hyper Pico Bloom]]",
  subject = "Hyper Pico Bloom",
}
Green check.svg
5
parseEntry(
  "Deku Tree",
  "TWW",
  "Figurine Model",
  { useTerms = false }
)
{
  subject = "Deku Tree",
  file = "File:TWW Deku Tree Figurine Model.png",
  term = "Deku Tree",
  link = "[[Deku Tree]]",
  info = "",
}
Green check.svg
6
parseEntry("Bomb", "ALttP", "30 Sprite", { plural = true })
{
  subject = "Bomb",
  file = "File:ALttP Bombs 30 Sprite.png",
  term = "Bombs",
  link = "[[Bomb#A Link to the Past|Bombs]]",
  info = "",
}
Green check.svg