Modul:Vorlage:LuaModuleDoc: Unterschied zwischen den Versionen
update
wp>PerfektesChaos (update) |
wp>PerfektesChaos (update) |
||
Zeile 1: | Zeile 1: | ||
--[=[ test 2013-04- | --[=[ test 2013-04-25 | ||
Support {{LuaModuleDoc}} | Support {{LuaModuleDoc}} | ||
* nav() | * nav() | ||
Zeile 58: | Zeile 58: | ||
-- navError() | -- navError() | ||
local r = LuaWiki.transclude( swift, collect ) | local r = LuaWiki.transclude( swift, collect ) | ||
local s | local s = LuaWiki.getVariable( "TALKPAGENAME" ) | ||
if not LuaWiki.isExisting( | if not LuaWiki.isExisting( s ) then | ||
if super then | if super then | ||
s = "NoTalkCentral" | s = "NoTalkCentral" | ||
Zeile 83: | Zeile 83: | ||
end | end | ||
end -- for i | end -- for i | ||
s = LuaWiki.getArg( "pageTemplateInsert" ) | s = LuaWiki.getArg( "pageTemplateInsert", "" ) | ||
if LuaWiki.isExisting( s ) then | if LuaWiki.isExisting( s ) then | ||
local suppress = LuaWiki.getArg( "noHint", "" ) | local suppress = LuaWiki.getArg( "noHint", "" ) | ||
if #suppress == 0 then | if #suppress == 0 then | ||
r = r .. LuaWiki.transclude( s, { collect[ 1 ] } ) | r = r .. LuaWiki.transclude( s, { collect[ 1 ] } ) | ||
end | |||
end | |||
s = LuaWiki.getArg( "categoryDocs", "" ) | |||
if #s > 0 then | |||
s = "Category:" .. s | |||
if LuaWiki.isExisting( s ) then | |||
r = r .. "[[" .. s .. "|" .. collect[ 1 ] .. "]]" | |||
end | end | ||
end | end | ||
Zeile 171: | Zeile 178: | ||
table.remove( r, i ) | table.remove( r, i ) | ||
end | end | ||
end -- for i | end -- for i -1 | ||
table.insert( r, 1, script ) | table.insert( r, 1, script ) | ||
table.insert( r, 2, tostring( #r ) ) | table.insert( r, 2, tostring( #r ) ) |