Modul:TemplateData: Unterschied zwischen den Versionen
2019-07-02
w>PerfektesChaos (2019-07-01) |
w>PerfektesChaos (2019-07-02) |
||
Zeile 1: | Zeile 1: | ||
local TemplateData = { suite = "TemplateData", | local TemplateData = { suite = "TemplateData", | ||
serial = "2019-07- | serial = "2019-07-02", | ||
item = 46997995 } | item = 46997995 } | ||
--[=[ | --[=[ | ||
Zeile 671: | Zeile 671: | ||
i = facet( k, 1 ) | i = facet( k, 1 ) | ||
if type( v ) == "table" then | if type( v ) == "table" then | ||
if v.label then | if type( v.label ) == "string" then | ||
s = mw.text.trim( v.label ) | s = mw.text.trim( v.label ) | ||
if s == "" then | if s == "" then | ||
Zeile 853: | Zeile 853: | ||
-- type | -- type | ||
if type( param.type ) == "string" then | |||
param.type = mw.text.trim( param.type ) | |||
if param.type == "" then | |||
param.type = false | |||
end | |||
end | |||
if param.type then | if param.type then | ||
s = Permit.types[ param.type ] | s = Permit.types[ param.type ] |