Module:Excerpt/config
Appearance
![]() | This module is rated as beta, and is ready for widespread use. It is still new and should be used with some caution to ensure the results are as expected. |
![]() | This module is subject to page protection. It is a highly visible module in use by a very large number of pages, or is substituted very frequently. Because vandalism or mistakes would affect many pages, and even trivial editing might cause substantial load on the servers, it is protected from editing. |
![]() | This Lua module is used on approximately 13,000 pages and changes may be widely noticed. Test changes in the module's /sandbox or /testcases subpages, or in your own module sandbox. Consider discussing changes on the talk page before implementing them. |
Config used by Module:Excerpt. Controls aspects related to categories, hatnotes, captions, the template blacklist, and html styling.
return {
-- Templates that should never be transcluded
templates = {
'.*[Ii]nfobox.*', 'Taxobox', -- infoboxes
'.*[Ss]idebar.*', -- sidebars
'.*[Nn]avbox.*', -- navboxes
'[Cc]urrent.*', -- {{Current}} etc.
'[Pp]p%-.+', -- {{pp-move-indef}} etc.
'[Uu]se .+ dates', -- {{Use dmy dates}} etc.
'[Uu]se .+ English', '[Uu]se .+ spelling', 'EngvarB', -- {{Use American English}} etc.
'[Ss]hort[ -]?desc.*', 'SHORTDESC', 'Description', 'Brief description',
'[Ss]poken.*', -- Spoken Wikipedia related
'.*TOC.*', -- Table of contents related
'.*[Cc]oor.*', 'Location', -- Coordinates
'DISPLAYTITLE', 'Displaytitle', 'Display title',
'DEFAULT ?SORT', '[Dd]efault ?[Ss]ort',
'Main', '[Mm]ain ?[Aa]rticles?', 'MAIN', '[Mm]ain[12]', 'Main page', '[Ss]ee ?main', 'Readmain', 'Full article',
'Good article', 'Good Article', 'GA article', 'GA icon',
'Featured article', 'Featured', 'Featuredarticle', 'FeaturedSmall',
'Other uses', 'Others?', '[Oo]ther ?[Uu]ses?1?', '[Oo]ther ?[Mm]eanings?',
'For', 'For1', 'For2', 'FOR', 'For the', 'Forthe',
'About',
'Very long', 'Too long', 'Long',
'Redirect.*', 'Redir',
'Unreferenced', 'References',
'Citations broken from PEIS limit',
'Semiprotected',
'Short description',
},
-- Map from image parameters to captions
-- Used for extracting the file out of the infobox
captions = {
{'map1', {'legend1'} },
{'map2', {'legend2'} },
{'image', {'caption', 'description'} },
},
-- Tracking categories (without the category namespace)
categories = {
content = 'Articles with excerpts',
errors = 'Articles with broken excerpts',
--[0] = 'Articles with excerpts',
},
-- Hatnote prefix
hat = 'hatnote|extraclasses=dablink|selfref=yes|1=',
-- Title of the template styles (optional)
styles = 'Excerpt/styles.css'
}