Content deleted Content added
fix |
fix |
||
Line 37:
local show = {true, true, true, false, false, false}
local titleArg = 1
local titleText = args[titleArg] or (':' .. mw.getCurrentFrame():getParent():getTitle())▼
local title = mw.title.new(mw.text.trim(titleText), 'Template')▼
if not title then▼
error('Invalid title ' .. titleText)▼
end▼
local talkpage = title.talkPageTitle and title.talkPageTitle.fullText or ''▼
if args.collapsible then
Line 64 ⟶ 58:
if args.noedit then show[3] = false end
▲ local titleText = args[titleArg] or (':' .. mw.getCurrentFrame():getParent():getTitle())
▲ local title = mw.title.new(mw.text.trim(titleText), 'Template')
▲ if not title then
▲ error('Invalid title ' .. titleText)
▲ end
▲ local talkpage = title.talkPageTitle and title.talkPageTitle.fullText or ''
div = mw.html.create():tag('div')
div
|