Modul:TemplateData: Unterschied zwischen den Versionen
2017-03-31
wp>PerfektesChaos (2017-03-30) |
wp>PerfektesChaos (2017-03-31) |
||
Zeile 1: | Zeile 1: | ||
local TemplateData = { serial = "2017-03- | local TemplateData = { serial = "2017-03-31", | ||
suite = "TemplateData" } | suite = "TemplateData" } | ||
--[=[ | --[=[ | ||
Zeile 236: | Zeile 236: | ||
r = r .. f( adjust:sub( i, j - 1 ) ) | r = r .. f( adjust:sub( i, j - 1 ) ) | ||
end | end | ||
i = | i = k + 1 | ||
j, k = adjust:find( "</noexport>", i, true ) | j, k = adjust:find( "</noexport>", i, true ) | ||
if j then | if j then | ||
r = r .. adjust:sub( i, j - 1 ) | r = r .. adjust:sub( i, j - 1 ) | ||
i = j | i = k + 1 | ||
j, k = adjust:find( "<noexport>", i, true ) | |||
else | |||
Fault( "missing </noexport>" ) | |||
end | end | ||
end -- while j | end -- while j | ||
r = r .. adjust:sub( i ) | |||
else | else | ||
r = f( adjust ) | r = f( adjust ) | ||
Zeile 840: | Zeile 844: | ||
v = nil | v = nil | ||
elem = nil | elem = nil | ||
elseif k == "inherits" then | elseif k == "inherits" then | ||
elem = v | elem = v | ||
Zeile 850: | Zeile 851: | ||
Data.heirs[ slot ] = v | Data.heirs[ slot ] = v | ||
v = nil | v = nil | ||
elseif s == "string" then | |||
v = mw.text.nowiki( v ) | |||
elem = v | |||
else | else | ||
elem = v | elem = v |