Modul:TemplateData: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
2017-04-11
wp>PerfektesChaos (2017-04-10) |
wp>PerfektesChaos (2017-04-11) |
||
Zeile 1: | Zeile 1: | ||
local TemplateData = { serial = "2017-04- | local TemplateData = { serial = "2017-04-11", | ||
suite = "TemplateData" } | suite = "TemplateData" } | ||
--[=[ | --[=[ | ||
Zeile 132: | Zeile 132: | ||
-- Returns number, or nil | -- Returns number, or nil | ||
local seek = string.format( Permit.search, | local seek = string.format( Permit.search, | ||
ask:gsub( "% | ask:gsub( "([%-()^$%%])", "%%%1" ) ) | ||
local i, k = Data.source:find( seek, at ) | local i, k = Data.source:find( seek, at ) | ||
local r, slice, source | local r, slice, source | ||
Zeile 399: | Zeile 398: | ||
para:wikitext( about.description[ 1 ] ) | para:wikitext( about.description[ 1 ] ) | ||
plus = mw.html.create( "ul" ) | plus = mw.html.create( "ul" ) | ||
if not Config.loudly then | |||
plus:addClass( "templatedata-maintain" ) | |||
:css( "display", "none" ) | |||
end | |||
for k, v in pairs( about.description[ 2 ] ) do | for k, v in pairs( about.description[ 2 ] ) do | ||
plus:node( mw.html.create( "li" ) | plus:node( mw.html.create( "li" ) | ||
:node( mw.html.create( "code" ) | :node( mw.html.create( "code" ) | ||
:wikitext( k ) ) | :wikitext( k ) ) | ||
:node( "br" ) | :node( mw.html.create( "br" ) ) | ||
:wikitext( fair( v ) ) ) | :wikitext( fair( v ) ) ) | ||
end -- for k, v | end -- for k, v |