Module:WikiProjectBanner/config
MyWikiBiz, Author Your Legacy — Sunday December 22, 2024
Jump to navigationJump to searchDocumentation for this module may be created at Module:WikiProjectBanner/config/doc
------------------------------------------------------------------------------- -- Module:WikiProjectBanner Configuration -- -- -- -- This is the configuration module for Module:WikiProjectBanner. It -- -- contains settings that affect the output of the whole module, for every -- -- WikiProject banner. For settings that only affect individual banners, -- -- please see the subpages of [[Module:WikiProjectBanner/banners]]. -- ------------------------------------------------------------------------------- return { ------------------------------------------------------------------------------- -- ASSESSMENT -- ------------------------------------------------------------------------------- assessment = { -- Quality -- quality = { -- The default quality parameter. param = 'class', -- CSS classes to use with quality assessments. $1 is the short form -- of the grade that is being used. classes = 'assess assess-$1', -- The default blurb used by quality rows. -- $1 is the full form of the grade being used. -- $2 is the project's assessment page. -- $3 is the page type of the page being assessed. blurb = "This $3 has been rated as '''$1''' on the project's [[$2#Quality scale|quality scale]].", grades = { unassessed = { short = '???', full = 'Unassessed', blurb = "This $3 has not yet received a rating on the project's [[$2#Quality scale|quality scale]].", triggers = {}, color = 'transparent', image = 'Symbol question.svg', hideImage = true, imageAlt = 'Unrated' }, fa = { short = 'FA', full = 'FA-Class', triggers = { 'fa' }, color = '#6699ff', image = 'Featured article star.svg', imageAlt = 'Featured article' }, a = { short = 'A', full = 'A-Class', triggers = { 'a' }, color = '#66ffff', image = 'Symbol a class.svg', imageAlt = 'A-Class article' }, ga = { short = 'GA', full = 'GA-Class', triggers = { 'ga' }, color = '#66ff66', image = 'Symbol support vote.svg', imageAlt = 'Good article' }, b = { short = 'B', full = 'B-Class', triggers = { 'b' }, color = '#b2ff66', image = 'Symbol b class.svg', hideImage = true, imageAlt = 'B-Class article' }, bplus = { short = 'B+', full = 'B+-Class', triggers = { 'b+' }, color = '#66ff66', image = 'Symbol bplus class.svg', hideImage = true, imageAlt = 'Bplus-Class article' }, c = { short = 'C', full = 'C-Class', triggers = { 'c' }, color = '#ffff66', image = 'Symbol c class.svg', hideImage = true, imageAlt = 'C-Class article' }, start = { short = 'Start', full = 'Start-Class', triggers = { 'start' }, color = '#ffaa66', image = 'Symbol start class.svg', hideImage = true, imageAlt = 'Start-Class article' }, stub = { short = 'Stub', full = 'Stub-Class', triggers = { 'stub' }, color = '#ff6666', image = 'Symbol stub class.svg', hideImage = true, imageAlt = 'Stub-Class article' }, al = { short = 'AL', full = 'A-Class List', triggers = { 'al' }, color = '#66ffff', image = 'Symbol a class.svg', hideImage = true, imageAlt = 'A-Class list' }, fl = { short = 'FL', full = 'Featured List', triggers = { 'fl' }, color = '#6699ff', image = 'Featured article star.svg', imageAlt = 'Featured list' }, list = { short = 'List', full = 'List-Class', triggers = { 'list' }, color = '#aa88ff', image = 'Symbol list class.svg', hideImage = true, imageAlt = 'List-Class article' }, na = { short = 'NA', full = 'NA-Class', forceImportance = 'na', triggers = { 'na', 'n/a' }, color = '#f5f5f5', image = 'Symbol neutral vote.svg', hideImage = true, imageAlt = 'Non-article page' }, category = { short = 'Category', full = 'Category-Class', forceImportance = 'na', triggers = { 'category', 'cat', 'categ' }, color = '#ffdb58', image = 'Folder Hexagonal Icon.svg', hideImage = true, imageAlt = 'Category page' }, disambig = { short = 'Disambig', full = 'Disambig-Class', forceImportance = 'na', triggers = { 'disambiguation', 'disambig', 'disamb', 'dab' }, color = '#00fa9a', image = 'Symbol dab class.svg', hideImage = true, imageAlt = 'Disambiguation page' }, file = { short = 'File', full = 'File-Class', forceImportance = 'na', triggers = { 'file', 'img', 'image' }, color = '#ddccff', image = 'Video-x-generic.svg', hideImage = true, imageAlt = 'Media file page' }, portal = { short = 'Portal', full = 'Portal-Class', forceImportance = 'na', triggers = { 'portal' }, color = '#cc8899', image = 'Portal-puzzle.svg', hideImage = true, imageAlt = 'Portal page' }, project = { short = 'Project', full = 'Project-Class', forceImportance = 'na', triggers = { 'project', 'proj', 'prj' }, color = '#c0c090', image = 'Symbol information vote.svg', hideImage = true, imageAlt = 'Project page' }, template = { short = 'Template', full = 'Template-Class', forceImportance = 'na', triggers = { 'template', 'temp', 'tpl', 'tmp', 'templ' }, color = '#fbceb1', image = 'Symbol template class.svg', hideImage = true, imageAlt = 'Template page' }, redirect = { short = 'Redirect', full = 'Redirect-Class', forceImportance = 'na', triggers = { 'redirect', 'red', 'redir' }, color = '#c0c0c0', image = 'Symbol redirect vote2.svg', hideImage = true, imageAlt = 'Redirect page' }, fm = { short = 'FM', full = 'Featured Media', triggers = { 'fm' }, color = '#6699ff', image = 'Featured article star.svg', hideImage = true, imageAlt = 'Featured media' }, future = { short = 'Future', full = 'Future-Class', triggers = { 'future' }, color = '#8a95c9', image = 'Symbol question.svg', hideImage = true, imageAlt = 'Future-Class article' }, current = { short = 'Current', full = 'Current-Class', triggers = { 'current' }, color = '#d462ff', image = 'Symbol question.svg', hideImage = true, imageAlt = 'Current-Class article' }, merge = { short = 'Merge', full = 'Merge-Class', triggers = { 'merge' }, color = '#add8e6', image = 'Symbol question.svg', hideImage = true, imageAlt = 'Merge-Class article' }, needed = { short = 'Needed', full = 'Needed-Class', triggers = { 'needed' }, color = '#dcdcdc', image = 'Symbol question.svg', hideImage = true, imageAlt = 'Needed-Class article' }, draft = { short = 'Draft', full = 'Draft-Class', triggers = { 'draft' }, color = 'transparent', image = 'Symbol neutral vote.svg', hideImage = true, imageAlt = 'Draft page' } }, scales = { standard = { [0] = { -- main ['unassessed'] = true, ['na'] = true, ['stub'] = true, ['start'] = true, ['c'] = true, ['b'] = true, ['ga'] = true, ['a'] = true, ['fa'] = true, ['list'] = true, ['fl'] = true }, [118] = { -- draft ['unassessed'] = true, ['na'] = true, ['draft'] = true, ['stub'] = true, ['start'] = true, ['c'] = true, ['b'] = true, ['ga'] = true, ['a'] = true, ['fa'] = true, ['list'] = true, ['fl'] = true }, [6] = 'file', [100] = 'portal', [14] = 'category', [10] = 'template', [4] = 'na', other = 'na', } } }, -- Importance -- importance = { -- The default importance parameter. param = 'importance', -- CSS classes to use with importance assessments. $1 is the short form -- of the grade that is being used. classes = 'importance importance-$1', -- The default blurb used by importance rows. -- $1 is the full form of the grade being used. -- $2 is the project's assessment page. -- $3 is the page type of the page being assessed. blurb = "This $3 has been rated as '''$1''' on the project's [[$2#Importance scale|importance scale]].", grades = { unassessed = { short = '???', full = 'Unknown-importance', blurb = "This $3 has not yet received a rating on the project's [[$2#Importance scale|importance scale]].", triggers = { '' }, color = 'transparent' }, top = { short = 'Top', full = 'Top-importance', triggers = { 'top' }, color = '#ff00ff' }, high = { short = 'High', full = 'High-importance', triggers = { 'high' }, color = '#ff88ff' }, mid = { short = 'Mid', full = 'Mid-importance', triggers = { 'mid' }, color = '#ffbbff' }, low = { short = 'Low', full = 'Low-importance', triggers = { 'low' }, color = '#ffddff' }, bottom = { short = 'Bottom', full = 'Bottom-importance', triggers = { 'bottom' }, color = '#ffeeff' }, na = { short = 'NA', full = 'NA-importance', triggers = { 'na', 'n/a' }, color = '#f5f5f5' } }, scales = { standard = { [0] = { -- main ['unassessed'] = true, ['na'] = true, ['bottom'] = true, ['low'] = true, ['mid'] = true, ['high'] = true, ['top'] = true }, [118] = { -- draft ['unassessed'] = true, ['na'] = true, ['bottom'] = true, ['low'] = true, ['mid'] = true, ['high'] = true, ['top'] = true }, other = 'na', } } } }, ------------------------------------------------------------------------------- -- MESSAGES -- ------------------------------------------------------------------------------- msg = { ----- Title messages ----- -- The subpage used by template sandboxes. ['sandbox-subpage'] = 'sandbox', ----- Project messages ----- -- A Lua ustring pattern to get the project name from the name of the template -- Module:WikiProjectBanner is invoked from. The namespace name and the colon -- are not included in the template name. If no parentheses are included in -- the pattern, the whole matched string will become the project name, and -- if no match is found, the name of the template will become the project name. ['project-page-name-pattern'] = '^Wiki[Pp]roject (.*)$', -- A link to the project's page, without square brackets. -- $1 is the project name. ['project-link'] = 'Wikipedia:WikiProject $1', -- The name of the project, without a namespace prefix. -- $1 is the project name. ['project-name'] = 'WikiProject $1', ----- Assessment messages ----- -- The subpage of the project page that contains details of the project's -- assessment scales. The default value set here can be overridden in -- individual banners with the "assessmentLink" option. ['assessment-subpage'] = 'Assessment', -- The default assessment category. -- $1 is the full grade name. -- $2 is the topic name. ['assessment-category'] = '$1 $2 articles' } ------------------------------------------------------------------------------- -- End config ------------------------------------------------------------------------------- }