Modul:TemplateData: Unterschied zwischen den Versionen
2018-03-10
wp>PerfektesChaos (2018-03-01) |
wp>PerfektesChaos (2018-03-10) |
||
Zeile 1: | Zeile 1: | ||
local TemplateData = { suite = "TemplateData", | local TemplateData = { suite = "TemplateData", | ||
serial = "2018-03- | serial = "2018-03-10", | ||
item = 46997995 } | item = 46997995 } | ||
--[=[ | --[=[ | ||
Zeile 1.502: | Zeile 1.502: | ||
-- Returns string, or not | -- Returns string, or not | ||
if type( adapt ) == "string" then | if type( adapt ) == "string" then | ||
local lucky | |||
Data.source = adapt | Data.source = adapt | ||
free() | free() | ||
Data.got = mw.text.jsonDecode | lucky, Data.got = pcall( mw.text.jsonDecode, Data.source ) | ||
if Data.got then | if Data.got then | ||
full() | full() |