Module:Excerpt/config: Difference between revisions

From Vigyanwiki
< Module:Excerpt
(Created page with "return { -- Templates that should never be transcluded blacklist = { '2021 United States Capitol attack', '2021 storming of the United States Capitol', '[Aa]bout', '[T...")
 
m (1 revision imported from alpha:Module:Excerpt/config)
 
(2 intermediate revisions by 2 users not shown)
Line 3: Line 3:
-- Templates that should never be transcluded
-- Templates that should never be transcluded
blacklist = {
blacklist = {
'2021 United States Capitol attack', '2021 storming of the United States Capitol',  
'2021 United States Capitol attack', '2021 storming of the United States Capitol',
'[Aa]bout', '[Tt]his', '[Tt]his article is about',  
'[Aa]bout', '[Tt]his', '[Tt]his article is about',
'[Aa]griculture',
'[Aa]griculture',
'[Bb]roader',  
'[Aa]nchor',
'[Cc]ampaignbox', '[Cc]ampaign',  
'[Bb]roader',
'[Cc]itations broken from PEIS limit',  
'[Cc]ampaignbox', '[Cc]ampaign',
'.*[Cc]oor.*', '[Ll]ocation', '[Ll]ocation dec', '[Cc]o-ord', -- Coordinates
'[Cc]itations broken from PEIS limit',
'[Cc]urrent.*', '[Ff]lux', '[Ll]ive', '[Oo]n ?going.*', '[Rr]ecent ?event', '[Rr]ecent news', '[Bb]reaking news', -- {{Current}} etc.
'[Cc]oor', '[Ll]ocation', '[Ll]ocation dec', '[Cc]o%-ord', -- Coordinates
'[Dd]efault ?[Ss]ort', 'DEFAULT ?SORT',  
'[Cc]urrent', '[Ff]lux', '[Ll]ive', '[Oo]n ?going', '[Rr]ecent ?event', '[Rr]ecent news', '[Bb]reaking news', -- {{Current}} etc.
'[Dd]isplay ?title', 'DISPLAYTITLE', '[Ii]talic title',  
'[C]lean*', '[B]are*',
'[Ff]eatured ?article', '[Ff]eatured', '[Ff]eaturedSmall', 'FA topicon',  
'[Dd]efault ?[Ss]ort', 'DEFAULT ?SORT',
'[Gg]ood [Aa]rticle','GA article', 'GA icon',  
'[Dd]isplay ?title', 'DISPLAYTITLE', '[Ii]talic title',
'.*[G]lobal.*',  
'[Ff]eatured ?article', '[Ff]eatured', '[Ff]eaturedSmall', 'FA topicon',
'.*[Ii]nfo ?[Bb]ox.*', '[Rr]ow', '[Tt]axobox', -- infoboxes
'^[Ff][Oo][Rr][12]?', '[Ff]or ?the',
'[Ll]ead ?missing', '[Ll]ede missing', '[Nn]o[ -]?[Ii]ntro', '[Nn]ointroduction', '[Nn]o[ -]?lead', '[Nn]o ?lede', '[Mm]issingintro', '[Ii]ntro[ -]?missing', '[Nn]o ?lead ?section',  '[Mm]issing lead', '[Mm]issing lede', '[Ll]ead absent', '[Ll]ede absent', '[Nn]o definition', '[Ii]ntroduction needed', '[Ii]ntroduction missing', '[Ii]ntro needed', '[Ll]ead required', '[Ll]ede required', '[Nn][Oo][Ll]',  
'[Ff]urther',
'[Ll]ead too long', '[Ll]ede ?too ?long', '[Ii]ntro ?length', '[Ll]ongintro', '[Ll]ong ?lead', '[Ll]ong ?lede', '[Ii]ntro[ -]?too[ -]?long', '[Ll][2T][Ll]', '[Ll]ead long',
'[Gg]ood [Aa]rticle','GA article', 'GA icon',
'[Ll]ead[ -]?rewrite', '[Ll]ead ?section', '[Vv]agueintro', '[Cc]leanup-lead', '[Ii]ntro', '[Oo]pening', '[Ll]ead', '[Ll]ede', '[Ii]ntro-?rewrite', '[Ll]ede rewrite', 'LEAD', 'LEDE', '[Rr]ewrite lead', '[Cc]leanup lead',
'[Gg]lobal',
'[Ll]ead[ -]?too[ -]?short', '[Ll]ede[ -]?too[ -]?short', '[Ee]xpand ?lead', '[Ee]xpand ?lede', '[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]',  
'[Ii]nfo ?[Bb]ox', '[Rr]ow', '[Tt]axobox', -- infoboxes
'[Mm]ain[12]?', '[Mm]ain ?[Aa]rticles?', 'MAIN', '[Mm]ain page', '[Ss]ee ?main', '[Rr]eadmain', '[Ff]ull article', '[Hh]urricane main', '[Cc]omprehensive', '[Mm]ultiple ?issues',
'[Ll]e(ad|de) ?missing', '[Nn]o[ -]?[Ii]ntro', '[Nn]ointroduction', '[Nn]o[ -]?le(ad|de)', '[Mm]issingintro', '[Ii]ntro[ -]?missing', '[Nn]o ?lead ?section', '[Mm]issing le(ad|de)', '[Ll]e(ad|de) absent', '[Nn]o definition', '[Ii]ntroduction needed', '[Ii]ntroduction missing', '[Ii]ntro needed', '[Ll]e(ad|de) required', '[Nn][Oo][Ll]',
'.*[Nn]avbox.*', '[Nn]avigation', '[Nn]avigation ?[Bb]ox', '[Nn]avigation Template', '[Hh]ider hiding', '[Cc]?VG [Nn]avigation', '[Tt]ransNB', '[Nn]avtable', -- navboxes
'[Ll]e(ad|de) ?too ?long', '[Ii]ntro ?length', '[Ll]ongintro', '[Ll]ong ?le(ad|de)', '[Ii]ntro[ -]?too[ -]?long', '[Ll][2T][Ll]', '[Ll]ead long',
'[Oo]ther ?[Uu]ses?[13]?', '[Oo]thers?', '[Oo]ther ?[Mm]eanings?', '[Dd]istinguish', '[Aa]lternateuses', '[Oo]thervalues', '[Ff]or other uses',  
'[Ll]e(ad|de)[ -]?rewrite', '[Ll]e(ad|de) ?section', '[Vv]agueintro', '[Cc]leanup[ -]?lead', '[Ii]ntro', '[Oo]pening', '[Ll]e(ad|de)', '[Ii]ntro[ -]?rewrite', 'LEAD', 'LEDE', '[Rr]ewrite lead',
'[Pp]p%-.+', -- {{pp-move-indef}} etc.
'[Ll]e(ad|de)[ -]?too[ -]?short', '[Ee]xpand ?le(ad|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]',
'[Rr]edirect.*', '[Rr][Ee]dir', '[Rr]DR',
'[Ll]ong', '[Tt]oo ?big', '[Ss]horten', '[Ss]plit', '[Tt]oo[ -]?[Ll]ong', '2[Ll]', '2long', 'TOOLONG', '[Bb]igPage',
'[Ss]ee ?[Aa]lso', '[Aa]lso', '[Ll]ooking', '[Rr]elated articles?', '[Ss]ee-[Aa]lso', '[Ll]ooking for', '[Ss]ee other', 'VT',  
'[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.*',
'[Nn]avbox', '[Nn]avigation', '[Nn]avigation ?[Bb]ox', '[Nn]avigation Template', '[Hh]ider hiding', '[Cc]?VG [Nn]avigation', '[Tt]ransNB', '[Nn]avtable', -- navboxes
'[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]ee[ -]?[Aa]lso', '[Aa]lso', '[Ll]ooking', '[Rr]elated articles?', '[Ll]ooking for', '[Ss]ee other', 'VT',
'[Ss]emiprotected',
'[Ss]emiprotected',
'[Ss]hort[ -]?desc.*', 'SHORTDESC', '[Dd]escription', '[Bb]rief description',
'[Ss]hort[ -]?desc', 'SHORTDESC', '[Dd]escription', '[Bb]rief description',
'.*[Ss]idebar.*', '[Hh]istory of .*', '[Gg]enocide', '.*[Tt]imeline.*', '.*[Tt]opic.*', '[Aa]ntisemitism', -- sidebars
'[Ss]idebar', '[Hh]istory of', '[Gg]enocide', '[Tt]imeline', '[Tt]opic', '[Aa]ntisemitism', -- sidebars
'[Ss]poken.*', -- Spoken Wikipedia related
'[Ss]pecial[Cc]hars',
'.*TOC.*', '[Tt]oc ?[Ll]imit', -- Table of contents related
'[Ss]poken', -- Spoken Wikipedia related
'[Uu]nref.*', '[Cc]itesources', '[Mm]issing references', '[Mm]issing refs', '[Nn]R', '[Nn]eeds references', '[Nn]o ?refs?', '[Nn]o ?references?', '[Nn]o ?sources', '[Nn]r', '[Rr]eferences', '[Rr]eferences needed', '[Rr]efs ?needed', 'UNREF', 'UNRF?', '[Uu]ncited[ -]?article', '[Uu]nrf?', '[Uu]nsourced', '[Uu]nverified',
'TOC', '[Tt]oc ?[Ll]imit', -- Table of contents related
'[Uu]se .+ English', '[Uu]se .+ spelling', '[Ee]ngvarB', -- {{Use American English}} etc.
'[Uu]se .+ English', '[Uu]se .+ spelling', '[Ee]ngvarB', -- {{Use American English}} etc.
'[Uu]se .+ dates', -- {{Use dmy dates}} etc.
'[Uu]se .+ dates', -- {{Use dmy dates}} etc.
'[Ff]urther', '[Ff]urther2',
'[Oo]utline',
'[Rr]efimprove',
'[Ss]pecial[Cc]hars',
'[Mm]erge from','[Mm]erge to',
'[Vv]ery ?long', '[Ll]ong', '[Tt]oo ?big', '[Ll]ongish', '[Ss]horten', '[Ss]plit.*', '[Tt]oo[ -]?[Ll]ong', '2[Ll]', '2long', 'TOOLONG', '[Bb]igPage',
'^[Ff][Oo][Rr][12]?', '[Ff]or ?the',


-- {{More citations needed}} and its many aliases
-- {{More citations needed}} and its many aliases
'[Mm]ore citations needed', '[Aa]dd references', '[Aa]dditional citations for verification', '[Aa]dditional citations', '[Aa]dditionalcitations', '[Aa]ddref', '[Aa]dref', '[Cc]itations missing', '[Cc]itations needed', '[Cc]itationsneeded', '[Cc]ite sources', '[Cc]leanup cite', '[Cc]leanup-cite', '[Cc]leanup-verify', '[Ff]ew references', '[Ff]ew refs', '[Ff]ew sources', '[Ff]ewreferences', '[Ff]ewrefs', '[Ii]mprove references', '[Ii]mprove refs', '[Ii]mprove sources', '[Ii]mprove-references', '[Ii]mprove-refs', '[Ii]mproveref', '[Ii]mprovereferences', '[Ii]mproverefs', '[Mm]CN', '[Mm]ORECN', '[Mm]cn', '[Mm]issing citations', '[Mm]ore CN', '[Mm]ore Citations Needed', '[Mm]ore citations', '[Mm]ore cn', '[Mm]ore references needed', '[Mm]ore references', '[Mm]ore refs', '[Mm]ore sources needed', '[Mm]ore sources', '[Mm]oreCN', '[Mm]orecn', '[Mm]oreref', '[Mm]orereferences', '[Mm]orerefs', '[Mm]oresources', '[Nn]eeds additional citations', '[Nn]eeds more citations', '[Nn]eeds more references', '[Nn]eeds more sources', '[Nn]ot verified', '[Nn]otverified', '[Rr]ef Improve', '[Rr]ef improve', '[Rr]ef-improve', '[Rr]efImprove', '[Rr]eference improve', '[Rr]eferenced', '[Rr]efim', '[Rr]efimprove article', '[Rr]efimprove', '[Rr]efimproved', '[Rr]ip', '[Ss]ources needed', '[Ss]ources', '[Uu]nderreferenced', '[Vv]erification', '[Vv]erify',
'[Aa]dditional ?[Cc]itations?', '[Aa]dd? ?ref', '[Cc]itations ?[Mm]issing', '[Cc]itations ?[Nn]eeded', '[Cc]ite ?[Ss]ources?', '[Cc]leanup[ -]?[Cc]ite', '[Cc]leanup[ -]?[Vv]erify', '[Ff]ew ?[Rr]efs?', '[Ff]ew ?sources?', '[Ii]mprove[ -]?refs?', '[Ii]mprove[ -]?sources?', '[Mm][Cc][Nn]', '[Mm][Oo][Rr][Ee] ?[Cc][Nn]', '[Mm]issing ?[Cc]itations', '[Mm]issing ?[Rr]efs?', '[Mm]ore ?[Cc]itations', '[Mm]ore ?ref', '[Mm]ore ?[Ss]ources?', '[Nn]o ?sources', '[Nn]ot ?verified', '[Nn]o ?refs?', '^[Nn][Rr]', '[Rr]ef[ -]?[Ii]mprove', '[Rr]eference improve', '[Rr]eferences?', '[Rr]efs ?[Nn]eeded', '[Rr]eferenced', '[Rr]efim', '[Rr]ip', '[Ss]ources?', '[Uu]ncited[ -]?[Aa]rticle', '[Uu]nderreferenced', '[Uu][Nn][Rr][Ee]?[Ff]?', '[Uu]nsourced', '[Uu]nverified', '[Vv]erification', '[Vv]erify',


-- {{POV}} and its many aliases
-- {{POV}} and its many aliases
'POV', '[Nn]pov', '[Pp]OV check', '[Pp]ov', '[Pp]ov check', '[Nn]POV', '[Nn]eutrality', '[Pp]OV-check-section', '[Pp]oint Of View', '[Pp]OV Check', '[Nn]POV Check', '[Nn]POV check', '[Pp]ov-Check', '[Pp]OV-Check', '[Pp]ov-check', '[Pp]ovcheck', '[Pp]OVCheck', '[Pp]OVcheck', '[Pp]ov Check', '[Pp]oV', '[Nn]eutral', '[Pp]ov-check-section', '[Nn]POV-dispute', '[Pp]OV dispute', '[Tt]oo friendly', '[Ww]hite washed', '[Pp]ov problem', '[Ss]pin', '[Nn]ot neutral', '[Pp]OV-check', '[Nn]PoV', '[Pp]oint of view',
'POV', '[Nn]pov', '[Pp]ov', '[Nn]POV', '[Pp]oint [Oo]f [Vv]iew', '[Nn]?[Pp][Oo][Vv][ -]?[Cc]heck', '[Pp]oV', '[Nn]eutral', '[Nn]?[Pp]OV[ -]dispute', '[Tt]oo friendly', '[Ww]hite washed', '[Pp]ov problem', '[Ss]pin', '[Nn]ot neutral', '[Nn]PoV',
},
},


Line 55: Line 55:
{'map1', {'legend1'} },
{'map1', {'legend1'} },
{'map2', {'legend2'} },
{'map2', {'legend2'} },
{'image', {'caption', 'description'} },
{'image', {'image_caption', 'caption', 'description'} },
{'logo', {'logo_caption'} },
{'logo', {'logo_caption'} },
},
},

Latest revision as of 09:26, 13 December 2022

Documentation for this module may be created at Module:Excerpt/config/doc

return {

	-- Templates that should never be transcluded
	blacklist = {
		'2021 United States Capitol attack', '2021 storming of the United States Capitol',
		'[Aa]bout', '[Tt]his', '[Tt]his article is about',
		'[Aa]griculture',
		'[Aa]nchor',
		'[Bb]roader',
		'[Cc]ampaignbox', '[Cc]ampaign',
		'[Cc]itations broken from PEIS limit',
		'[Cc]oor', '[Ll]ocation', '[Ll]ocation dec', '[Cc]o%-ord', -- Coordinates
		'[Cc]urrent', '[Ff]lux', '[Ll]ive', '[Oo]n ?going', '[Rr]ecent ?event', '[Rr]ecent news', '[Bb]reaking news', -- {{Current}} etc.
		'[C]lean*', '[B]are*',
		'[Dd]efault ?[Ss]ort', 'DEFAULT ?SORT',
		'[Dd]isplay ?title', 'DISPLAYTITLE', '[Ii]talic title',
		'[Ff]eatured ?article', '[Ff]eatured', '[Ff]eaturedSmall', 'FA topicon',
		'^[Ff][Oo][Rr][12]?', '[Ff]or ?the',
		'[Ff]urther',
		'[Gg]ood [Aa]rticle','GA article', 'GA icon',
		'[Gg]lobal',
		'[Ii]nfo ?[Bb]ox', '[Rr]ow', '[Tt]axobox', -- infoboxes
		'[Ll]e(ad|de) ?missing', '[Nn]o[ -]?[Ii]ntro', '[Nn]ointroduction', '[Nn]o[ -]?le(ad|de)', '[Mm]issingintro', '[Ii]ntro[ -]?missing', '[Nn]o ?lead ?section', '[Mm]issing le(ad|de)', '[Ll]e(ad|de) absent', '[Nn]o definition', '[Ii]ntroduction needed', '[Ii]ntroduction missing', '[Ii]ntro needed', '[Ll]e(ad|de) required', '[Nn][Oo][Ll]',
		'[Ll]e(ad|de) ?too ?long', '[Ii]ntro ?length', '[Ll]ongintro', '[Ll]ong ?le(ad|de)', '[Ii]ntro[ -]?too[ -]?long', '[Ll][2T][Ll]', '[Ll]ead long',
		'[Ll]e(ad|de)[ -]?rewrite', '[Ll]e(ad|de) ?section', '[Vv]agueintro', '[Cc]leanup[ -]?lead', '[Ii]ntro', '[Oo]pening', '[Ll]e(ad|de)', '[Ii]ntro[ -]?rewrite', 'LEAD', 'LEDE', '[Rr]ewrite lead',
		'[Ll]e(ad|de)[ -]?too[ -]?short', '[Ee]xpand ?le(ad|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.*',
		'[Nn]avbox', '[Nn]avigation', '[Nn]avigation ?[Bb]ox', '[Nn]avigation Template', '[Hh]ider hiding', '[Cc]?VG [Nn]avigation', '[Tt]ransNB', '[Nn]avtable', -- navboxes
		'[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]ee[ -]?[Aa]lso', '[Aa]lso', '[Ll]ooking', '[Rr]elated articles?', '[Ll]ooking for', '[Ss]ee other', 'VT',
		'[Ss]emiprotected',
		'[Ss]hort[ -]?desc', 'SHORTDESC', '[Dd]escription', '[Bb]rief description',
		'[Ss]idebar', '[Hh]istory of', '[Gg]enocide', '[Tt]imeline', '[Tt]opic', '[Aa]ntisemitism', -- sidebars
		'[Ss]pecial[Cc]hars',
		'[Ss]poken', -- Spoken Wikipedia related
		'TOC', '[Tt]oc ?[Ll]imit', -- Table of contents related
		'[Uu]se .+ English', '[Uu]se .+ spelling', '[Ee]ngvarB', -- {{Use American English}} etc.
		'[Uu]se .+ dates', -- {{Use dmy dates}} etc.

		-- {{More citations needed}} and its many aliases
		'[Aa]dditional ?[Cc]itations?', '[Aa]dd? ?ref', '[Cc]itations ?[Mm]issing', '[Cc]itations ?[Nn]eeded', '[Cc]ite ?[Ss]ources?', '[Cc]leanup[ -]?[Cc]ite', '[Cc]leanup[ -]?[Vv]erify', '[Ff]ew ?[Rr]efs?', '[Ff]ew ?sources?', '[Ii]mprove[ -]?refs?', '[Ii]mprove[ -]?sources?', '[Mm][Cc][Nn]', '[Mm][Oo][Rr][Ee] ?[Cc][Nn]', '[Mm]issing ?[Cc]itations', '[Mm]issing ?[Rr]efs?', '[Mm]ore ?[Cc]itations', '[Mm]ore ?ref', '[Mm]ore ?[Ss]ources?', '[Nn]o ?sources', '[Nn]ot ?verified', '[Nn]o ?refs?', '^[Nn][Rr]', '[Rr]ef[ -]?[Ii]mprove', '[Rr]eference improve', '[Rr]eferences?', '[Rr]efs ?[Nn]eeded', '[Rr]eferenced', '[Rr]efim', '[Rr]ip', '[Ss]ources?', '[Uu]ncited[ -]?[Aa]rticle', '[Uu]nderreferenced', '[Uu][Nn][Rr][Ee]?[Ff]?', '[Uu]nsourced', '[Uu]nverified', '[Vv]erification', '[Vv]erify',

		-- {{POV}} and its many aliases
		'POV', '[Nn]pov', '[Pp]ov', '[Nn]POV', '[Pp]oint [Oo]f [Vv]iew', '[Nn]?[Pp][Oo][Vv][ -]?[Cc]heck', '[Pp]oV', '[Nn]eutral', '[Nn]?[Pp]OV[ -]dispute', '[Tt]oo friendly', '[Ww]hite washed', '[Pp]ov problem', '[Ss]pin', '[Nn]ot neutral', '[Nn]PoV',
	},

	-- 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'
}