Module:Portal excerpt/config
From Soyjak Wiki, the free ensoyclopedia
Jump to navigationJump to search
Documentation for this module may be created at Module:Portal excerpt/config/doc
return {
maxRedirects = 2,
maxSelectionIndex = 20, -- increasing this value too much may lead to hitting the time limit! this is the max paragraph or file index accepted
-- Error messages
errorMessages = { -- clean this up
prefix = 'Excerpt error: ',
noPage = 'No page given',
pageNotFound = "Page '%s' not found",
leadEmpty = 'Lead section is empty',
sectionEmpty = "Section '%s' is empty",
sectionNotFound = "Section '%s' not found",
fragmentEmpty = "Fragment '%s' is empty",
fragmentNotFound = "Fragment '%s' not found",
noValidPages = 'No valid pages found',
failedContent = "Page '%s' contains problematic content",
redirectLoop = "Redirect loop when attempting to resolve page '%s'",
tooManyRedirects = "Too many redirects while resolving page '%s'",
removedTemplate = "Removed template '%s'",
removedUnknownTemplate = "Removed unapproved template '%s'",
removedParserFunction = "Removed parser function '%s'",
removedTemplateParameter = 'Removed unresolved template parameter',
removedMagicWord = "Removed magic word '%s'",
removedBehaviorSwitch = "Removed behavior switch '%s'",
removedComments = 'Removed comments',
removedCats = 'Removed categories',
removedRefs = 'Removed references',
removedChoose = 'Removed <choose> tag',
removedTemplateStyles = 'Removed TemplateStyles tag',
missingTemplateCleaner = "No cleanup handler exists for template '%s'",
templateCleanerFailed = "Critical failure: Cleanup failed for template '%s'",
noSelectedParagraphs = 'None of the requested paragraphs were found',
unsafeChooseSurvived = 'Critical failure: <choose> tag survived cleanup',
unsafeTemplateSurvived = "Critical failure: Template '%s' survived cleanup",
unsafeParserFunctionSurvived = "Critical failure: Parser function '%s' survived cleanup",
unsafeMagicWordSurvived = "Critical failure: Magic word '%s' survived cleanup",
unsafeBehaviorSwitchSurvived = "Critical failure: Behavior switch '%s' survived cleanup",
unsafeTemplateParameterSurvived = 'Critical failure: Unresolved template parameter survived cleanup',
unsafeTemplateStylesSurvived = 'Critical failure: TemplateStyles tag survived cleanup',
candidateStub = "Skipped stub page '%s'",
candidateEmpty = "Page '%s' produced an empty excerpt",
},
-- Regular expressions to match all image parameters
imageParams = {
{ 'thumb', 'thumbnail', 'frame', 'framed', 'frameless' },
{ 'right', 'left', 'center', 'centre', 'none' },
{ 'baseline', 'middle', 'sub', 'super', 'text-top', 'text-bottom', 'top', 'bottom' },
},
multipleImageParams = {
'align',
'direction',
'width',
'total_width',
'perrow',
'caption_align',
'header',
'footer',
'header_align',
'footer_align',
'image_gap',
},
portableInfoboxTemplates = {
'[Ii]nfobox',
'[Ii]nfobox[ _].+',
},
-- List of file types that are allowed to be transcluded on Soyjak Wiki
fileTypes = {
'[Gg][Ii][Ff]',
'[Ww][Ee][Bb][Pp]',
'[Jj][Pp][Ee]?[Gg]',
'[Pp][Nn][Gg]',
'[Ss][Vv][Gg]',
},
}