Content deleted Content added
Sophivorus (talk | contribs) Update to latest, see talk page |
Sophivorus (talk | contribs) Update to latest version |
||
Line 40:
-- Make sure the requested page exists
local page = getArg(1
if not page then return getError('no-page') end
local title = mw.title.new(page)
Line 49:
-- Set variables
local
local hat = yesno( getArg('hat', true) )
local edit = yesno( getArg('edit', true) )
Line 60 ⟶ 59:
local templates = getArg('templates', getArg('template', ( only == 'template' and 1 ) ) )
local paragraphs = getArg('paragraphs', getArg('paragraph', ( only == 'paragraph' and 1 ) ) )
local references = getArg('references'
local subsections = not yesno( getArg('subsections') )
local noBold = not yesno( getArg('bold') )
Line 109 ⟶ 108:
end
-- Build the templates option from the config blacklist
local blacklist =
if templates then
if string.sub(templates, 1, 1) == '-' then
Line 146 ⟶ 145:
end
-- Add a line break
excerpt = '\n' .. excerpt .. '\n'
-- If no file was found, try to excerpt one from the removed infoboxes
|