Modul:TemplateData: Unterschied zwischen den Versionen
2018-02-15
w>PerfektesChaos (2018-02-13) |
w>PerfektesChaos (2018-02-15) |
||
Zeile 1: | Zeile 1: | ||
local TemplateData = { suite = "TemplateData", | local TemplateData = { suite = "TemplateData", | ||
serial = "2018-02- | serial = "2018-02-15", | ||
item = 46997995 } | item = 46997995 } | ||
--[=[ | --[=[ | ||
Zeile 62: | Zeile 62: | ||
} | } | ||
local Permit = { | local Permit = { | ||
builder = { align = "block", | builder = { after = "block", | ||
align = "block", | |||
block = "block", | block = "block", | ||
compressed = "block", | compressed = "block", | ||
Zeile 1.162: | Zeile 1.163: | ||
if type( v ) == "table" and | if type( v ) == "table" and | ||
not v.deprecated and | not v.deprecated and | ||
type( k ) == "string" | type( k ) == "string" then | ||
k = mw.ustring.len( k ) | |||
if k > n then | |||
n = k | |||
end | |||
end | end | ||
end -- for k, v | end -- for k, v | ||
Zeile 1.201: | Zeile 1.204: | ||
code = mw.text.nowiki( code ):gsub( "N", "\n" ) | code = mw.text.nowiki( code ):gsub( "N", "\n" ) | ||
code = mw.html.create( "code" ) | code = mw.html.create( "code" ) | ||
:css( "margin-left", "1em" ) | |||
:css( "margin-right", "1em" ) | |||
:wikitext( code ) | :wikitext( code ) | ||
if r then | if r then |