Modul:TemplateData: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
2018-04-03
wp>PerfektesChaos (2018-04-02 15) |
wp>PerfektesChaos (2018-04-03) |
||
Zeile 1: | Zeile 1: | ||
local TemplateData = { suite = "TemplateData", | local TemplateData = { suite = "TemplateData", | ||
serial = "2018-04- | serial = "2018-04-03", | ||
item = 46997995 } | item = 46997995 } | ||
--[=[ | --[=[ | ||
Zeile 55: | Zeile 55: | ||
params = false, -- table, exported parameters | params = false, -- table, exported parameters | ||
scream = false, -- error messages | scream = false, -- error messages | ||
sibling = false, -- TOC juxtaposed | |||
slang = false, -- project language code | slang = false, -- project language code | ||
slim = false, -- JSON reduced to plain | slim = false, -- JSON reduced to plain | ||
Zeile 1.563: | Zeile 1.564: | ||
if Data.leading and arglist.TOCsibling then | if Data.leading and arglist.TOCsibling then | ||
Data.sibling = mw.text.trim( arglist.TOCsibling ) | Data.sibling = mw.text.trim( arglist.TOCsibling ) | ||
end | |||
if arglist.lang then | |||
Data.slang = arglist.lang:lower() | |||
elseif adapt.lang then | |||
Data.slang = adapt.lang:lower() | |||
end | end | ||
if arglist.JSON then | if arglist.JSON then | ||
Zeile 1.579: | Zeile 1.585: | ||
Data.strip = s | Data.strip = s | ||
end | end | ||
end | end | ||
if type( arglist.vertical ) == "string" and | if type( arglist.vertical ) == "string" and |