«Modulu:TNT»: berrikuspenen arteko aldeak

133 bytes added ,  Duela 2 urte
t
Copying 4 changes by Yurik: "docs link, add language param, better description, more docs changes" from mw:Module:TNT. See docs.
t (Copying 10 changes by Yurik,Krinkle: "fixed doc link, Try ucfirst to bypass some unknown cache, add language param, better description, more docs changes, Created page with "-- -- ATTENTION: This code is maintained at https://www.mediawiki.org/wiki/Module:TNT -- Please do not modify it anywhere else, as it may get copied and override yo..."" from mw:Module:TNT)
t (Copying 4 changes by Yurik: "docs link, add language param, better description, more docs changes" from mw:Module:TNT. See docs.)
-- wikis without any translation changes. All translation text is stored
-- in the global Data:*.tab pages on Commons, and used everywhere.
--
-- SEE: https://www.mediawiki.org/wiki/Multilingual_Templates_and_Modules
--
-- ATTENTION:
for k, v in pairs(frame.args) do
if k == 1 then
dataset = mw.text.trim(v)
elseif k == 2 then
id = mw.text.trim(v)
elseif type(k) == 'number' then
table.insert(params, v)
elseif k == 'lang' and v ~= '_' then
lang = mw.text.trim(v)
end
end
-- Given a dataset name, convert it to a title with the 'commons:data:' prefix
function link(dataset)
dataset = 'Data:' .. mw.text.trim(dataset or '')
if mw.site.siteName == 'Wikimedia Commons' then
return dataset
8.581

edits