Module:TNT: Difference between revisions
Content added Content deleted
(deprecate link function, always use c: for data links to Commons) |
(optimize libraryUtil loading only when needed) |
||
Line 36: | Line 36: | ||
local p = {} |
local p = {} |
||
local i18nDataset = 'I18n/Module:TNT.tab' |
local i18nDataset = 'I18n/Module:TNT.tab' |
||
⚫ | |||
-- Forward declaration of the local functions |
-- Forward declaration of the local functions |
||
Line 61: | Line 60: | ||
-- Identical to p.msg() above, but used from other lua modules |
-- Identical to p.msg() above, but used from other lua modules |
||
function p.format(dataset, key, params, lang) |
function p.format(dataset, key, params, lang) |
||
⚫ | |||
checkType('format', 1, dataset, 'string') |
checkType('format', 1, dataset, 'string') |
||
checkType('format', 2, key, 'string') |
checkType('format', 2, key, 'string') |