Module:Excerpt/config
Jump to navigation
Jump to search
Module designed to exclude templates, tables, infoboxes or other elements from the text excerpts used in the Excerpt Template.
- Excluded Templates: Template:MainArticle - Template:Article Header - Template:Page Tabber - Template: Variant Tabber - Template:Alternative Title - Template:Maintenance - Template:Stub - Template:Quote - Template:Notices
- Credits: Sophivorus, Certes, Aidan9382 & others (List of Contributors), taken from the English Wikipedia
- License: CC-BY-SA-3.0 (Wikipedia)
return {
-- Templates that should never be transcluded
blacklist = {
'[Aa]rticle Header', '[Aa]rticle Header/Neurax Worm', '[Aa]rticle Header/Necroa Virus',
'[Aa]bout', '[Tt]his', '[Tt]his article is about',
'[Pp]age Tabber', '[Vv]ariant Tabber', '[Aa]rticle Tabber',
'[Aa]lternative Title',
'[Mm]ainArticle', '[Nn]otices',
'[Ss]tub',
'[Qq]uote',
'[Dd]efault ?[Ss]ort', 'DEFAULT ?SORT',
'[Dd]isplay ?title', 'DISPLAYTITLE', '[Ii]talic title',
'[Ee]xpand.*',
'[Mm]aintenance',
'[Hh]atnote',
'[Ii]nfo ?[Bb]ox', '[Rr]ow', -- infoboxes
'[Ll]ea?de? ?missing', '[Nn]o[ -]?[Ii]ntro', '[Nn]ointroduction', '[Nn]o[ -]?lea?de?', '[Mm]issingintro', '[Ii]ntro[ -]?missing', '[Nn]o ?lead ?section', '[Mm]issing lea?de?', '[Ll]ea?de? absent', '[Nn]o definition', '[Ii]ntroduction needed', '[Ii]ntroduction missing', '[Ii]ntro needed', '[Ll]ea?de? required', '[Nn][Oo][Ll]',
'[Ll]ea?de? ?too ?long', '[Ii]ntro ?length', '[Ll]ongintro', '[Ll]ong ?lea?de?', '[Ii]ntro[ -]?too[ -]?long', '[Ll][2T][Ll]', '[Ll]ead long',
'[Ll]ea?de?[ -]?rewrite', '[Ll]ea?de? ?section', '[Vv]agueintro', '[Cc]leanup[ -]?lead', '[Ii]ntro', '[Oo]pening', '[Ll]ea?de?', '[Ii]ntro[ -]?rewrite', 'LEAD', 'LEDE', '[Rr]ewrite lead',
'[Ll]ea?de?[ -]?too[ -]?short', '[Ee]xpand ?lea?de?', '[Tt]oo ?[Ss]hort', '[Ss]hort ?intro', '[Ss]hort ?lead', '[Ii]ntro[ -]?too[ -]?short', '[Bb]uild lead', '[Ii]ntro[ -]?expand', 'XL', 'TSL', '[Ll]2[Ss]',
'[Ll]ong', '[Tt]oo ?big', '[Ss]horten', '[Ss]plit', '[Tt]oo[ -]?[Ll]ong', '2[Ll]', '2long', 'TOOLONG', '[Bb]igPage',
'[Mm]ain[12]?', '[Mm]ain ?[Aa]rticles?', 'MAIN', '[Mm]ain page', '[Ss]ee ?main', '[Rr]ead ?main', '[Ff]ull article', '[Hh]urricane main', '[Cc]omprehensive', '[Mm]ultiple ?issues',
'[Mm]erge.*',
'[Mm]ore footnotes needed', '.*footnote.*', '.*citations.*',
'[Nn]avbox', '[Nn]avigation', '[Nn]avigation ?[Bb]ox', '[Nn]avigation Template', '[Hh]ider hiding', '[Cc]?VG [Nn]avigation', '[Tt]ransNB', '[Nn]avtable', -- navboxes
'[Nn]o footnotes', '[Cc]itations', '[Ii]nline',
'[Oo]ther ?[Uu]ses?[134]?', '[Oo]thers?', '[Oo]ther ?[Mm]eanings?', '[Dd]istinguish', '[Aa]lternateuses', '[Oo]thervalues', '[Ff]or other uses',
'[Oo]utline',
'^[Pp]p', '[Pp]p%-.+', -- {{pp-move-indef}} etc.
'[Rr]edirect', '[Rr][Ee]dir', '[Rr]DR',
'.*[Ss]ections.*',
'[Ss]ee[ -]?[Aa]lso', '[Aa]lso', '[Ll]ooking', '[Rr]elated articles?', '[Ll]ooking for', '[Ss]ee other', 'VT',
'[Ss]hort[ -]?desc', 'SHORTDESC', '[Dd]escription', '[Bb]rief description',
'TOC', '[Tt]oc ?[Ll]imit', -- Table of contents related
},
-- Map from image parameters to captions
-- Used for extracting the file out of the infobox
captions = {
{'map1', {'legend1'} },
{'map2', {'legend2'} },
{'image', {'image_caption', 'caption', 'description'} },
{'logo', {'logo_caption'} },
},
-- Tracking categories (without the category namespace)
categories = {
content = 'Articles with excerpts',
errors = 'Articles with broken excerpts',
--[0] = 'Articles with excerpts',
},
-- Prefix for generating the hatnote
hat = '{{hatnote|extraclasses=dablink excerpt-hat|selfref=yes|1=',
-- Title of the template styles (optional)
styles = 'Excerpt/styles.css'
}