Advertisement

Module:Mods/doc

This is the documentation page for Module:Mods

Exports

The below four functions accept a frame containing their arguments as well as the arguments directly, so they can be used with #invoke.

link(string)

Generate a link to the given mod (named by unlocalized name or abbreviation).

link(string,string)

Generate a link to the given mod (named by unlocalized name or abbreviation). Use the second argument as the link text.

getAbbrv(string)

Given an unlocalized name or abbreviation, return the abbreviation.

getName(string)

Given an unlocalized name or abbreviation, return the localized name.

Data format

The top of this module defines the list of mods, in the form of a table. Keys are mod abbreviations, while values are a list of strings, {link, name, localizedName}

keyvalue
linkRequired name of the mod's page.
nameOptional unlocalized name of the mod if it isn't the same as the name of its page.
localizedNameRequired localized name of the mod.