Zelda Wiki

OoT Navi.png

Hey! Listen!

This wiki contains spoilers! Read at your own risk!

READ MORE

Zelda Wiki
Advertisement
Zelda Wiki
10,266
pages

This is the documentation page for Module:Term

This is the main module for the following templates:

In addition, this module exports the following functions.

fetchTerm

fetchTerm(page, [game], [plural])

Parameters
Returns
  • The term for the given article and game, or nil if none found.
  • An error category if no term was found.
Examples
InputOutputStatus
fetchTerm("Dynalfos", "OoT")
"Dinolfos"
Green check.svg
nil
Green check.svg
Defaults to series term.
fetchTerm("Dinolfos")
"Dynalfos"
Green check.svg
nil
Green check.svg
Defaults to series term when term does not exist for specified game.
fetchTerm("Dinolfos", "ALttP")
"Dynalfos"
Green check.svg
nil
Green check.svg
Error when page does store any terms (game specified).
fetchTerm("Flippityfloppito", "SS")
nil
Green check.svg
{
  "Pages with Invalid or Missing Terms",
  "Skyward Sword Pages with Invalid or Missing Terms",
}
Green check.svg
Error when page does store any terms (no game specified).
fetchTerm("Flippityfloppityfloo")
nil
Green check.svg
{
  "Pages with Invalid or Missing Terms",
  "The Legend of Zelda Series Pages with Invalid or Missing Terms",
}
Green check.svg
Plural
fetchTerm("Bubble", "Series", true)
"Bubbles"
Green check.svg
nil
Green check.svg
Returns singular when no plural form exists.
fetchTerm("A Brother's Roast", "BotW", true)
Expected
"A Brother's Roast"
Actual
""
TFH Red Link desperate.png
Expected
{
  "Pages with Invalid or Missing Terms",
  "Breath of the Wild Pages with Invalid or Missing Terms",
}
Actual
nil
TFH Red Link desperate.png

fetchSubjects

fetchSubjects(term, [game])

Parameters
Returns
  • Returns the names of wiki pages that store the given term. If game is specified, the function will only return pages that store the term for that game.
Examples
InputOutputStatus
fetchSubjects("Wood")
{"Wood", "Wood (Character)"}
Green check.svg
fetchSubjects("Wood", "ST")
{"Wood (Character)"}
Green check.svg
fetchSubjects("Link", "MM")
{"Link", "Link (Goron)", "Mr. No Fairy"}
Green check.svg
fetchSubjects("Fooloo Limpah")
{}
Green check.svg
Advertisement