Modul:Vorlage:Dokumentation: Unterschied zwischen den Versionen
2017-11-07
wp>PerfektesChaos (2017-11-06) |
wp>PerfektesChaos (2017-11-07) |
||
Zeile 1: | Zeile 1: | ||
--[=[ 2017-11- | --[=[ 2017-11-07 | ||
{{Dokumentation}} | {{Dokumentation}} | ||
]=] | ]=] | ||
Zeile 86: | Zeile 86: | ||
r = "__NOTOC__\n" .. area | r = "__NOTOC__\n" .. area | ||
elseif n == 2 then | elseif n == 2 then | ||
local toc = mw.html.create( "div" ) | |||
:newline() | |||
:addClass( "nonumtoc" ) | |||
:wikitext( "__TOC__" ) | |||
:newline() | |||
toc = tostring( toc ) | |||
if init == 1 then | if init == 1 then | ||
r = | r = toc .. area | ||
else | else | ||
r = string.format( "% | r = string.format( "%s%s%s", | ||
toc, | |||
area:sub( 1, init - 1 ), | area:sub( 1, init - 1 ), | ||
area:sub( init ) ) | area:sub( init ) ) |