WARFRAME Wiki
Advertisement
WARFRAME Wiki

Mod TT 20px Final Act

Template documentation (for the above template, sometimes hidden or invisible)
Description
This template will make a link to the Mod with a tooltip showing the mod. It will only accept the exact name of the mod.
Note: Some mod articles have "(Mod)" suffix which shouldn't be included. It'll give an error like in the example below.
Syntax
Type {{M|Mod|Custom Name}} as a replacement for mod link.
Input examples

{{M|Vitality}}

{{M|Reach|Melee Mod}}

{{M|Stick of Truth}} Incorrect mod name gives an error.

  • Lua error in Module:Tooltips at line 36: M:Tooltips.getFullTooltip(): icon not found in "Mods" for "Stick of Truth" (Are you using the wrong tooltip template or made a typo? If not, you likely have to edit Module:Mods/data. If content is outdated, please replace the tooltip template call with a normal wikitext link.).

The example with Scorch mod. You should always use the mod's name without (Mod) suffix.

  • {{M|Antitoxin}} => Mod TT 20px Antitoxin
  • {{M|Antitoxin (Mod)}} => Lua error in Module:Tooltips at line 36: M:Tooltips.getFullTooltip(): icon not found in "Mods" for "Antitoxin (Mod)" (Are you using the wrong tooltip template or made a typo? If not, you likely have to edit Module:Mods/data. If content is outdated, please replace the tooltip template call with a normal wikitext link.).
Technical stuff ▾▾

Mostly the same as in the text below, but now the work is done by Module:Mods.
Old notes below:
The template checks if first argument matches the name of the mod in Module:Mods/data. This is to check if a mod with that name actually exists. Another possibility would've been to check if an article with that name exists but it's limited to 250 calls per article and is not ideal as it would break on Mods 2.0.

  • If the mod exists, class="mod-tooltip" data-param="{{#var:Name}}" tells javascript that this text wants a tooltip, which is made by {{Tooltip/Mod}}.
  • If the mod doesn't exist, the error is shown instead of a redlink along with Category:Mod Tooltip error added on that page.

If second argument is used -> Category:Mod Tooltip rename is added on the page as to list pages with second argument, as they are harder to edit automatically if there's a need for that. Note: commented out until needed


Visit Template:M/doc to edit this text! (How does this work?)
Advertisement