Modul:TemplateData: Unterschied zwischen den Versionen
2018-03-11
w>PerfektesChaos (2018-03-10) |
w>PerfektesChaos (2018-03-11) |
||
Zeile 1: | Zeile 1: | ||
local TemplateData = { suite = "TemplateData", | local TemplateData = { suite = "TemplateData", | ||
serial = "2018-03- | serial = "2018-03-11", | ||
item = 46997995 } | item = 46997995 } | ||
--[=[ | --[=[ | ||
Zeile 196: | Zeile 196: | ||
-- Parameter: | -- Parameter: | ||
-- adapt -- string, message ID after "templatedata-" | -- adapt -- string, message ID after "templatedata-" | ||
-- Returns string, with localized text | -- Returns string, with localized text | ||
local o = mw.message.new( "templatedata-" .. adapt ) | |||
if Data.slang then | |||
o:inLanguage( Data.slang ) | |||
end | |||
return o:plain() | |||
end -- factory() | end -- factory() | ||
Zeile 378: | Zeile 380: | ||
seek = others[ i ] | seek = others[ i ] | ||
if variants[ seek ] then | if variants[ seek ] then | ||
r1 | r1 = variants[ seek ] | ||
variants[ seek ] = nil | variants[ seek ] = nil | ||
r2 | r2 = variants | ||
break -- for i | break -- for i | ||
end | end |