Modul:TemplateData: Unterschied zwischen den Versionen
2018-02-11T1645
wp>PerfektesChaos (2018-02-11) |
wp>PerfektesChaos (2018-02-11T1645) |
||
Zeile 1: | Zeile 1: | ||
local TemplateData = { suite = "TemplateData", | local TemplateData = { suite = "TemplateData", | ||
serial = "2018-02- | serial = "2018-02-11T1645", | ||
item = 46997995 } | item = 46997995 } | ||
--[=[ | --[=[ | ||
Zeile 36: | Zeile 36: | ||
cssTable = false, -- styles for params table | cssTable = false, -- styles for params table | ||
cssTabWrap = false, -- styles for params table wrapper | cssTabWrap = false, -- styles for params table wrapper | ||
debug = false, | |||
subpage = false, -- pattern to identify subpage | subpage = false, -- pattern to identify subpage | ||
suffix = false, -- subpage creation scheme | suffix = false, -- subpage creation scheme | ||
Zeile 1.084: | Zeile 1.084: | ||
local scan = "^[\n ]*%{%{[\n _]*|[\n _]*=[\n _]*%}%}[\n ]*$" | local scan = "^[\n ]*%{%{[\n _]*|[\n _]*=[\n _]*%}%}[\n ]*$" | ||
if source:match( scan, 1, true ) then | if source:match( scan, 1, true ) then | ||
code = source | code = source:gsub( "\n", "N" ) | ||
else | else | ||
s = mw.text.nowiki( source ):gsub( "\n", "\n" ) | |||
s | s = tostring( mw.html.create( "code" ) | ||
:wikitext( s ) ) | |||
Fault( "Invalid format " .. s ) | Fault( "Invalid format " .. s ) | ||
source = false | source = false |