Module:MediumLink/doc

Usage
This module is used to display the link of a medium in the in various different ways. These are then transcluded through link templates, where the editor can switch how they display the link under different conditions.

While it can be used inside other Lua modules if  is added, it is recommended to use through standard templates as is. Note that SSB4 uses the Module:SSB4Link instead of this module.

Creating a new medium link
When creating a new medium link to be used on pages, the following syntax is provided.
 * is the name of the medium (e.g. Animal Crossing: New Horizons)
 * is used to provide the direct link to the medium.
 * is the name of the medium under a shorthand name (e.g. New Horizons)
 * is the name of the medium under a long acronym name (e.g. ACNH)
 * is the name of the medium under a short acronym name (e.g. NH)
 * ,, and   should be reversed for the editors to decide what conditions to use to display the link.

If Gekijōban Doubutsu no Mori is declared as the, then   is automatically declared with   and appended to the medium name if   is not declared.

Note that while  and   are optional, if they are not declared and the editor tries to declare   or , an error will pop up, describing that they are either using invalid parameters or that the parameters needed to generate the link is empty. See Category:Pages with incorrect usage of link template for a list of pages with this error.

Example
"Animal Crossing: New Horizons" is the, with "New Horizons" as  , "ACNH" as   and "NH" as. Since  is not declared, the default link is "Animal Crossing: New Horizons".

When  is "nolink" and   is "short", the output is: New Horizons

When  is "sm" and   is "shortest", the output is: NH