Content deleted Content added
Sophivorus (talk | contribs) Merging the new fragment transclusion functionality into the new excerpt function |
Sophivorus (talk | contribs) Fix excerpt function |
||
Line 799:
output[5] = '<' .. tag .. ' class="excerpt">\n'
if article ~= '{{{1}}}' then
local options = args --
options.paraflags =
options.fileflags =
options.nobold = 1
options.fragment = args.fragment
options.keepTables =
options.keepRefs =
options.keepSubsections =
local pageNames = { (article .. '#' .. (section or '')) }
local text = main(pageNames, options)
if text == "" and d.brokenCategory and d.brokenCategory ~= "" and mw.title.getCurrentTitle().isContentPage then
output[6] = "[[Category:" .. d.brokenCategory .. "]]"
|