hypixel skyblock
Dev icon This is a module documentation subpage for Module:T.
It contains usage information, categories and other content that is not part of the original module page.

This module provides the lua implementations of {{T}}. While this module is mainly for the template, it may be loaded via other lua modules.

Dependent Module

Loading the module

To load this module and make its method available for use, Add this line of code to the start of your module: local t = require('Module:T') The methods documented below will be available for use under the variable name you loaded this module in.

Alternatively, you can use this module using the code below by using Module:LoadLib. local loadLib = require('Module:LoadLib') _G = loadLib(_G, { t='Module:T', -- Place any other modules to load in here... }) Depending on the settings you used in loadLib(), the methods of this module may be available under their respective variables in the module this module was loaded in.

Example usage

-- import the module local t = require("Module:T") -- use `transclusion` for templates local myFirstTemplateLink = t.transclusion("Sandbox") -- parameters are the same as usual local mySecondTemplateLink = t.transclusion("Sandbox", { "a", "b=c", "'d'", }) -- flags work, too local myThirdTemplateLink = t.transclusion("Sandbox", { "a", "b=c", "'d'", }, {multiline = true}) -- use `invocation` for modules local myFirstModuleLink = t.invocation("Sandbox", "main") -- everything else is the same as `transclusion` local mySecondModuleLink = t.invocation("Sandbox", "main", { "a", "b=c", "'d'", }, {multiline = true})

Methods

.transclusion(<title>(string)<params>(tablenil)<options>(tablenil))

Generator for transclusion syntax, e.g. {{sandbox}}.

Parameters

<title>
The name of the template to link to, without the namespace prefix.
<params>
(Optional.) A sequentual table of parameters, as described above.
<options>
(Optional.) A table with configuration flags, as described above.

.invocation(<title>(string)<func>(string)<params>(tablenil)<options>(tablenil))

Generator for invocation syntax, e.g. {{#invoke:foo|bar}}.

Parameters

<title>
The name of the module to link to, without the namespace prefix.
<func>
The name of the function to call.
<params>
(Optional.) A sequentual table of parameters, as described above.
<options>
(Optional.) A table with configuration flags, as described above.

.main(<frame>(frame))

Entry point from the wikitext side. Determines which generator to use based on the provided arguments.

Parameters

<frame>
A frame object whose arguments will determine the correct generator to use.