CINXE.COM
Module:WikiProject banner/sandbox - Wikipedia
<!DOCTYPE html> <html class="client-nojs vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-sticky-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-enabled skin-theme-clientpref-day vector-toc-available" lang="en" dir="ltr"> <head> <meta charset="UTF-8"> <title>Module:WikiProject banner/sandbox - Wikipedia</title> <script>(function(){var className="client-js vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-sticky-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-enabled skin-theme-clientpref-day vector-toc-available";var cookie=document.cookie.match(/(?:^|; )enwikimwclientpreferences=([^;]+)/);if(cookie){cookie[1].split('%2C').forEach(function(pref){className=className.replace(new RegExp('(^| )'+pref.replace(/-clientpref-\w+$|[^\w-]+/g,'')+'-clientpref-\\w+( |$)'),'$1'+pref+'$2');});}document.documentElement.className=className;}());RLCONF={"wgBreakFrames":false,"wgSeparatorTransformTable":["",""],"wgDigitTransformTable":["",""],"wgDefaultDateFormat":"dmy", "wgMonthNames":["","January","February","March","April","May","June","July","August","September","October","November","December"],"wgRequestId":"8ca521cf-64d5-46b6-8d4c-be4f6845e409","wgCanonicalNamespace":"Module","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":828,"wgPageName":"Module:WikiProject_banner/sandbox","wgTitle":"WikiProject banner/sandbox","wgCurRevisionId":1259774769,"wgRevisionId":1259774769,"wgArticleId":74002967,"wgIsArticle":true,"wgIsRedirect":false,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":["Module sandboxes"],"wgPageViewLanguage":"en","wgPageContentLanguage":"en","wgPageContentModel":"Scribunto","wgRelevantPageName":"Module:WikiProject_banner/sandbox","wgRelevantArticleId":74002967,"wgIsProbablyEditable":true,"wgRelevantPageIsProbablyEditable":true,"wgRestrictionEdit":[],"wgRestrictionMove":[],"wgNoticeProject":"wikipedia","wgCiteReferencePreviewsActive":false,"wgFlaggedRevsParams":{"tags":{"status":{"levels":1}}}, "wgMediaViewerOnClick":true,"wgMediaViewerEnabledByDefault":true,"wgPopupsFlags":0,"wgVisualEditor":{"pageLanguageCode":"en","pageLanguageDir":"ltr","pageVariantFallbacks":"en"},"wgMFDisplayWikibaseDescriptions":{"search":true,"watchlist":true,"tagline":false,"nearby":true},"wgWMESchemaEditAttemptStepOversample":false,"wgWMEPageLength":40000,"wgRelatedArticlesCompat":[],"wgCentralAuthMobileDomain":false,"wgEditSubmitButtonLabelPublish":true,"wgULSPosition":"interlanguage","wgULSisCompactLinksEnabled":false,"wgVector2022LanguageInHeader":true,"wgULSisLanguageSelectorEmpty":false,"wgCheckUserClientHintsHeadersJsApi":["brands","architecture","bitness","fullVersionList","mobile","model","platform","platformVersion"],"GEHomepageSuggestedEditsEnableTopics":true,"wgGETopicsMatchModeEnabled":false,"wgGEStructuredTaskRejectionReasonTextInputEnabled":false,"wgGELevelingUpEnabledForUser":false};RLSTATE={"ext.globalCssJs.user.styles":"ready","site.styles":"ready","user.styles":"ready", "ext.globalCssJs.user":"ready","user":"ready","user.options":"loading","ext.pygments":"ready","ext.inputBox.styles":"ready","skins.vector.search.codex.styles":"ready","skins.vector.styles":"ready","skins.vector.icons":"ready","jquery.makeCollapsible.styles":"ready","ext.wikimediamessages.styles":"ready","ext.visualEditor.desktopArticleTarget.noscript":"ready","ext.uls.interlanguage":"ready","wikibase.client.init":"ready","ext.wikimediaBadges":"ready"};RLPAGEMODULES=["ext.pygments.view","site","mediawiki.page.ready","jquery.makeCollapsible","mediawiki.toc","skins.vector.js","ext.centralNotice.geoIP","ext.centralNotice.startUp","ext.gadget.ReferenceTooltips","ext.gadget.switcher","ext.urlShortener.toolbar","ext.centralauth.centralautologin","mmv.bootstrap","ext.popups","ext.visualEditor.desktopArticleTarget.init","ext.visualEditor.targetLoader","ext.echo.centralauth","ext.eventLogging","ext.wikimediaEvents","ext.navigationTiming","ext.uls.interface","ext.cx.eventlogging.campaigns", "ext.checkUser.clientHints"];</script> <script>(RLQ=window.RLQ||[]).push(function(){mw.loader.impl(function(){return["user.options@12s5i",function($,jQuery,require,module){mw.user.tokens.set({"patrolToken":"+\\","watchToken":"+\\","csrfToken":"+\\"}); }];});});</script> <link rel="stylesheet" href="/w/load.php?lang=en&modules=ext.inputBox.styles%7Cext.pygments%2CwikimediaBadges%7Cext.uls.interlanguage%7Cext.visualEditor.desktopArticleTarget.noscript%7Cext.wikimediamessages.styles%7Cjquery.makeCollapsible.styles%7Cskins.vector.icons%2Cstyles%7Cskins.vector.search.codex.styles%7Cwikibase.client.init&only=styles&skin=vector-2022"> <script async="" src="/w/load.php?lang=en&modules=startup&only=scripts&raw=1&skin=vector-2022"></script> <meta name="ResourceLoaderDynamicStyles" content=""> <link rel="stylesheet" href="/w/load.php?lang=en&modules=site.styles&only=styles&skin=vector-2022"> <meta name="generator" content="MediaWiki 1.44.0-wmf.4"> <meta name="referrer" content="origin"> <meta name="referrer" content="origin-when-cross-origin"> <meta name="robots" content="max-image-preview:standard"> <meta name="format-detection" content="telephone=no"> <meta name="viewport" content="width=1120"> <meta property="og:title" content="Module:WikiProject banner/sandbox - Wikipedia"> <meta property="og:type" content="website"> <link rel="preconnect" href="//upload.wikimedia.org"> <link rel="alternate" media="only screen and (max-width: 640px)" href="//en.m.wikipedia.org/wiki/Module:WikiProject_banner/sandbox"> <link rel="alternate" type="application/x-wiki" title="Edit this page" href="/w/index.php?title=Module:WikiProject_banner/sandbox&action=edit"> <link rel="apple-touch-icon" href="/static/apple-touch/wikipedia.png"> <link rel="icon" href="/static/favicon/wikipedia.ico"> <link rel="search" type="application/opensearchdescription+xml" href="/w/rest.php/v1/search" title="Wikipedia (en)"> <link rel="EditURI" type="application/rsd+xml" href="//en.wikipedia.org/w/api.php?action=rsd"> <link rel="canonical" href="https://en.wikipedia.org/wiki/Module:WikiProject_banner/sandbox"> <link rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/deed.en"> <link rel="alternate" type="application/atom+xml" title="Wikipedia Atom feed" href="/w/index.php?title=Special:RecentChanges&feed=atom"> <link rel="dns-prefetch" href="//meta.wikimedia.org" /> <link rel="dns-prefetch" href="//login.wikimedia.org"> </head> <body class="skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-828 ns-subject mw-editable page-Module_WikiProject_banner_sandbox rootpage-Module_WikiProject_banner skin-vector-2022 action-view"><a class="mw-jump-link" href="#bodyContent">Jump to content</a> <div class="vector-header-container"> <header class="vector-header mw-header"> <div class="vector-header-start"> <nav class="vector-main-menu-landmark" aria-label="Site"> <div id="vector-main-menu-dropdown" class="vector-dropdown vector-main-menu-dropdown vector-button-flush-left vector-button-flush-right" > <input type="checkbox" id="vector-main-menu-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-main-menu-dropdown" class="vector-dropdown-checkbox " aria-label="Main menu" > <label id="vector-main-menu-dropdown-label" for="vector-main-menu-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-menu mw-ui-icon-wikimedia-menu"></span> <span class="vector-dropdown-label-text">Main menu</span> </label> <div class="vector-dropdown-content"> <div id="vector-main-menu-unpinned-container" class="vector-unpinned-container"> <div id="vector-main-menu" class="vector-main-menu vector-pinnable-element"> <div class="vector-pinnable-header vector-main-menu-pinnable-header vector-pinnable-header-unpinned" data-feature-name="main-menu-pinned" data-pinnable-element-id="vector-main-menu" data-pinned-container-id="vector-main-menu-pinned-container" data-unpinned-container-id="vector-main-menu-unpinned-container" > <div class="vector-pinnable-header-label">Main menu</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-main-menu.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-main-menu.unpin">hide</button> </div> <div id="p-navigation" class="vector-menu mw-portlet mw-portlet-navigation" > <div class="vector-menu-heading"> Navigation </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-mainpage-description" class="mw-list-item"><a href="/wiki/Main_Page" title="Visit the main page [z]" accesskey="z"><span>Main page</span></a></li><li id="n-contents" class="mw-list-item"><a href="/wiki/Wikipedia:Contents" title="Guides to browsing Wikipedia"><span>Contents</span></a></li><li id="n-currentevents" class="mw-list-item"><a href="/wiki/Portal:Current_events" title="Articles related to current events"><span>Current events</span></a></li><li id="n-randompage" class="mw-list-item"><a href="/wiki/Special:Random" title="Visit a randomly selected article [x]" accesskey="x"><span>Random article</span></a></li><li id="n-aboutsite" class="mw-list-item"><a href="/wiki/Wikipedia:About" title="Learn about Wikipedia and how it works"><span>About Wikipedia</span></a></li><li id="n-contactpage" class="mw-list-item"><a href="//en.wikipedia.org/wiki/Wikipedia:Contact_us" title="How to contact Wikipedia"><span>Contact us</span></a></li> </ul> </div> </div> <div id="p-interaction" class="vector-menu mw-portlet mw-portlet-interaction" > <div class="vector-menu-heading"> Contribute </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-help" class="mw-list-item"><a href="/wiki/Help:Contents" title="Guidance on how to use and edit Wikipedia"><span>Help</span></a></li><li id="n-introduction" class="mw-list-item"><a href="/wiki/Help:Introduction" title="Learn how to edit Wikipedia"><span>Learn to edit</span></a></li><li id="n-portal" class="mw-list-item"><a href="/wiki/Wikipedia:Community_portal" title="The hub for editors"><span>Community portal</span></a></li><li id="n-recentchanges" class="mw-list-item"><a href="/wiki/Special:RecentChanges" title="A list of recent changes to Wikipedia [r]" accesskey="r"><span>Recent changes</span></a></li><li id="n-upload" class="mw-list-item"><a href="/wiki/Wikipedia:File_upload_wizard" title="Add images or other media for use on Wikipedia"><span>Upload file</span></a></li> </ul> </div> </div> </div> </div> </div> </div> </nav> <a href="/wiki/Main_Page" class="mw-logo"> <img class="mw-logo-icon" src="/static/images/icons/wikipedia.png" alt="" aria-hidden="true" height="50" width="50"> <span class="mw-logo-container skin-invert"> <img class="mw-logo-wordmark" alt="Wikipedia" src="/static/images/mobile/copyright/wikipedia-wordmark-en.svg" style="width: 7.5em; height: 1.125em;"> <img class="mw-logo-tagline" alt="The Free Encyclopedia" src="/static/images/mobile/copyright/wikipedia-tagline-en.svg" width="117" height="13" style="width: 7.3125em; height: 0.8125em;"> </span> </a> </div> <div class="vector-header-end"> <div id="p-search" role="search" class="vector-search-box-vue vector-search-box-collapses vector-search-box-show-thumbnail vector-search-box-auto-expand-width vector-search-box"> <a href="/wiki/Special:Search" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only search-toggle" title="Search Wikipedia [f]" accesskey="f"><span class="vector-icon mw-ui-icon-search mw-ui-icon-wikimedia-search"></span> <span>Search</span> </a> <div class="vector-typeahead-search-container"> <div class="cdx-typeahead-search cdx-typeahead-search--show-thumbnail cdx-typeahead-search--auto-expand-width"> <form action="/w/index.php" id="searchform" class="cdx-search-input cdx-search-input--has-end-button"> <div id="simpleSearch" class="cdx-search-input__input-wrapper" data-search-loc="header-moved"> <div class="cdx-text-input cdx-text-input--has-start-icon"> <input class="cdx-text-input__input" type="search" name="search" placeholder="Search Wikipedia" aria-label="Search Wikipedia" autocapitalize="sentences" title="Search Wikipedia [f]" accesskey="f" id="searchInput" > <span class="cdx-text-input__icon cdx-text-input__start-icon"></span> </div> <input type="hidden" name="title" value="Special:Search"> </div> <button class="cdx-button cdx-search-input__end-button">Search</button> </form> </div> </div> </div> <nav class="vector-user-links vector-user-links-wide" aria-label="Personal tools"> <div class="vector-user-links-main"> <div id="p-vector-user-menu-preferences" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <div id="p-vector-user-menu-userpage" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <nav class="vector-appearance-landmark" aria-label="Appearance"> <div id="vector-appearance-dropdown" class="vector-dropdown " title="Change the appearance of the page's font size, width, and color" > <input type="checkbox" id="vector-appearance-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-appearance-dropdown" class="vector-dropdown-checkbox " aria-label="Appearance" > <label id="vector-appearance-dropdown-label" for="vector-appearance-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-appearance mw-ui-icon-wikimedia-appearance"></span> <span class="vector-dropdown-label-text">Appearance</span> </label> <div class="vector-dropdown-content"> <div id="vector-appearance-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <div id="p-vector-user-menu-notifications" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <div id="p-vector-user-menu-overflow" class="vector-menu mw-portlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="https://donate.wikimedia.org/wiki/Special:FundraiserRedirector?utm_source=donate&utm_medium=sidebar&utm_campaign=C13_en.wikipedia.org&uselang=en" class=""><span>Donate</span></a> </li> <li id="pt-createaccount-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=Special:CreateAccount&returnto=Module%3AWikiProject+banner%2Fsandbox" title="You are encouraged to create an account and log in; however, it is not mandatory" class=""><span>Create account</span></a> </li> <li id="pt-login-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=Special:UserLogin&returnto=Module%3AWikiProject+banner%2Fsandbox" title="You're encouraged to log in; however, it's not mandatory. [o]" accesskey="o" class=""><span>Log in</span></a> </li> </ul> </div> </div> </div> <div id="vector-user-links-dropdown" class="vector-dropdown vector-user-menu vector-button-flush-right vector-user-menu-logged-out" title="Log in and more options" > <input type="checkbox" id="vector-user-links-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-user-links-dropdown" class="vector-dropdown-checkbox " aria-label="Personal tools" > <label id="vector-user-links-dropdown-label" for="vector-user-links-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-ellipsis mw-ui-icon-wikimedia-ellipsis"></span> <span class="vector-dropdown-label-text">Personal tools</span> </label> <div class="vector-dropdown-content"> <div id="p-personal" class="vector-menu mw-portlet mw-portlet-personal user-links-collapsible-item" title="User menu" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport" class="user-links-collapsible-item mw-list-item"><a href="https://donate.wikimedia.org/wiki/Special:FundraiserRedirector?utm_source=donate&utm_medium=sidebar&utm_campaign=C13_en.wikipedia.org&uselang=en"><span>Donate</span></a></li><li id="pt-createaccount" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Special:CreateAccount&returnto=Module%3AWikiProject+banner%2Fsandbox" title="You are encouraged to create an account and log in; however, it is not mandatory"><span class="vector-icon mw-ui-icon-userAdd mw-ui-icon-wikimedia-userAdd"></span> <span>Create account</span></a></li><li id="pt-login" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Special:UserLogin&returnto=Module%3AWikiProject+banner%2Fsandbox" title="You're encouraged to log in; however, it's not mandatory. [o]" accesskey="o"><span class="vector-icon mw-ui-icon-logIn mw-ui-icon-wikimedia-logIn"></span> <span>Log in</span></a></li> </ul> </div> </div> <div id="p-user-menu-anon-editor" class="vector-menu mw-portlet mw-portlet-user-menu-anon-editor" > <div class="vector-menu-heading"> Pages for logged out editors <a href="/wiki/Help:Introduction" aria-label="Learn more about editing"><span>learn more</span></a> </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-anoncontribs" class="mw-list-item"><a href="/wiki/Special:MyContributions" title="A list of edits made from this IP address [y]" accesskey="y"><span>Contributions</span></a></li><li id="pt-anontalk" class="mw-list-item"><a href="/wiki/Special:MyTalk" title="Discussion about edits from this IP address [n]" accesskey="n"><span>Talk</span></a></li> </ul> </div> </div> </div> </div> </nav> </div> </header> </div> <div class="mw-page-container"> <div class="mw-page-container-inner"> <div class="vector-sitenotice-container"> <div id="siteNotice"><!-- CentralNotice --></div> </div> <div class="vector-column-start"> <div class="vector-main-menu-container"> <div id="mw-navigation"> <nav id="mw-panel" class="vector-main-menu-landmark" aria-label="Site"> <div id="vector-main-menu-pinned-container" class="vector-pinned-container"> </div> </nav> </div> </div> <div class="vector-sticky-pinned-container"> <nav id="mw-panel-toc" aria-label="Contents" data-event-name="ui.sidebar-toc" class="mw-table-of-contents-container vector-toc-landmark"> <div id="vector-toc-pinned-container" class="vector-pinned-container"> <div id="vector-toc" class="vector-toc vector-pinnable-element"> <div class="vector-pinnable-header vector-toc-pinnable-header vector-pinnable-header-pinned" data-feature-name="toc-pinned" data-pinnable-element-id="vector-toc" > <h2 class="vector-pinnable-header-label">Contents</h2> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-toc.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-toc.unpin">hide</button> </div> <ul class="vector-toc-contents" id="mw-panel-toc-list"> <li id="toc-mw-content-text" class="vector-toc-list-item vector-toc-level-1"> <a href="#" class="vector-toc-link"> <div class="vector-toc-text">(Top)</div> </a> </li> <li id="toc-Syntax" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Syntax"> <div class="vector-toc-text"> <span class="vector-toc-numb">1</span> <span>Syntax</span> </div> </a> <button aria-controls="toc-Syntax-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Toggle Syntax subsection</span> </button> <ul id="toc-Syntax-sublist" class="vector-toc-list"> <li id="toc-Parameters" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Parameters"> <div class="vector-toc-text"> <span class="vector-toc-numb">1.1</span> <span>Parameters</span> </div> </a> <ul id="toc-Parameters-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Simple_options" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Simple_options"> <div class="vector-toc-text"> <span class="vector-toc-numb">1.2</span> <span>Simple options</span> </div> </a> <ul id="toc-Simple_options-sublist" class="vector-toc-list"> <li id="toc-Example" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#Example"> <div class="vector-toc-text"> <span class="vector-toc-numb">1.2.1</span> <span>Example</span> </div> </a> <ul id="toc-Example-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Assessment" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Assessment"> <div class="vector-toc-text"> <span class="vector-toc-numb">1.3</span> <span>Assessment</span> </div> </a> <ul id="toc-Assessment-sublist" class="vector-toc-list"> <li id="toc-Example_2" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#Example_2"> <div class="vector-toc-text"> <span class="vector-toc-numb">1.3.1</span> <span>Example</span> </div> </a> <ul id="toc-Example_2-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Alerts_and_notes" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Alerts_and_notes"> <div class="vector-toc-text"> <span class="vector-toc-numb">1.4</span> <span>Alerts and notes</span> </div> </a> <ul id="toc-Alerts_and_notes-sublist" class="vector-toc-list"> <li id="toc-Example_3" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#Example_3"> <div class="vector-toc-text"> <span class="vector-toc-numb">1.4.1</span> <span>Example</span> </div> </a> <ul id="toc-Example_3-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Task_forces" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Task_forces"> <div class="vector-toc-text"> <span class="vector-toc-numb">1.5</span> <span>Task forces</span> </div> </a> <ul id="toc-Task_forces-sublist" class="vector-toc-list"> <li id="toc-Example_4" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#Example_4"> <div class="vector-toc-text"> <span class="vector-toc-numb">1.5.1</span> <span>Example</span> </div> </a> <ul id="toc-Example_4-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Inactive_task_force" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#Inactive_task_force"> <div class="vector-toc-text"> <span class="vector-toc-numb">1.5.2</span> <span>Inactive task force</span> </div> </a> <ul id="toc-Inactive_task_force-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> </ul> </li> <li id="toc-Advanced_features" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Advanced_features"> <div class="vector-toc-text"> <span class="vector-toc-numb">2</span> <span>Advanced features</span> </div> </a> <button aria-controls="toc-Advanced_features-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Toggle Advanced features subsection</span> </button> <ul id="toc-Advanced_features-sublist" class="vector-toc-list"> <li id="toc-B-class_checklist" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#B-class_checklist"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.1</span> <span>B-class checklist</span> </div> </a> <ul id="toc-B-class_checklist-sublist" class="vector-toc-list"> <li id="toc-Required_parameters" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#Required_parameters"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.1.1</span> <span>Required parameters</span> </div> </a> <ul id="toc-Required_parameters-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Optional_parameters" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#Optional_parameters"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.1.2</span> <span>Optional parameters</span> </div> </a> <ul id="toc-Optional_parameters-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Custom_parameter_names" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#Custom_parameter_names"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.1.3</span> <span>Custom parameter names</span> </div> </a> <ul id="toc-Custom_parameter_names-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Collapsing_task_forces" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Collapsing_task_forces"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.2</span> <span>Collapsing task forces</span> </div> </a> <ul id="toc-Collapsing_task_forces-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-To-do_list" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#To-do_list"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.3</span> <span>To-do list</span> </div> </a> <ul id="toc-To-do_list-sublist" class="vector-toc-list"> <li id="toc-Example_5" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#Example_5"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.3.1</span> <span>Example</span> </div> </a> <ul id="toc-Example_5-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Quality/importance_category_intersection" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Quality/importance_category_intersection"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.4</span> <span>Quality/importance category intersection</span> </div> </a> <ul id="toc-Quality/importance_category_intersection-sublist" class="vector-toc-list"> <li id="toc-Required_parameters_2" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#Required_parameters_2"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.4.1</span> <span>Required parameters</span> </div> </a> <ul id="toc-Required_parameters_2-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Optional_parameters_2" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#Optional_parameters_2"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.4.2</span> <span>Optional parameters</span> </div> </a> <ul id="toc-Optional_parameters_2-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Image-needed_note" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Image-needed_note"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.5</span> <span>Image-needed note</span> </div> </a> <ul id="toc-Image-needed_note-sublist" class="vector-toc-list"> <li id="toc-Required_parameters_3" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#Required_parameters_3"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.5.1</span> <span>Required parameters</span> </div> </a> <ul id="toc-Required_parameters_3-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Optional_parameters_3" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#Optional_parameters_3"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.5.2</span> <span>Optional parameters</span> </div> </a> <ul id="toc-Optional_parameters_3-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Collaboration_note" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Collaboration_note"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.6</span> <span>Collaboration note</span> </div> </a> <ul id="toc-Collaboration_note-sublist" class="vector-toc-list"> <li id="toc-Required_parameters_4" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#Required_parameters_4"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.6.1</span> <span>Required parameters</span> </div> </a> <ul id="toc-Required_parameters_4-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Optional_parameters_4" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#Optional_parameters_4"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.6.2</span> <span>Optional parameters</span> </div> </a> <ul id="toc-Optional_parameters_4-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-A-class_review_note" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#A-class_review_note"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.7</span> <span>A-class review note</span> </div> </a> <ul id="toc-A-class_review_note-sublist" class="vector-toc-list"> <li id="toc-Required_parameters_5" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#Required_parameters_5"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.7.1</span> <span>Required parameters</span> </div> </a> <ul id="toc-Required_parameters_5-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Optional_parameters_5" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#Optional_parameters_5"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.7.2</span> <span>Optional parameters</span> </div> </a> <ul id="toc-Optional_parameters_5-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Additional_task_force_categories" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Additional_task_force_categories"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.8</span> <span>Additional task force categories</span> </div> </a> <ul id="toc-Additional_task_force_categories-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Peer_review_note" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Peer_review_note"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.9</span> <span>Peer review note</span> </div> </a> <ul id="toc-Peer_review_note-sublist" class="vector-toc-list"> <li id="toc-Required_parameters_6" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#Required_parameters_6"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.9.1</span> <span>Required parameters</span> </div> </a> <ul id="toc-Required_parameters_6-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Optional_parameters_6" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#Optional_parameters_6"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.9.2</span> <span>Optional parameters</span> </div> </a> <ul id="toc-Optional_parameters_6-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Other_hooks" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Other_hooks"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.10</span> <span>Other hooks</span> </div> </a> <ul id="toc-Other_hooks-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Custom_masks" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Custom_masks"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.11</span> <span>Custom masks</span> </div> </a> <ul id="toc-Custom_masks-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Inactive_WikiProject_banners" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Inactive_WikiProject_banners"> <div class="vector-toc-text"> <span class="vector-toc-numb">3</span> <span>Inactive WikiProject banners</span> </div> </a> <button aria-controls="toc-Inactive_WikiProject_banners-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Toggle Inactive WikiProject banners subsection</span> </button> <ul id="toc-Inactive_WikiProject_banners-sublist" class="vector-toc-list"> <li id="toc-Parameters_2" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Parameters_2"> <div class="vector-toc-text"> <span class="vector-toc-numb">3.1</span> <span>Parameters</span> </div> </a> <ul id="toc-Parameters_2-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Examples" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Examples"> <div class="vector-toc-text"> <span class="vector-toc-numb">4</span> <span>Examples</span> </div> </a> <ul id="toc-Examples-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-See_also" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#See_also"> <div class="vector-toc-text"> <span class="vector-toc-numb">5</span> <span>See also</span> </div> </a> <ul id="toc-See_also-sublist" class="vector-toc-list"> </ul> </li> </ul> </div> </div> </nav> </div> </div> <div class="mw-content-container"> <main id="content" class="mw-body"> <header class="mw-body-header vector-page-titlebar"> <nav aria-label="Contents" class="vector-toc-landmark"> <div id="vector-page-titlebar-toc" class="vector-dropdown vector-page-titlebar-toc vector-button-flush-left" > <input type="checkbox" id="vector-page-titlebar-toc-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-page-titlebar-toc" class="vector-dropdown-checkbox " aria-label="Toggle the table of contents" > <label id="vector-page-titlebar-toc-label" for="vector-page-titlebar-toc-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-listBullet mw-ui-icon-wikimedia-listBullet"></span> <span class="vector-dropdown-label-text">Toggle the table of contents</span> </label> <div class="vector-dropdown-content"> <div id="vector-page-titlebar-toc-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <h1 id="firstHeading" class="firstHeading mw-first-heading"><span class="mw-page-title-namespace">Module</span><span class="mw-page-title-separator">:</span><span class="mw-page-title-main">WikiProject banner/sandbox</span></h1> <div id="p-lang-btn" class="vector-dropdown mw-portlet mw-portlet-lang" > <input type="checkbox" id="p-lang-btn-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-p-lang-btn" class="vector-dropdown-checkbox mw-interlanguage-selector" aria-label="This article exist only in this language. Add the article for other languages" > <label id="p-lang-btn-label" for="p-lang-btn-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--action-progressive mw-portlet-lang-heading-0" aria-hidden="true" ><span class="vector-icon mw-ui-icon-language-progressive mw-ui-icon-wikimedia-language-progressive"></span> <span class="vector-dropdown-label-text">Add languages</span> </label> <div class="vector-dropdown-content"> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> <div class="after-portlet after-portlet-lang"><span class="uls-after-portlet-link"></span><span class="wb-langlinks-add wb-langlinks-link"><a href="https://www.wikidata.org/wiki/Special:NewItem?site=enwiki&page=Module%3AWikiProject+banner%2Fsandbox" title="Add interlanguage links" class="wbc-editpage">Add links</a></span></div> </div> </div> </div> </header> <div class="vector-page-toolbar"> <div class="vector-page-toolbar-container"> <div id="left-navigation"> <nav aria-label="Namespaces"> <div id="p-associated-pages" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-associated-pages" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-nstab-module" class="selected vector-tab-noicon mw-list-item"><a href="/wiki/Module:WikiProject_banner/sandbox" title="View the module page [c]" accesskey="c"><span>Module</span></a></li><li id="ca-talk" class="vector-tab-noicon mw-list-item"><a href="/wiki/Module_talk:WikiProject_banner/sandbox" rel="discussion" class="mw-redirect" title="Discuss improvements to the content page [t]" accesskey="t"><span>Talk</span></a></li> </ul> </div> </div> <div id="vector-variants-dropdown" class="vector-dropdown emptyPortlet" > <input type="checkbox" id="vector-variants-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-variants-dropdown" class="vector-dropdown-checkbox " aria-label="Change language variant" > <label id="vector-variants-dropdown-label" for="vector-variants-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">English</span> </label> <div class="vector-dropdown-content"> <div id="p-variants" class="vector-menu mw-portlet mw-portlet-variants emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> </div> </div> </nav> </div> <div id="right-navigation" class="vector-collapsible"> <nav aria-label="Views"> <div id="p-views" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-views" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-view" class="selected vector-tab-noicon mw-list-item"><a href="/wiki/Module:WikiProject_banner/sandbox"><span>Read</span></a></li><li id="ca-edit" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Module:WikiProject_banner/sandbox&action=edit" title="Edit this page [e]" accesskey="e"><span>Edit</span></a></li><li id="ca-history" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Module:WikiProject_banner/sandbox&action=history" title="Past revisions of this page [h]" accesskey="h"><span>View history</span></a></li> </ul> </div> </div> </nav> <nav class="vector-page-tools-landmark" aria-label="Page tools"> <div id="vector-page-tools-dropdown" class="vector-dropdown vector-page-tools-dropdown" > <input type="checkbox" id="vector-page-tools-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-page-tools-dropdown" class="vector-dropdown-checkbox " aria-label="Tools" > <label id="vector-page-tools-dropdown-label" for="vector-page-tools-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">Tools</span> </label> <div class="vector-dropdown-content"> <div id="vector-page-tools-unpinned-container" class="vector-unpinned-container"> <div id="vector-page-tools" class="vector-page-tools vector-pinnable-element"> <div class="vector-pinnable-header vector-page-tools-pinnable-header vector-pinnable-header-unpinned" data-feature-name="page-tools-pinned" data-pinnable-element-id="vector-page-tools" data-pinned-container-id="vector-page-tools-pinned-container" data-unpinned-container-id="vector-page-tools-unpinned-container" > <div class="vector-pinnable-header-label">Tools</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-page-tools.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-page-tools.unpin">hide</button> </div> <div id="p-cactions" class="vector-menu mw-portlet mw-portlet-cactions emptyPortlet vector-has-collapsible-items" title="More options" > <div class="vector-menu-heading"> Actions </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-more-view" class="selected vector-more-collapsible-item mw-list-item"><a href="/wiki/Module:WikiProject_banner/sandbox"><span>Read</span></a></li><li id="ca-more-edit" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Module:WikiProject_banner/sandbox&action=edit" title="Edit this page [e]" accesskey="e"><span>Edit</span></a></li><li id="ca-more-history" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Module:WikiProject_banner/sandbox&action=history"><span>View history</span></a></li> </ul> </div> </div> <div id="p-tb" class="vector-menu mw-portlet mw-portlet-tb" > <div class="vector-menu-heading"> General </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="t-whatlinkshere" class="mw-list-item"><a href="/wiki/Special:WhatLinksHere/Module:WikiProject_banner/sandbox" title="List of all English Wikipedia pages containing links to this page [j]" accesskey="j"><span>What links here</span></a></li><li id="t-recentchangeslinked" class="mw-list-item"><a href="/wiki/Special:RecentChangesLinked/Module:WikiProject_banner/sandbox" rel="nofollow" title="Recent changes in pages linked from this page [k]" accesskey="k"><span>Related changes</span></a></li><li id="t-upload" class="mw-list-item"><a href="/wiki/Wikipedia:File_Upload_Wizard" title="Upload files [u]" accesskey="u"><span>Upload file</span></a></li><li id="t-specialpages" class="mw-list-item"><a href="/wiki/Special:SpecialPages" title="A list of all special pages [q]" accesskey="q"><span>Special pages</span></a></li><li id="t-permalink" class="mw-list-item"><a href="/w/index.php?title=Module:WikiProject_banner/sandbox&oldid=1259774769" title="Permanent link to this revision of this page"><span>Permanent link</span></a></li><li id="t-info" class="mw-list-item"><a href="/w/index.php?title=Module:WikiProject_banner/sandbox&action=info" title="More information about this page"><span>Page information</span></a></li><li id="t-urlshortener" class="mw-list-item"><a href="/w/index.php?title=Special:UrlShortener&url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FModule%3AWikiProject_banner%2Fsandbox"><span>Get shortened URL</span></a></li><li id="t-urlshortener-qrcode" class="mw-list-item"><a href="/w/index.php?title=Special:QrCode&url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FModule%3AWikiProject_banner%2Fsandbox"><span>Download QR code</span></a></li> </ul> </div> </div> <div id="p-electronpdfservice-sidebar-portlet-heading" class="vector-menu mw-portlet mw-portlet-electronpdfservice-sidebar-portlet-heading" > <div class="vector-menu-heading"> Print/export </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="electron-print_pdf" class="mw-list-item"><a href="/w/index.php?title=Special:DownloadAsPdf&page=Module%3AWikiProject_banner%2Fsandbox&action=show-download-screen"><span>Download as PDF</span></a></li><li id="t-print" class="mw-list-item"><a href="javascript:print();" rel="alternate" title="Printable version of this page [p]" accesskey="p"><span>Printable version</span></a></li> </ul> </div> </div> <div id="p-wikibase-otherprojects" class="vector-menu mw-portlet mw-portlet-wikibase-otherprojects emptyPortlet" > <div class="vector-menu-heading"> In other projects </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> </div> </div> </div> </div> </nav> </div> </div> </div> <div class="vector-column-end"> <div class="vector-sticky-pinned-container"> <nav class="vector-page-tools-landmark" aria-label="Page tools"> <div id="vector-page-tools-pinned-container" class="vector-pinned-container"> </div> </nav> <nav class="vector-appearance-landmark" aria-label="Appearance"> <div id="vector-appearance-pinned-container" class="vector-pinned-container"> <div id="vector-appearance" class="vector-appearance vector-pinnable-element"> <div class="vector-pinnable-header vector-appearance-pinnable-header vector-pinnable-header-pinned" data-feature-name="appearance-pinned" data-pinnable-element-id="vector-appearance" data-pinned-container-id="vector-appearance-pinned-container" data-unpinned-container-id="vector-appearance-unpinned-container" > <div class="vector-pinnable-header-label">Appearance</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-appearance.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-appearance.unpin">hide</button> </div> </div> </div> </nav> </div> </div> <div id="bodyContent" class="vector-body" aria-labelledby="firstHeading" data-mw-ve-target-container> <div class="vector-body-before-content"> <div class="mw-indicators"> </div> <div id="siteSub" class="noprint">From Wikipedia, the free encyclopedia</div> </div> <div id="contentSub"><div id="mw-content-subtitle"><div class="subpages">< <bdi dir="ltr"><a href="/wiki/Module:WikiProject_banner" title="Module:WikiProject banner">Module:WikiProject banner</a></bdi></div></div></div> <div id="mw-content-text" class="mw-body-content"><div class="mw-content-ltr mw-parser-output" lang="en" dir="ltr"><style data-mw-deduplicate="TemplateStyles:r1237875617">.mw-parser-output .documentation,.mw-parser-output .documentation-metadata{border:1px solid #a2a9b1;background-color:#ecfcf4;clear:both}.mw-parser-output .documentation{margin:1em 0 0 0;padding:1em}.mw-parser-output .documentation-metadata{margin:0.2em 0;font-style:italic;padding:0.4em 1em}.mw-parser-output .documentation-startbox{padding-bottom:3px;border-bottom:1px solid #aaa;margin-bottom:1ex}.mw-parser-output .documentation-heading{font-weight:bold;font-size:125%}.mw-parser-output .documentation-clear{clear:both}.mw-parser-output .documentation-toolbar{font-style:normal;font-size:85%}@media screen{html.skin-theme-clientpref-night .mw-parser-output .documentation,html.skin-theme-clientpref-night .mw-parser-output .documentation-metadata{background-color:#0b1e1c}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .documentation,html.skin-theme-clientpref-os .mw-parser-output .documentation-metadata{background-color:#0b1e1c}}</style><div class="documentation-clear"></div><style data-mw-deduplicate="TemplateStyles:r1238436933">.mw-parser-output .ombox{margin:4px 0;border-collapse:collapse;border:1px solid #a2a9b1;background-color:var(--background-color-neutral-subtle,#f8f9fa);box-sizing:border-box;color:var(--color-base,#202122)}.mw-parser-output .ombox.mbox-small{font-size:88%;line-height:1.25em}.mw-parser-output .ombox-speedy{border:2px solid #b32424;background-color:#fee7e6}.mw-parser-output .ombox-delete{border:2px solid #b32424}.mw-parser-output .ombox-content{border:1px solid #f28500}.mw-parser-output .ombox-style{border:1px solid #fc3}.mw-parser-output .ombox-move{border:1px solid #9932cc}.mw-parser-output .ombox-protection{border:2px solid #a2a9b1}.mw-parser-output .ombox .mbox-text{border:none;padding:0.25em 0.9em;width:100%}.mw-parser-output .ombox .mbox-image{border:none;padding:2px 0 2px 0.9em;text-align:center}.mw-parser-output .ombox .mbox-imageright{border:none;padding:2px 0.9em 2px 0;text-align:center}.mw-parser-output .ombox .mbox-empty-cell{border:none;padding:0;width:1px}.mw-parser-output .ombox .mbox-invalid-type{text-align:center}@media(min-width:720px){.mw-parser-output .ombox{margin:4px 10%}.mw-parser-output .ombox.mbox-small{clear:right;float:right;margin:4px 0 4px 1em;width:238px}}body.skin--responsive .mw-parser-output table.ombox img{max-width:none!important}@media screen{html.skin-theme-clientpref-night .mw-parser-output .ombox-speedy{background-color:#310402}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .ombox-speedy{background-color:#310402}}</style><table class="plainlinks ombox ombox-notice" role="presentation"><tbody><tr><td class="mbox-image"><span typeof="mw:File"><span><img alt="" src="//upload.wikimedia.org/wikipedia/commons/thumb/8/88/Sandbox.svg/50px-Sandbox.svg.png" decoding="async" width="50" height="33" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/8/88/Sandbox.svg/75px-Sandbox.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/8/88/Sandbox.svg/100px-Sandbox.svg.png 2x" data-file-width="650" data-file-height="424" /></span></span></td><td class="mbox-text">This is the <a href="/wiki/Wikipedia:Template_test_cases" class="mw-redirect" title="Wikipedia:Template test cases">module sandbox</a> page for <a href="/wiki/Module:WikiProject_banner" title="Module:WikiProject banner">Module:WikiProject banner</a> (<a class="external text" href="https://en.wikipedia.org/w/index.php?title=Special%3AComparePages&page1=Module%3AWikiProject+banner&page2=Module%3AWikiProject+banner%2Fsandbox">diff</a>).<br />See also the companion subpage for <a href="/wiki/Module:WikiProject_banner/testcases" title="Module:WikiProject banner/testcases">test cases</a> (<a href="/wiki/Module_talk:WikiProject_banner/testcases" title="Module talk:WikiProject banner/testcases">run</a>).</td></tr></tbody></table><div class="documentation-container" role="complementary" aria-labelledby="documentation-heading"> <div class="documentation"> <div class="documentation-startbox"> <span class="documentation-heading" id="documentation-heading"><span typeof="mw:File"><span><img alt="" src="//upload.wikimedia.org/wikipedia/commons/thumb/4/43/Test_Template_Info-Icon_-_Version_%282%29.svg/50px-Test_Template_Info-Icon_-_Version_%282%29.svg.png" decoding="async" width="50" height="22" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/4/43/Test_Template_Info-Icon_-_Version_%282%29.svg/75px-Test_Template_Info-Icon_-_Version_%282%29.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/4/43/Test_Template_Info-Icon_-_Version_%282%29.svg/100px-Test_Template_Info-Icon_-_Version_%282%29.svg.png 2x" data-file-width="1792" data-file-height="800" /></span></span> Module documentation</span><span class="mw-editsection-like plainlinks">[<a href="/wiki/Module:WikiProject_banner/doc" title="Module:WikiProject banner/doc">view</a>] [<a href="/wiki/Special:EditPage/Module:WikiProject_banner/doc" title="Special:EditPage/Module:WikiProject banner/doc">edit</a>] [<a href="/wiki/Special:PageHistory/Module:WikiProject_banner/doc" title="Special:PageHistory/Module:WikiProject banner/doc">history</a>] [<a href="/wiki/Special:Purge/Module:WikiProject_banner/sandbox" title="Special:Purge/Module:WikiProject banner/sandbox">purge</a>]</span></div> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238436933"><table class="plainlinks ombox ombox-notice" role="presentation"><tbody><tr><td class="mbox-image"><span typeof="mw:File"><span><img alt="Protected" src="//upload.wikimedia.org/wikipedia/en/thumb/4/44/Full-protection-shackle.svg/40px-Full-protection-shackle.svg.png" decoding="async" width="40" height="40" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/en/thumb/4/44/Full-protection-shackle.svg/60px-Full-protection-shackle.svg.png 1.5x, //upload.wikimedia.org/wikipedia/en/thumb/4/44/Full-protection-shackle.svg/80px-Full-protection-shackle.svg.png 2x" data-file-width="512" data-file-height="512" /></span></span></td><td class="mbox-text">This module is <a href="/wiki/Category:Modules_subject_to_page_protection" title="Category:Modules subject to page protection">subject to page protection</a>. It is a <a href="/wiki/Wikipedia:High-risk_templates" title="Wikipedia:High-risk templates">highly visible module</a> in use by a very large number of pages, or is <a href="/wiki/Wikipedia:Substitution" title="Wikipedia:Substitution">substituted</a> very frequently. Because vandalism or mistakes would affect many pages, and even trivial editing might cause substantial load on the servers, it is <a href="/wiki/Wikipedia:Protection_policy" title="Wikipedia:Protection policy">protected</a> from editing.</td></tr></tbody></table> <style data-mw-deduplicate="TemplateStyles:r1129693374">.mw-parser-output .hlist dl,.mw-parser-output .hlist ol,.mw-parser-output .hlist ul{margin:0;padding:0}.mw-parser-output .hlist dd,.mw-parser-output .hlist dt,.mw-parser-output .hlist li{margin:0;display:inline}.mw-parser-output .hlist.inline,.mw-parser-output .hlist.inline dl,.mw-parser-output .hlist.inline ol,.mw-parser-output .hlist.inline ul,.mw-parser-output .hlist dl dl,.mw-parser-output .hlist dl ol,.mw-parser-output .hlist dl ul,.mw-parser-output .hlist ol dl,.mw-parser-output .hlist ol ol,.mw-parser-output .hlist ol ul,.mw-parser-output .hlist ul dl,.mw-parser-output .hlist ul ol,.mw-parser-output .hlist ul ul{display:inline}.mw-parser-output .hlist .mw-empty-li{display:none}.mw-parser-output .hlist dt::after{content:": "}.mw-parser-output .hlist dd::after,.mw-parser-output .hlist li::after{content:" · ";font-weight:bold}.mw-parser-output .hlist dd:last-child::after,.mw-parser-output .hlist dt:last-child::after,.mw-parser-output .hlist li:last-child::after{content:none}.mw-parser-output .hlist dd dd:first-child::before,.mw-parser-output .hlist dd dt:first-child::before,.mw-parser-output .hlist dd li:first-child::before,.mw-parser-output .hlist dt dd:first-child::before,.mw-parser-output .hlist dt dt:first-child::before,.mw-parser-output .hlist dt li:first-child::before,.mw-parser-output .hlist li dd:first-child::before,.mw-parser-output .hlist li dt:first-child::before,.mw-parser-output .hlist li li:first-child::before{content:" (";font-weight:normal}.mw-parser-output .hlist dd dd:last-child::after,.mw-parser-output .hlist dd dt:last-child::after,.mw-parser-output .hlist dd li:last-child::after,.mw-parser-output .hlist dt dd:last-child::after,.mw-parser-output .hlist dt dt:last-child::after,.mw-parser-output .hlist dt li:last-child::after,.mw-parser-output .hlist li dd:last-child::after,.mw-parser-output .hlist li dt:last-child::after,.mw-parser-output .hlist li li:last-child::after{content:")";font-weight:normal}.mw-parser-output .hlist ol{counter-reset:listitem}.mw-parser-output .hlist ol>li{counter-increment:listitem}.mw-parser-output .hlist ol>li::before{content:" "counter(listitem)"\a0 "}.mw-parser-output .hlist dd ol>li:first-child::before,.mw-parser-output .hlist dt ol>li:first-child::before,.mw-parser-output .hlist li ol>li:first-child::before{content:" ("counter(listitem)"\a0 "}</style><style data-mw-deduplicate="TemplateStyles:r1246091330">.mw-parser-output .sidebar{width:22em;float:right;clear:right;margin:0.5em 0 1em 1em;background:var(--background-color-neutral-subtle,#f8f9fa);border:1px solid var(--border-color-base,#a2a9b1);padding:0.2em;text-align:center;line-height:1.4em;font-size:88%;border-collapse:collapse;display:table}body.skin-minerva .mw-parser-output .sidebar{display:table!important;float:right!important;margin:0.5em 0 1em 1em!important}.mw-parser-output .sidebar-subgroup{width:100%;margin:0;border-spacing:0}.mw-parser-output .sidebar-left{float:left;clear:left;margin:0.5em 1em 1em 0}.mw-parser-output .sidebar-none{float:none;clear:both;margin:0.5em 1em 1em 0}.mw-parser-output .sidebar-outer-title{padding:0 0.4em 0.2em;font-size:125%;line-height:1.2em;font-weight:bold}.mw-parser-output .sidebar-top-image{padding:0.4em}.mw-parser-output .sidebar-top-caption,.mw-parser-output .sidebar-pretitle-with-top-image,.mw-parser-output .sidebar-caption{padding:0.2em 0.4em 0;line-height:1.2em}.mw-parser-output .sidebar-pretitle{padding:0.4em 0.4em 0;line-height:1.2em}.mw-parser-output .sidebar-title,.mw-parser-output .sidebar-title-with-pretitle{padding:0.2em 0.8em;font-size:145%;line-height:1.2em}.mw-parser-output .sidebar-title-with-pretitle{padding:0.1em 0.4em}.mw-parser-output .sidebar-image{padding:0.2em 0.4em 0.4em}.mw-parser-output .sidebar-heading{padding:0.1em 0.4em}.mw-parser-output .sidebar-content{padding:0 0.5em 0.4em}.mw-parser-output .sidebar-content-with-subgroup{padding:0.1em 0.4em 0.2em}.mw-parser-output .sidebar-above,.mw-parser-output .sidebar-below{padding:0.3em 0.8em;font-weight:bold}.mw-parser-output .sidebar-collapse .sidebar-above,.mw-parser-output .sidebar-collapse .sidebar-below{border-top:1px solid #aaa;border-bottom:1px solid #aaa}.mw-parser-output .sidebar-navbar{text-align:right;font-size:115%;padding:0 0.4em 0.4em}.mw-parser-output .sidebar-list-title{padding:0 0.4em;text-align:left;font-weight:bold;line-height:1.6em;font-size:105%}.mw-parser-output .sidebar-list-title-c{padding:0 0.4em;text-align:center;margin:0 3.3em}@media(max-width:640px){body.mediawiki .mw-parser-output .sidebar{width:100%!important;clear:both;float:none!important;margin-left:0!important;margin-right:0!important}}body.skin--responsive .mw-parser-output .sidebar a>img{max-width:none!important}@media screen{html.skin-theme-clientpref-night .mw-parser-output .sidebar:not(.notheme) .sidebar-list-title,html.skin-theme-clientpref-night .mw-parser-output .sidebar:not(.notheme) .sidebar-title-with-pretitle{background:transparent!important}html.skin-theme-clientpref-night .mw-parser-output .sidebar:not(.notheme) .sidebar-title-with-pretitle a{color:var(--color-progressive)!important}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .sidebar:not(.notheme) .sidebar-list-title,html.skin-theme-clientpref-os .mw-parser-output .sidebar:not(.notheme) .sidebar-title-with-pretitle{background:transparent!important}html.skin-theme-clientpref-os .mw-parser-output .sidebar:not(.notheme) .sidebar-title-with-pretitle a{color:var(--color-progressive)!important}}@media print{body.ns-0 .mw-parser-output .sidebar{display:none!important}}</style><style data-mw-deduplicate="TemplateStyles:r1019578893">.mw-parser-output .lua-sidebar{width:auto;max-width:22em}</style><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1129693374"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1129693374"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1129693374"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1129693374"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1129693374"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1129693374"><table class="sidebar nomobile nowraplinks"><tbody><tr><th class="sidebar-title">WikiProject banners</th></tr><tr><td class="sidebar-content"> <b><a href="/wiki/Module:WikiProject_banner" title="Module:WikiProject banner">Module</a></b> <div class="hlist"> <ul><li><a href="/wiki/Module_talk:WikiProject_banner" title="Module talk:WikiProject banner">talk</a></li> <li><a class="mw-selflink selflink">sandbox</a></li> <li><a class="external text" href="https://en.wikipedia.org/w/index.php?title=Special:ComparePages&page1=Module%3AWikiProject+banner&page2=Module%3AWikiProject+banner%2Fsandbox">diff</a></li> <li><a href="/wiki/Module_talk:WikiProject_banner/testcases" title="Module talk:WikiProject banner/testcases">testcases</a></li> <li><a href="/wiki/Module:WikiProject_banner/doc" title="Module:WikiProject banner/doc">doc</a></li> <li><a href="/wiki/Special:PrefixIndex/Module:WikiProject_banner/" title="Special:PrefixIndex/Module:WikiProject banner/">subpages</a></li> <li><a href="/wiki/Module_talk:WikiProject_banner/to_do" title="Module talk:WikiProject banner/to do">to do</a></li></ul> </div></td> </tr><tr><td class="sidebar-content"> <b><a href="/wiki/Template:WPBannerMeta" title="Template:WPBannerMeta">Template:WPBannerMeta</a></b> <div class="hlist"> <ul><li><a href="/wiki/Special:PrefixIndex/Template:WPBannerMeta/" title="Special:PrefixIndex/Template:WPBannerMeta/">subpages</a></li> <li><a href="/wiki/Special:PrefixIndex/Template:WPBannerMeta/hooks" title="Special:PrefixIndex/Template:WPBannerMeta/hooks">hooks</a></li> <li><a href="/wiki/Category:Pages_related_to_the_WikiProject_meta_banner" title="Category:Pages related to the WikiProject meta banner">related</a></li></ul> </div></td> </tr><tr><td class="sidebar-content"> <b><a href="/wiki/Module:WikiProject_banner/config" title="Module:WikiProject banner/config">Config</a></b> <div class="hlist"> <ul><li><a href="/wiki/Module:WikiProject_banner/config/sandbox" title="Module:WikiProject banner/config/sandbox">sandbox</a></li> <li><a class="external text" href="https://en.wikipedia.org/w/index.php?title=Special:ComparePages&page1=Module%3AWikiProject+banner%2Fconfig&page2=Module%3AWikiProject+banner%2Fconfig%2Fsandbox">diff</a></li> <li><a href="/wiki/Module:WikiProject_banner/config/doc" title="Module:WikiProject banner/config/doc">doc</a></li></ul> </div></td> </tr><tr><td class="sidebar-content"> <b><a href="/wiki/Module:WikiProject_banner/styles.css" title="Module:WikiProject banner/styles.css">Styles</a></b> <div class="hlist"> <ul><li><a href="/wiki/Module:WikiProject_banner/sandbox/styles.css" title="Module:WikiProject banner/sandbox/styles.css">sandbox</a></li> <li><span class="plainlinks"><a class="external text" href="https://en.wikipedia.org/w/index.php?title=Special:ComparePages&page1=Module%3AWikiProject+banner%2Fstyles.css&page2=Module%3AWikiProject+banner%2Fsandbox%2Fstyles.css">diff</a></span></li></ul> </div></td> </tr><tr><td class="sidebar-content"> <b><a href="/wiki/Module:WikiProject_banner/auxiliary" title="Module:WikiProject banner/auxiliary">Auxiliary</a></b> <div class="hlist"> <ul><li><a href="/wiki/Module:WikiProject_banner/auxiliary/sandbox" title="Module:WikiProject banner/auxiliary/sandbox">sandbox</a></li> <li><a class="external text" href="https://en.wikipedia.org/w/index.php?title=Special:ComparePages&page1=Module%3AWikiProject+banner%2Fauxiliary&page2=Module%3AWikiProject+banner%2Fauxiliary%2Fsandbox">diff</a></li> <li><a href="/wiki/Module:WikiProject_banner/auxiliary/doc" title="Module:WikiProject banner/auxiliary/doc">doc</a></li></ul> </div></td> </tr><tr><td class="sidebar-content"> <b><a href="/wiki/Module:WikiProject_banner/templatepage" title="Module:WikiProject banner/templatepage">templatepage</a></b> <div class="hlist"> <ul><li><a href="/wiki/Module:WikiProject_banner/templatepage/sandbox" title="Module:WikiProject banner/templatepage/sandbox">sandbox</a></li> <li><a class="external text" href="https://en.wikipedia.org/w/index.php?title=Special:ComparePages&page1=Module%3AWikiProject+banner%2Ftemplatepage&page2=Module%3AWikiProject+banner%2Ftemplatepage%2Fsandbox">diff</a></li> <li><a href="/wiki/Module:WikiProject_banner/templatepage/doc" title="Module:WikiProject banner/templatepage/doc">doc</a></li></ul> </div></td> </tr><tr><td class="sidebar-content"> <b><a href="/wiki/Category:WikiProject_banner_templates" title="Category:WikiProject banner templates">Category</a></b> (<a href="/wiki/Category:WikiProject_banners_with_errors" title="Category:WikiProject banners with errors">errors</a>)</td> </tr><tr><td class="sidebar-navbar"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1129693374"><style data-mw-deduplicate="TemplateStyles:r1239400231">.mw-parser-output .navbar{display:inline;font-size:88%;font-weight:normal}.mw-parser-output .navbar-collapse{float:left;text-align:left}.mw-parser-output .navbar-boxtext{word-spacing:0}.mw-parser-output .navbar ul{display:inline-block;white-space:nowrap;line-height:inherit}.mw-parser-output .navbar-brackets::before{margin-right:-0.125em;content:"[ "}.mw-parser-output .navbar-brackets::after{margin-left:-0.125em;content:" ]"}.mw-parser-output .navbar li{word-spacing:-0.125em}.mw-parser-output .navbar a>span,.mw-parser-output .navbar a>abbr{text-decoration:inherit}.mw-parser-output .navbar-mini abbr{font-variant:small-caps;border-bottom:none;text-decoration:none;cursor:inherit}.mw-parser-output .navbar-ct-full{font-size:114%;margin:0 7em}.mw-parser-output .navbar-ct-mini{font-size:114%;margin:0 4em}html.skin-theme-clientpref-night .mw-parser-output .navbar li a abbr{color:var(--color-base)!important}@media(prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .navbar li a abbr{color:var(--color-base)!important}}@media print{.mw-parser-output .navbar{display:none!important}}</style><div class="navbar plainlinks hlist navbar-mini"><ul><li class="nv-view"><a href="/wiki/Template:WikiProject_banner_related" title="Template:WikiProject banner related"><abbr title="View this template">v</abbr></a></li><li class="nv-talk"><a href="/w/index.php?title=Template_talk:WikiProject_banner_related&action=edit&redlink=1" class="new" title="Template talk:WikiProject banner related (page does not exist)"><abbr title="Discuss this template">t</abbr></a></li><li class="nv-edit"><a href="/wiki/Special:EditPage/Template:WikiProject_banner_related" title="Special:EditPage/Template:WikiProject banner related"><abbr title="Edit this template">e</abbr></a></li></ul></div></td></tr></tbody></table> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238436933"><table class="plainlinks ombox ombox-content" role="presentation"><tbody><tr><td class="mbox-image"><span typeof="mw:File"><span><img alt="Warning" src="//upload.wikimedia.org/wikipedia/en/thumb/5/5f/Ambox_warning_orange.svg/40px-Ambox_warning_orange.svg.png" decoding="async" width="40" height="34" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/en/thumb/5/5f/Ambox_warning_orange.svg/60px-Ambox_warning_orange.svg.png 1.5x, //upload.wikimedia.org/wikipedia/en/thumb/5/5f/Ambox_warning_orange.svg/80px-Ambox_warning_orange.svg.png 2x" data-file-width="378" data-file-height="326" /></span></span></td><td class="mbox-text"><b>This Lua module is used on <a class="external text" href="https://linkcount.toolforge.org/?project=en.wikipedia.org&page=Module%3AWikiProject+banner#transclusions">approximately 11,100,000 pages, or roughly 18% of all pages</a></b>.<br /> To avoid major disruption and server load, any changes should be tested in the module's <a class="mw-selflink selflink">/sandbox</a> or <a href="/wiki/Module:WikiProject_banner/testcases" title="Module:WikiProject banner/testcases">/testcases</a> subpages, or in your own <a href="/wiki/Module:Sandbox" title="Module:Sandbox">module sandbox</a>. The tested changes can be added to this page in a single edit. Consider discussing changes on the <a href="/wiki/Module_talk:WikiProject_banner" title="Module talk:WikiProject banner">talk page</a> before implementing them.</td></tr></tbody></table> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238436933"><table class="plainlinks ombox mbox-small ombox-notice" role="presentation"><tbody><tr><td class="mbox-image"><span typeof="mw:File"><a href="/wiki/File:Farm-Fresh_css_add.svg" class="mw-file-description"><img alt="CSS" src="//upload.wikimedia.org/wikipedia/commons/thumb/a/a6/Farm-Fresh_css_add.svg/32px-Farm-Fresh_css_add.svg.png" decoding="async" width="32" height="27" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/a/a6/Farm-Fresh_css_add.svg/48px-Farm-Fresh_css_add.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/a/a6/Farm-Fresh_css_add.svg/64px-Farm-Fresh_css_add.svg.png 2x" data-file-width="142" data-file-height="121" /></a></span></td><td class="mbox-text">This module uses <a href="https://www.mediawiki.org/wiki/Help:TemplateStyles" class="extiw" title="mw:Help:TemplateStyles">TemplateStyles</a>: <div><ul><li><a href="/wiki/Module:WikiProject_banner/styles.css" title="Module:WikiProject banner/styles.css">Module:WikiProject banner/styles.css</a> (<a href="/wiki/Module:WikiProject_banner/sandbox/styles.css" title="Module:WikiProject banner/sandbox/styles.css">sandbox</a>)</li><li><a href="/wiki/Module:Message_box/tmbox.css" title="Module:Message box/tmbox.css">Module:Message box/tmbox.css</a> (<a href="/wiki/Module:Message_box/sandbox/tmbox.css" title="Module:Message box/sandbox/tmbox.css">sandbox</a>)</li></ul></div></td></tr></tbody></table> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238436933"><table class="plainlinks ombox mbox-small ombox-notice" role="presentation"><tbody><tr><td class="mbox-image"><span typeof="mw:File"><span><img alt="" src="//upload.wikimedia.org/wikipedia/commons/thumb/c/cf/Lua-Logo.svg/30px-Lua-Logo.svg.png" decoding="async" width="30" height="30" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/c/cf/Lua-Logo.svg/45px-Lua-Logo.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/c/cf/Lua-Logo.svg/60px-Lua-Logo.svg.png 2x" data-file-width="947" data-file-height="947" /></span></span></td><td class="mbox-text">This module depends on the following other modules:<div><ul><li><a href="/wiki/Module:Arguments" title="Module:Arguments">Module:Arguments</a> (<a href="/wiki/Module:Arguments/sandbox" title="Module:Arguments/sandbox">sandbox</a>)</li><li><a href="/wiki/Module:Check_for_unknown_parameters" title="Module:Check for unknown parameters">Module:Check for unknown parameters</a> (<a href="/wiki/Module:Check_for_unknown_parameters/sandbox" title="Module:Check for unknown parameters/sandbox">sandbox</a>)</li><li><a href="/wiki/Module:Message_box" title="Module:Message box">Module:Message box</a> (<a href="/wiki/Module:Message_box/sandbox" title="Module:Message box/sandbox">sandbox</a>)</li><li><a href="/wiki/Module:Pagetype" title="Module:Pagetype">Module:Pagetype</a> (<a href="/wiki/Module:Pagetype/sandbox" title="Module:Pagetype/sandbox">sandbox</a>)</li><li><a href="/wiki/Module:Template_parameter_value" title="Module:Template parameter value">Module:Template parameter value</a> (<a href="/wiki/Module:Template_parameter_value/sandbox" title="Module:Template parameter value/sandbox">sandbox</a>)</li><li><a href="/wiki/Module:WikiProject_banner/config" title="Module:WikiProject banner/config">Module:WikiProject banner/config</a> (<a href="/wiki/Module:WikiProject_banner/config/sandbox" title="Module:WikiProject banner/config/sandbox">sandbox</a>)</li><li><a href="/wiki/Module:WikiProject_banner/templatepage" title="Module:WikiProject banner/templatepage">Module:WikiProject banner/templatepage</a> (<a href="/wiki/Module:WikiProject_banner/templatepage/sandbox" title="Module:WikiProject banner/templatepage/sandbox">sandbox</a>)</li><li><a href="/wiki/Module:Wikitext_Parsing" title="Module:Wikitext Parsing">Module:Wikitext Parsing</a> (<a href="/wiki/Module:Wikitext_Parsing/sandbox" title="Module:Wikitext Parsing/sandbox">sandbox</a>)</li><li><a href="/wiki/Module:Yesno" title="Module:Yesno">Module:Yesno</a> (<a href="/wiki/Module:Yesno/sandbox" title="Module:Yesno/sandbox">sandbox</a>)</li></ul></div></td></tr></tbody></table> <p><a href="/wiki/Module:WikiProject_banner" title="Module:WikiProject banner">Module:WikiProject banner</a> implements <span class="nowrap">{{</span><a href="/wiki/Template:WikiProject_banner_shell" title="Template:WikiProject banner shell">WikiProject banner shell</a><span class="nowrap">}}</span> and can be used to create <a href="/wiki/Category:WikiProject_banner_templates" title="Category:WikiProject banner templates">WikiProject banners</a>, enabling new projects to easily create a banner to place on article <a href="/wiki/Wikipedia:TALK" class="mw-redirect" title="Wikipedia:TALK">talk pages</a>, ensuring standardisation between projects. A list of all WikiProject banners using this meta-template can be found <a class="external text" href="https://en.wikipedia.org/w/index.php?title=Special:WhatLinksHere/Module:WikiProject_banner&namespace=10&hidelinks=1&hideredirs=1&limit=250">here</a>. </p><p>As this is a <a href="/wiki/Wikipedia:Meta" title="Wikipedia:Meta">meta</a> template, it should not be transcluded directly on to talk pages when you want to tag a page. Instead, use the template provided by the WikiProject. </p><p>WikiProject banners are categorised into a subcategory of <a href="/wiki/Category:WikiProject_banner_templates" title="Category:WikiProject banner templates">Category:WikiProject banner templates</a>. It is not necessary to include a category link in the documentation for each project banner. Any project banners with issues are automatically added to <a href="/wiki/Category:WikiProject_banners_with_errors" title="Category:WikiProject banners with errors">Category:WikiProject banners with errors</a>. </p> <meta property="mw:PageProp/toc" /> <div class="mw-heading mw-heading2"><h2 id="Syntax">Syntax</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Module:WikiProject_banner/doc&action=edit&section=T-1" title="Edit section: Syntax"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>The template can be used at varying levels of complexity, from the very simple to the extremely complicated. Simple options are listed here first, with complexity increasing down the page. </p><p>Two different types of parameters are used: formatting and display: </p> <ul><li>Formatting parameters customise the meta-template for a particular project, defining link targets, categories, images, and text. All formatting parameters use UPPERCASE and underscores (_) instead of spaces, for example <code>|PROJECT=</code> and <code>|NOTE_1_CAT=</code>.</li> <li>Display parameters customise the template output for each individual <i>article</i> that the banner is displayed on. These are the parameters which are entered on the talk page (<code>|class=</code>, <code>|importance=</code>, etc.) and they must be 'passed through' the project banner to the meta-template underneath. To 'pass' the parameter <code>foo</code>, you need to include the code <span class="nowrap"><code>foo={{{foo|}}}</code></span>.</li></ul> <div class="mw-heading mw-heading3"><h3 id="Parameters">Parameters</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Module:WikiProject_banner/doc&action=edit&section=T-2" title="Edit section: Parameters"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <table class="wikitable" style="float:right; clear:both; background:transparent; width:40%;"> <tbody><tr> <th>Common parameters </th></tr> <tr> <td><div style="font-size: 100%; width: 100%;" class="mw-highlight mw-highlight-lang-wikitext mw-content-ltr" dir="ltr"><pre><span></span><span class="p">{{</span><span class="nf">#invoke</span><span class="p">:</span>WikiProject banner<span class="p">|</span>main <span class="p">|</span><span class="nl">PROJECT </span><span class="o">=</span> <span class="p">|</span><span class="nl">substcheck</span><span class="o">=</span><span class="p"><</span><span class="nt">includeonly</span><span class="p">>{{</span><span class="nn">subst</span><span class="p">:</span><span class="nt"></includeonly><includeonly>substcheck</span><span class="p">}}</</span><span class="nt">includeonly</span><span class="p">></span> <span class="p">|</span><span class="nl">listas</span><span class="o">=</span><span class="p">{{{</span><span class="nv">listas</span><span class="p">|}}}</span> <span class="p">|</span><span class="nl">DOC </span><span class="o">=</span> auto <span class="p">|</span><span class="nl">IMAGE_LEFT </span><span class="o">=</span> <span class="p">|</span><span class="nl">IMAGE_LEFT_SIZE </span><span class="o">=</span> <span class="cm"><!--|class={{{class|}}}--></span> <span class="cm"><!--|auto={{{auto|}}}--></span> <span class="cm"><!--|importance={{{importance|}}}--></span> <span class="p">|</span><span class="nl">ASSESSMENT_CAT </span><span class="o">=</span> <span class="p">|</span><span class="nl">ASSESSMENT_LINK </span><span class="o">=</span> <span class="p">|</span><span class="nl">MAIN_TEXT </span><span class="o">=</span> <span class="p">|</span><span class="nl">MAIN_ARTICLE </span><span class="o">=</span> <span class="p">|</span><span class="nl">PORTAL </span><span class="o">=</span> <span class="p">|</span><span class="nl">MAIN_CAT </span><span class="o">=</span> <span class="cm"><!--|attention={{{attention|}}}--></span> <span class="p">|</span><span class="nl">ATTENTION_CAT </span><span class="o">=</span> <span class="cm"><!--|infobox={{{needs-infobox|}}}--></span> <span class="p">|</span><span class="nl">INFOBOX_CAT </span><span class="o">=</span> <span class="p">}}</span> </pre></div> </td></tr></tbody></table> <p>In the examples below, a WikiProject banner will be constructed for the (currently) nonexistent <a href="/w/index.php?title=Wikipedia:WikiProject_Tulips&action=edit&redlink=1" class="new" title="Wikipedia:WikiProject Tulips (page does not exist)">WikiProject Tulips</a>. </p> <div class="mw-heading mw-heading3"><h3 id="Simple_options">Simple options</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Module:WikiProject_banner/doc&action=edit&section=T-3" title="Edit section: Simple options"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li><code><b>PROJECT</b></code> <i>(Required)</i> – the name of the project without the word "WikiProject", used in a variety of contexts; first letter should usually be capitalised. <span class="nowrap"><i>Eg: <code><b>Tulips</b></code></i></span> <ul><li><code><b><code>BANNER_NAME={{subst:FULLPAGENAME}}</code></b></code> – it is assumed that page name of the banner template is <b><code>"Template:WikiProject <PROJECT>"</code></b>. If this is not the case then define the page name in this parameter. <span class="nowrap"><i>Eg: <b><code>Template:Tulips project</code></b></i></span></li> <li><code><b>PROJECT_LINK</b></code> – it is assumed that the project is located at <b><code>"Wikipedia:WikiProject <PROJECT>"</code></b>. If this is not the case, then define the full link to the project page in this parameter. <span class="nowrap"><i>Eg: <b><code>Wikipedia:WikiProject Tulips</code></b></i></span></li> <li><code><b>PROJECT_NAME</b></code> – if your project is not called <b><code>"WikiProject <PROJECT>"</code></b> then define the exact name of the project with this parameter.</li></ul></li> <li><code><b>substcheck</b></code> – this allows the template to detect if it has been substituted instead of transcluded and give an error message. <i><b><code class="mw-highlight mw-highlight-lang-wikitext mw-content-ltr" dir="ltr">substcheck=<span class="p"><</span><span class="nt">includeonly</span><span class="p">>{{</span><span class="nn">subst</span><span class="p">:</span><span class="nt"></includeonly><includeonly>substcheck</span><span class="p">}}</</span><span class="nt">includeonly</span><span class="p">></span></code></b></i></li> <li><code><b>listas</b></code> <i>(Required)</i> – the 'listas' parameter <i>must</i> be passed through the template. <span class="nowrap"><i>Eg: <b><code>listas={{{listas|}}}</code></b></i></span></li> <li><code><b>IMAGE_LEFT</b></code> – the location of an image to use in the top-left corner of the banner. <i><b>Do not</b></i> include the "<i>File:</i>" prefix. Images used on WikiProject banners <i><b>must</b></i> be free images – <a href="/wiki/Wikipedia:FU" class="mw-redirect" title="Wikipedia:FU">fair use</a> images are <i><b>not</b></i> permitted. <span class="nowrap"><i>Eg: <b><code><a href="/wiki/File:Tulipa_suaveolens_floriade_to_Canberra.jpg" title="File:Tulipa suaveolens floriade to Canberra.jpg">Tulipa suaveolens floriade to Canberra.jpg</a></code></b></i></span> <ul><li><code><b>IMAGE_LEFT_SIZE</b></code> – the size of <code>IMAGE_LEFT</code>. Default is 80px. <span class="nowrap"><i>Eg: <b><code>50px</code></b></i></span></li></ul></li> <li><code><b>IMAGE_RIGHT</b></code> – the location of an image to use in the top-right corner of the banner. <i><b>Do not</b></i> include the "<i>File:</i>" prefix. Images used on WikiProject banners <i><b>must</b></i> be free images – <a href="/wiki/Wikipedia:FU" class="mw-redirect" title="Wikipedia:FU">fair use</a> images are <i><b>not</b></i> permitted. <span class="nowrap"><i>Eg: <b><code><a href="/wiki/File:Tulipa_suaveolens_floriade_to_Canberra.jpg" title="File:Tulipa suaveolens floriade to Canberra.jpg">Tulipa suaveolens floriade to Canberra.jpg</a></code></b></i></span> <ul><li><code><b>IMAGE_RIGHT_SIZE</b></code> – the size of <code>IMAGE_RIGHT</code>. Default is 80px. <span class="nowrap"><i>Eg: <b><code>50px</code></b></i></span></li></ul></li> <li><code><b>MAIN_TEXT</b></code> – the default text is "<i>This article is within the scope of <b>[[WikiProject {{{PROJECT_LINK}}}]]</b>, a collaborative effort to improve the coverage of <b>{{{PROJECT or MAIN_ARTICLE}}}</b> articles on Wikipedia. If you would like to participate, please visit the project page, where you can join the <b>[[Talk:{{{PROJECT_LINK}}}]]</b> discussion and see a list of open tasks.</i>" If defined, the alternate message will be displayed. <ul><li><code><b>MAIN_ARTICLE</b></code> – the default article is <code>PROJECT</code>; alternatively, the linked article can be changed to either a raw article title or more complicated text. <span class="nowrap"><i>Eg: (default) <b><code>tulips</code></b> → <b>"...the coverage of <a href="/wiki/Tulip" title="Tulip">tulips</a> on Wikipedia..."</b></i></span> or (alternate) <b><code>[[tulip]]s, [[liliaceae]] and related articles</code></b> → <b>"...the coverage of <a href="/wiki/Tulip" title="Tulip">tulips</a>, <a href="/wiki/Liliaceae" title="Liliaceae">liliaceae</a> and related articles on Wikipedia..."</b></li></ul></li> <li><code><b>PORTAL</b></code> – if the WikiProject maintains a <a href="/wiki/Wikipedia:Portal" title="Wikipedia:Portal">portal</a>, define this parameter with the portal name. The associated image is held centrally at <a href="/wiki/Module:Portal/images" title="Module:Portal/images">Module:Portal/images</a>. <span class="nowrap"><i>Eg: <b><code>Tulips</code></b></i></span></li> <li><code><b>MAIN_CAT</b></code> – the default is <i>no</i> main category created; if defined, all pages displaying the template will be sorted into <a href="/w/index.php?title=Category:MAIN_CAT&action=edit&redlink=1" class="new" title="Category:MAIN CAT (page does not exist)">Category:<code>MAIN_CAT</code></a>. <span class="nowrap"><i>Eg: <b><code>WikiProject Tulips articles</code></b> → <a href="/w/index.php?title=Category:WikiProject_Tulips_articles&action=edit&redlink=1" class="new" title="Category:WikiProject Tulips articles (page does not exist)">Category:WikiProject Tulips articles</a></i></span></li> <li><code><b>BOTTOM_TEXT</b></code> – if defined, contains text that will appear across the bottom of the banner and above the <a href="#Collapsed">collapsed section</a> (if one is present). Please <i><b>do not</b></i> use this parameter to '<a href="/wiki/Hooking" title="Hooking">hook</a>' extra code to the bottom of the template – see the <a href="#Hooks"><i>hooks</i></a> section below for a better solution.</li></ul> <div style="clear:both;" class=""></div> <div class="mw-heading mw-heading4"><h4 id="Example">Example</h4><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Module:WikiProject_banner/doc&action=edit&section=T-4" title="Edit section: Example"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <table style="background: none; width: 50%;"> <tbody><tr> <td><div style="font-size: 100%" class="mw-highlight mw-highlight-lang-wikitext mw-content-ltr" dir="ltr"><pre><span></span><span class="p">{{</span><span class="nf">#invoke</span><span class="p">:</span>WikiProject banner<span class="p">|</span>main <span class="p">|</span><span class="nl">PROJECT </span><span class="o">=</span> Tulips <span class="p">|</span><span class="nl">substcheck</span><span class="o">=</span><span class="p"><</span><span class="nt">includeonly</span><span class="p">>{{</span><span class="nn">subst</span><span class="p">:</span><span class="nt"></includeonly><includeonly>substcheck</span><span class="p">}}</</span><span class="nt">includeonly</span><span class="p">></span> <span class="p">|</span><span class="nl">listas</span><span class="o">=</span><span class="p">{{{</span><span class="nv">listas</span><span class="p">|}}}</span> <span class="p">|</span><span class="nl">PROJECT_LINK </span><span class="o">=</span> Wikipedia:Somewhere about tulips <span class="p">|</span><span class="nl">IMAGE_LEFT </span><span class="o">=</span> Tulipa suaveolens floriade to Canberra.jpg <span class="p">|</span><span class="nl">IMAGE_LEFT_SIZE </span><span class="o">=</span> 50px <span class="p">|</span><span class="nl">MAIN_ARTICLE </span><span class="o">=</span> <span class="p">[[</span><span class="nt">tulip</span><span class="p">]]</span>s, <span class="p">[[</span><span class="nt">liliaceae</span><span class="p">]]</span> and related articles <span class="p">}}</span> </pre></div> </td></tr></tbody></table> <dl><dd>Produces:</dd></dl> <style data-mw-deduplicate="TemplateStyles:r1237879475">.mw-parser-output .tmbox{margin:4px 0;border-collapse:collapse;border:1px solid #c0c090;background-color:#f8eaba;box-sizing:border-box}.mw-parser-output .tmbox.mbox-small{font-size:88%;line-height:1.25em}.mw-parser-output .tmbox-speedy{border:2px solid #b32424;background-color:#fee7e6}.mw-parser-output .tmbox-delete{border:2px solid #b32424}.mw-parser-output .tmbox-content{border:2px solid #f28500}.mw-parser-output .tmbox-style{border:2px solid #fc3}.mw-parser-output .tmbox-move{border:2px solid #9932cc}.mw-parser-output .tmbox .mbox-text{border:none;padding:0.25em 0.9em;width:100%}.mw-parser-output .tmbox .mbox-image{border:none;padding:2px 0 2px 0.9em;text-align:center}.mw-parser-output .tmbox .mbox-imageright{border:none;padding:2px 0.9em 2px 0;text-align:center}.mw-parser-output .tmbox .mbox-empty-cell{border:none;padding:0;width:1px}.mw-parser-output .tmbox .mbox-invalid-type{text-align:center}@media(min-width:720px){.mw-parser-output .tmbox{margin:4px 10%}.mw-parser-output .tmbox.mbox-small{clear:right;float:right;margin:4px 0 4px 1em;width:238px}}@media screen{html.skin-theme-clientpref-night .mw-parser-output .tmbox{background-color:#2e2505}html.skin-theme-clientpref-night .mw-parser-output .tmbox-speedy{background-color:#310402}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .tmbox{background-color:#2e2505}html.skin-theme-clientpref-os .mw-parser-output .tmbox-speedy{background-color:#310402}}body.skin--responsive .mw-parser-output table.tmbox img{max-width:none!important}</style><style data-mw-deduplicate="TemplateStyles:r1259570071">.mw-parser-output .wpb-header,.mw-parser-output .wpb-metadata,.mw-parser-output .wpb-iefix{display:none}.mw-parser-output .wpb-header-name{text-align:right;padding:0.3em 1em 0.3em 0.3em;width:50%;font-weight:bold}.mw-parser-output .wpb-header-assessment{text-align:left;width:50%;padding:0.3em}.mw-parser-output .wpb-header-combined{text-align:left;padding:0.3em 0.3em 0.3em 0;font-weight:bold}.mw-parser-output .wpb-header-bubbles{border-radius:.5em;padding:0 .3em;margin-left:0.5em;white-space:nowrap;font-weight:normal;color:black}.mw-parser-output .wpb-nested-task-force{font-weight:normal}.mw-parser-output .wpb-header-icon{width:50px;text-align:center}.mw-parser-output .wpb-category-box{background-color:#F5F5F5;border-width:1px;width:500px}.mw-parser-output .wpbs .wpb .wpb-main{background-color:#FFFAEF;padding:3px 0 3px 0.7em}.mw-parser-output .wpb .wpb-main{padding:3px 5px}.mw-parser-output .wpbs .wpb-header{background-color:#FFFAEF}.mw-parser-output .wpb-main>table{background-color:transparent;border:none;padding:0;width:100%;border-spacing:0}.mw-parser-output .wpb .wpb-image{padding:2px 0}.mw-parser-output .wpb-collapsed-head{text-align:left;padding:0.2em 2px 0.2em 0}.mw-parser-output .wpb-collapsed-notes{padding:0}.mw-parser-output .wpb-collapsed-notes>table{width:100%;background-color:transparent}.mw-parser-output .wpb .wpb-gutter{padding:2px 0 0 0}.mw-parser-output .wpbs .banner-shell-inner{background-color:#f8eaba;border:none}.mw-parser-output .wpb-table{table-layout:fixed}@media(min-width:720px){.mw-parser-output .wpb{min-width:80%}}.mw-parser-output .assess{font-weight:bold;text-align:center;white-space:nowrap;color:black}.mw-parser-output .import-top{background-color:#FFBFFF}.mw-parser-output .import-high{background-color:#FFCCFF}.mw-parser-output .import-mid{background-color:#FFD9FF}.mw-parser-output .import-low{background-color:#FFE7FF}.mw-parser-output .import-bottom{background-color:#FFEBFF}.mw-parser-output .import-na{background-color:#F5F5F5}.mw-parser-output .import-unknown{background-color:#DCDCDC}.mw-parser-output .class-fa,.mw-parser-output .class-fl,.mw-parser-output .class-fm{background-color:#BED3FF}.mw-parser-output .class-a,.mw-parser-output .class-al{background-color:#C0FFFF}.mw-parser-output .class-ga{background-color:#C0FFC0}.mw-parser-output .class-b,.mw-parser-output .class-bl{background-color:#DFFFBF}.mw-parser-output .class-c,.mw-parser-output .class-cl{background-color:#FFFFBE}.mw-parser-output .class-start{background-color:#FFDBBF}.mw-parser-output .class-stub,.mw-parser-output .class-sl{background-color:#FFC0C0}.mw-parser-output .class-list{background-color:#D2C0FF}.mw-parser-output .class-na{background-color:#F5F5F5}.mw-parser-output .class-category{background-color:#FFDB58}.mw-parser-output .class-disambig{background-color:#00FA9A}.mw-parser-output .class-draft{background-color:#E7B198}.mw-parser-output .class-file{background-color:#DDCCFF}.mw-parser-output .class-future{background-color:#B4BBFF}.mw-parser-output .class-portal{background-color:#DDB1BC}.mw-parser-output .class-project{background-color:#C0C090}.mw-parser-output .class-redirect{background-color:#C0C0C0}.mw-parser-output .class-sia{background-color:#E9DAFF}.mw-parser-output .class-user{background-color:#DDD06A}.mw-parser-output .class-template{background-color:#FBCEB1}.mw-parser-output .class-unassessed{background-color:#DCDCDC}.mw-parser-output .conflict{border:0.2em solid red}.mw-parser-output .inactive-wikiproject .wpb-header-bubbles{color:inherit}@media screen{html.skin-theme-clientpref-night .mw-parser-output .wpb-category-box{background-color:#0a0a0a}html.skin-theme-clientpref-night .mw-parser-output .wpbs .wpb .wpb-main,html.skin-theme-clientpref-night .mw-parser-output .wpbs .wpb-header{background-color:#302f2d}html.skin-theme-clientpref-night .mw-parser-output .wpbs .banner-shell-inner{background-color:#2e2505}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .wpb-category-box{background-color:#0a0a0a}html.skin-theme-clientpref-os .mw-parser-output .wpbs .wpb .wpb-main,html.skin-theme-clientpref-os .mw-parser-output .wpbs .wpb-header{background-color:#302f2d}html.skin-theme-clientpref-os .mw-parser-output .wpbs .banner-shell-inner{background-color:#2e2505}}</style><table class="tmbox tmbox-notice mw-collapsible innercollapse wpb wpb-table"><tbody><tr class="wpb-header"><td class="wpb-header-icon"><span typeof="mw:File"><a href="/wiki/File:Tulipa_suaveolens_floriade_to_Canberra.jpg" class="mw-file-description"><img alt="WikiProject icon" src="//upload.wikimedia.org/wikipedia/commons/thumb/e/ea/Tulipa_suaveolens_floriade_to_Canberra.jpg/19px-Tulipa_suaveolens_floriade_to_Canberra.jpg" decoding="async" width="19" height="25" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/e/ea/Tulipa_suaveolens_floriade_to_Canberra.jpg/28px-Tulipa_suaveolens_floriade_to_Canberra.jpg 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/e/ea/Tulipa_suaveolens_floriade_to_Canberra.jpg/37px-Tulipa_suaveolens_floriade_to_Canberra.jpg 2x" data-file-width="1200" data-file-height="1600" /></a></span></td><td class="wpb-header-combined"><a href="/w/index.php?title=Wikipedia:Somewhere_about_tulips&action=edit&redlink=1" class="new" title="Wikipedia:Somewhere about tulips (page does not exist)">Tulips</a> </td></tr><tr><td class="mbox-text wpb-main" colspan="2"><table><tbody><tr><td class="mbox-image wpb-image"><span typeof="mw:File"><a href="/wiki/File:Tulipa_suaveolens_floriade_to_Canberra.jpg" class="mw-file-description"><img alt="WikiProject icon" src="//upload.wikimedia.org/wikipedia/commons/thumb/e/ea/Tulipa_suaveolens_floriade_to_Canberra.jpg/50px-Tulipa_suaveolens_floriade_to_Canberra.jpg" decoding="async" width="50" height="67" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/e/ea/Tulipa_suaveolens_floriade_to_Canberra.jpg/75px-Tulipa_suaveolens_floriade_to_Canberra.jpg 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/e/ea/Tulipa_suaveolens_floriade_to_Canberra.jpg/100px-Tulipa_suaveolens_floriade_to_Canberra.jpg 2x" data-file-width="1200" data-file-height="1600" /></a></span></td><td class="mbox-text">This article is within the scope of <b><a href="/w/index.php?title=Wikipedia:Somewhere_about_tulips&action=edit&redlink=1" class="new" title="Wikipedia:Somewhere about tulips (page does not exist)">WikiProject Tulips</a></b>, a collaborative effort to improve the coverage of <a href="/wiki/Tulip" title="Tulip">tulips</a>, <a href="/wiki/Liliaceae" title="Liliaceae">liliaceae</a> and related articles on Wikipedia. If you would like to participate, please visit the project page, where you can join <a href="/w/index.php?title=Wikipedia_talk:Somewhere_about_tulips&action=edit&redlink=1" class="new" title="Wikipedia talk:Somewhere about tulips (page does not exist)">the discussion</a> and see a list of open tasks.<span class="metadata wpb-metadata"><span class="wpb-project">Tulips</span><span class="wpb-project_link">Wikipedia:Somewhere about tulips</span><span class="wpb-banner_name">Template:WikiProject Tulips</span><span class="wpb-assessment_cat">Tulips articles</span></span></td><td class="mbox-empty-cell"></td></tr></tbody></table></td></tr></tbody></table> <div class="mw-heading mw-heading3"><h3 id="Assessment">Assessment</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Module:WikiProject_banner/doc&action=edit&section=T-5" title="Edit section: Assessment"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Many projects use the <a href="/wiki/Wikipedia:Content_assessment" title="Wikipedia:Content assessment">Wikipedia:Content assessment</a> schema to grade their articles by quality and the corresponding <a href="/wiki/Wikipedia:Version_1.0_Editorial_Team/Release_Version_Criteria#Importance_of_topic" title="Wikipedia:Version 1.0 Editorial Team/Release Version Criteria">importance scale</a> to place their articles in order of priority. In order to implement <a href="/wiki/Wikipedia:1.0" class="mw-redirect" title="Wikipedia:1.0">WP:1.0</a>, which uses a bot to automatically compile its statistics tables, you will need to follow the instructions at <span class="nowrap"><a href="/wiki/Wikipedia:Version_1.0_Editorial_Team/Using_the_bot" title="Wikipedia:Version 1.0 Editorial Team/Using the bot">/Using the bot</a></span>, as well as those outlined here. </p> <ul><li><code><b>class</b></code> <i>(Required)</i>– the class parameter must be passed through, if the quality scale is used. <span class="nowrap"><i>Eg: <b><code>class={{{class|}}}</code></b></i></span> <ul><li><span class="anchor" id="auto"></span><code><b>auto</b></code> the auto parameter must be passed through, if the auto assess option is needed. <span class="nowrap"><i>Eg: <b><code>auto={{{auto|}}}</code></b></i></span> Projects which use <a href="/wiki/Wikipedia:BOT" class="mw-redirect" title="Wikipedia:BOT">bots</a> to automatically categorise articles can have the bot add the following parameter to the project banner, which triggers the display of a small notice that the article was tagged by a bot rather than a human: <dl><dd><code>|auto=stub</code>, for an article which includes a stub template, to indicate that it has automatically been rated Stub-class;</dd> <dd><code>|auto=inherit</code>, to show that the class has automatically been inherited from other WikiProject's assessments on the same page;</dd> <dd><code>|auto=length</code>, to show that the class has automatically been deduced from the length of the article.</dd></dl> <ul><li><code><b>AUTO_ASSESS_CAT</b></code> – if defined, all articles with the <code class="tpl-para" style="word-break:break-word;">|auto=</code> parameter will be categorised into <a href="/w/index.php?title=Category:AUTO_ASSESS_CAT&action=edit&redlink=1" class="new" title="Category:AUTO ASSESS CAT (page does not exist)">Category:<code>AUTO_ASSESS_CAT</code></a>. By default, they are categorised into <a href="/w/index.php?title=Category:Automatically_assessed_PROJECT_articles&action=edit&redlink=1" class="new" title="Category:Automatically assessed PROJECT articles (page does not exist)">Category:Automatically assessed <code>PROJECT</code> articles</a>. <span class="nowrap"><i>Eg: <b><code>Automatically assessed Tulip and Daffodil articles</code></b> → <a href="/w/index.php?title=Category:Automatically_assessed_Tulip_and_Daffodil_articles&action=edit&redlink=1" class="new" title="Category:Automatically assessed Tulip and Daffodil articles (page does not exist)">Category:Automatically assessed Tulip and Daffodil articles</a></i></span></li></ul></li> <li><code><b>b1</b></code>, <code><b>b2</b></code>, <code><b>b3</b></code>, <code><b>b4</b></code>, <code><b>b5</b></code>, <code><b>b6</b></code> – the six B-class criteria parameters.</li></ul></li> <li><code><b>importance</b></code>– if defined, enables the standard importance scale (Top, High, Mid, Low, NA, Unknown). <span class="nowrap"><i>Eg: <b><code>importance={{{importance|}}}</code></b></i></span> <ul><li><code><b>IMPORTANCE_SCALE</b></code> – configures the importance scale, if used. The possible options are: <ul><li>standard – enables the 'standard' importance scale (Top, High, Mid, Low, NA and Unknown). (This is the default behaviour.)</li> <li>inline – allows for a simple custom importance scale to be defined, generally with <span class="nowrap">{{</span><a href="/wiki/Template:Importance_mask" title="Template:Importance mask">Importance mask</a><span class="nowrap">}}</span>.</li> <li>subpage – allows for a more complex custom importance scale to be used using a subpage called <i>/importance</i>.</li></ul></li></ul></li> <li><code><b>ASSESSMENT_LINK</b></code> – the link to a WikiProject-specific quality (and/or importance) scale. If there is a page at <b><code>"Wikipedia:WikiProject <PROJECTLINK>/Assessment"</code></b> then this will be used by default. To override this, you can set this parameter to <b>no</b>.</li> <li><code><b>ASSESSMENT_CAT</b></code> – articles are sorted into categories based on their quality; so <a href="/wiki/Wikipedia:FA" class="mw-redirect" title="Wikipedia:FA">"Featured Articles"</a> on Tulips would be categorised by default into <a href="/w/index.php?title=Category:FA-Class_Tulips_articles&action=edit&redlink=1" class="new" title="Category:FA-Class Tulips articles (page does not exist)">Category:FA-Class Tulips articles</a>. To change the default, define this parameter so that featured articles are instead categorised into <a href="/w/index.php?title=Category:FA-Class_ASSESSMENT_CAT&action=edit&redlink=1" class="new" title="Category:FA-Class ASSESSMENT CAT (page does not exist)">Category:FA-Class <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">ASSESSMENT_CAT</code></a>. <span class="nowrap"><i>Eg: <b><code>|ASSESSMENT_CAT=Liliaceae articles</code></b> → <a href="/w/index.php?title=Category:FA-Class_Liliaceae_articles&action=edit&redlink=1" class="new" title="Category:FA-Class Liliaceae articles (page does not exist)">Category:FA-Class Liliaceae articles</a></i></span></li></ul> <div class="mw-heading mw-heading4"><h4 id="Example_2">Example</h4><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Module:WikiProject_banner/doc&action=edit&section=T-6" title="Edit section: Example"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <table style="background: none; width: 50%;"> <tbody><tr> <td><div style="font-size: 100%" class="mw-highlight mw-highlight-lang-wikitext mw-content-ltr" dir="ltr"><pre><span></span><span class="p">{{</span><span class="nf">#invoke</span><span class="p">:</span>WikiProject banner<span class="p">|</span>main <span class="p">|</span><span class="nl">PROJECT </span><span class="o">=</span> Tulips <span class="p">|</span><span class="nl">substcheck</span><span class="o">=</span><span class="p"><</span><span class="nt">includeonly</span><span class="p">>{{</span><span class="nn">subst</span><span class="p">:</span><span class="nt"></includeonly><includeonly>substcheck</span><span class="p">}}</</span><span class="nt">includeonly</span><span class="p">></span> <span class="p">|</span><span class="nl">listas</span><span class="o">=</span><span class="p">{{{</span><span class="nv">listas</span><span class="p">|}}}</span> <span class="p">|</span><span class="nl">IMAGE_LEFT </span><span class="o">=</span> Tulipa suaveolens floriade to Canberra.jpg <span class="p">|</span><span class="nl">QUALITY_SCALE </span><span class="o">=</span> extended <span class="p">|</span><span class="nl">class</span><span class="o">=</span><span class="p">{{{</span><span class="nv">class</span><span class="p">|}}}</span> <span class="p">|</span><span class="nl">auto</span><span class="o">=</span><span class="p">{{{</span><span class="nv">auto</span><span class="p">|}}}</span> <span class="p">|</span><span class="nl">importance</span><span class="o">=</span><span class="p">{{{</span><span class="nv">importance</span><span class="p">|}}}</span> <span class="p">|</span><span class="nl">ASSESSMENT_LINK </span><span class="o">=</span> Wikipedia:WikiProject Tulips/Article grading <span class="p">}}</span> </pre></div> </td></tr></tbody></table> <dl><dd>Produces:</dd></dl> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1237879475"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1259570071"><table class="tmbox tmbox-notice mw-collapsible innercollapse wpb wpb-table"><tbody><tr class="wpb-header"><td class="wpb-header-icon"><span typeof="mw:File"><a href="/wiki/File:Tulipa_suaveolens_floriade_to_Canberra.jpg" class="mw-file-description"><img alt="WikiProject icon" src="//upload.wikimedia.org/wikipedia/commons/thumb/e/ea/Tulipa_suaveolens_floriade_to_Canberra.jpg/19px-Tulipa_suaveolens_floriade_to_Canberra.jpg" decoding="async" width="19" height="25" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/e/ea/Tulipa_suaveolens_floriade_to_Canberra.jpg/28px-Tulipa_suaveolens_floriade_to_Canberra.jpg 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/e/ea/Tulipa_suaveolens_floriade_to_Canberra.jpg/37px-Tulipa_suaveolens_floriade_to_Canberra.jpg 2x" data-file-width="1200" data-file-height="1600" /></a></span></td><td class="wpb-header-combined"><a href="/w/index.php?title=Wikipedia:WikiProject_Tulips&action=edit&redlink=1" class="new" title="Wikipedia:WikiProject Tulips (page does not exist)">Tulips</a> <span class="wpb-header-bubbles class-ga">GA‑class</span> <span class="wpb-header-bubbles import-top">Top‑importance</span></td></tr><tr><td class="mbox-text wpb-main" colspan="2"><table><tbody><tr><td class="mbox-image wpb-image"><span typeof="mw:File"><a href="/wiki/File:Tulipa_suaveolens_floriade_to_Canberra.jpg" class="mw-file-description"><img alt="WikiProject icon" src="//upload.wikimedia.org/wikipedia/commons/thumb/e/ea/Tulipa_suaveolens_floriade_to_Canberra.jpg/80px-Tulipa_suaveolens_floriade_to_Canberra.jpg" decoding="async" width="80" height="107" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/e/ea/Tulipa_suaveolens_floriade_to_Canberra.jpg/120px-Tulipa_suaveolens_floriade_to_Canberra.jpg 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/e/ea/Tulipa_suaveolens_floriade_to_Canberra.jpg/160px-Tulipa_suaveolens_floriade_to_Canberra.jpg 2x" data-file-width="1200" data-file-height="1600" /></a></span></td><td class="mbox-text">This article is within the scope of <b><a href="/w/index.php?title=Wikipedia:WikiProject_Tulips&action=edit&redlink=1" class="new" title="Wikipedia:WikiProject Tulips (page does not exist)">WikiProject Tulips</a></b>, a collaborative effort to improve the coverage of <a href="/wiki/Tulips" class="mw-redirect" title="Tulips">Tulips</a> on Wikipedia. If you would like to participate, please visit the project page, where you can join <a href="/w/index.php?title=Wikipedia_talk:WikiProject_Tulips&action=edit&redlink=1" class="new" title="Wikipedia talk:WikiProject Tulips (page does not exist)">the discussion</a> and see a list of open tasks.<span class="metadata wpb-metadata"><span class="wpb-project">Tulips</span><span class="wpb-project_link">Wikipedia:WikiProject Tulips</span><span class="wpb-banner_name">Template:WikiProject Tulips</span><span class="wpb-assessment_cat">Tulips articles</span></span></td><td class="mbox-empty-cell"></td></tr><tr><td class="assess class-ga"><a href="/w/index.php?title=Category:GA-Class_Tulips_articles&action=edit&redlink=1" class="new" title="Category:GA-Class Tulips articles (page does not exist)">GA</a></td><td class="mbox-text" colspan="2">This article has been rated as <b>GA-class</b> on Wikipedia's <a href="/wiki/Wikipedia:Content_assessment" title="Wikipedia:Content assessment">content assessment</a> scale.</td></tr><tr><td class="assess import-top"><a href="/w/index.php?title=Category:Top-importance_Tulips_articles&action=edit&redlink=1" class="new" title="Category:Top-importance Tulips articles (page does not exist)">Top</a></td><td class="mbox-text" colspan="2">This article has been rated as <b>Top-importance</b> on the <a href="/w/index.php?title=Wikipedia:WikiProject_Tulips/Article_grading&action=edit&redlink=1" class="new" title="Wikipedia:WikiProject Tulips/Article grading (page does not exist)">project's importance scale</a>.</td></tr></tbody></table></td></tr></tbody></table> <div class="mw-heading mw-heading3"><h3 id="Alerts_and_notes">Alerts and notes</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Module:WikiProject_banner/doc&action=edit&section=T-7" title="Edit section: Alerts and notes"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Built into the module is the ability to display a number of other fields that contain useful information about the article. There are also three predefined fields for: </p> <ol><li>articles which have been <a href="/wiki/Wikipedia:AUTOASSESS" class="mw-redirect" title="Wikipedia:AUTOASSESS">automatically assessed</a> by a bot (see <a href="#auto">above</a>);</li> <li>articles in need of immediate attention;</li> <li>articles in need of an <a href="/wiki/Wikipedia:Manual_of_Style/Infoboxes" title="Wikipedia:Manual of Style/Infoboxes">infobox</a>.</li></ol> <p>The parameters are: </p> <ul><li><code><b>attention</b></code> – pass this parameter through to enable the use of the attention note. <span class="nowrap"><i>Eg: <b><code>attention={{{attention|}}}</code></b></i></span>, then by including <code>|attention=yes</code> on the talk page. <ul><li><code><b>ATTENTION_CAT</b></code> – if defined, all articles displaying the attention note will be categorised into <a href="/w/index.php?title=Category:ATTENTION_CAT&action=edit&redlink=1" class="new" title="Category:ATTENTION CAT (page does not exist)">Category:<code>ATTENTION_CAT</code></a>. By default, they are categorised into <a href="/w/index.php?title=Category:PROJECT_articles_needing_attention&action=edit&redlink=1" class="new" title="Category:PROJECT articles needing attention (page does not exist)">Category:<code>PROJECT</code> articles needing attention</a>. <span class="nowrap"><i>Eg: <b><code>Floridiae taskforce articles needing attention</code></b> → <a href="/w/index.php?title=Category:Floridiae_taskforce_articles_needing_attention&action=edit&redlink=1" class="new" title="Category:Floridiae taskforce articles needing attention (page does not exist)">Category:Floridiae taskforce articles needing attention</a></i></span>. A value of <code>none</code> results in no categorisation.</li></ul></li> <li><code><b>infobox</b></code> – pass this parameter through to enable the use of the needs-infobox note. <span class="nowrap"><i>Eg: <b><code>infobox={{{needs-infobox|}}}</code></b></i></span>, then by including <code>|needs-infobox=yes</code> on the talk page. <ul><li><code><b>INFOBOX_CAT</b></code> – if defined, all articles displaying the needs-infobox note will be categorised into <a href="/w/index.php?title=Category:INFOBOX_CAT&action=edit&redlink=1" class="new" title="Category:INFOBOX CAT (page does not exist)">Category:<code>INFOBOX_CAT</code></a>. By default, they are categorised into <a href="/w/index.php?title=Category:PROJECT_articles_needing_infoboxes&action=edit&redlink=1" class="new" title="Category:PROJECT articles needing infoboxes (page does not exist)">Category:<code>PROJECT</code> articles needing infoboxes</a>. <span class="nowrap"><i>Eg: <b><code>Floridiae taskforce articles needing infoboxes</code></b> → <a href="/w/index.php?title=Category:Floridiae_taskforce_articles_needing_infoboxes&action=edit&redlink=1" class="new" title="Category:Floridiae taskforce articles needing infoboxes (page does not exist)">Category:Floridiae taskforce articles needing infoboxes</a></i></span>. A value of <code>none</code> results in no categorisation.</li></ul></li> <li><code><b>note 1</b></code>– pass this parameter through to trigger any defined note. <span class="nowrap"><i>Eg: <b><code>note 1={{{needs-photo|}}}</code></b></i></span>, then by including <code>|needs-photo=yes</code> on the talk page. <ul><li><code><b>NOTE_1_TEXT</b></code> – the text of note 1. <i>E.g.: This page has been marked as needing a <a href="/wiki/Photograph" title="Photograph">photograph</a></i>. If this is left blank there is no visual output.</li> <li><code><b>NOTE_1_IMAGE</b></code> – an image can be defined for each note. Remember that all images <i><b>must</b></i> be free, not fair-use. <span class="nowrap"><i>Eg: <b><code>Gnome-dev-camera.svg</code></b></i></span></li> <li><code><b>NOTE_1_CAT</b></code> – if defined, all articles displaying note 1 will be categorised into <a href="/w/index.php?title=Category:NOTE_1_CAT&action=edit&redlink=1" class="new" title="Category:NOTE 1 CAT (page does not exist)">Category:<code>NOTE_1_CAT</code></a>. <span class="nowrap"><i>Eg: <b><code>Wikipedia requested photographs of Floridiae</code></b> → <a href="/w/index.php?title=Category:Wikipedia_requested_photographs_of_Floridiae&action=edit&redlink=1" class="new" title="Category:Wikipedia requested photographs of Floridiae (page does not exist)">Category:Wikipedia requested photographs of Floridiae</a></i></span></li></ul></li> <li><code id="Collapsed"><b>COLLAPSED</b></code> – when more than a threshold number of notes and alerts are triggered on a page, they are automagically collapsed into a show/hide box. The threshold number can be customised by setting this parameter to the maximum number of notes on a page that will <i>not</i> trigger the collapse. The default is 2, so if three notes are triggered on a page, they will not be collapsed, but if a fourth is also triggered, the collapse box appears. So setting <code class="tpl-para" style="word-break:break-word;">|COLLAPSED=0</code> will <i>always</i> create a collapse box (if there are any notes to fill it), while <code class="tpl-para" style="word-break:break-word;">|COLLAPSED=999</code> will never trigger a collapse box. <span class="nowrap"><i>Eg: <b><code>6</code></b></i></span> <ul><li><code><b>COLLAPSED_HEAD</b></code> – the heading for the collapsed section; the default is <i>More information:</i> <span class="nowrap"><i>Eg: <b><code>Additional information:</code></b></i></span></li></ul></li> <li><code><b>NOTE_SIZE</b></code> – the size of the image used for the icons. (It is recommended to precede the size with "x" as this specifies the height of the image instead of the width, which results in a neater banner because all rows have equal height.) The default is a height of 25px. <span class="nowrap"><i>Eg: <b><code>x30px</code></b></i></span></li></ul> <div class="mw-heading mw-heading4"><h4 id="Example_3">Example</h4><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Module:WikiProject_banner/doc&action=edit&section=T-8" title="Edit section: Example"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <table style="background: none; width: 50%;"> <tbody><tr> <td><div style="font-size: 100%" class="mw-highlight mw-highlight-lang-wikitext mw-content-ltr" dir="ltr"><pre><span></span><span class="p">{{</span><span class="nf">#invoke</span><span class="p">:</span>WikiProject banner<span class="p">|</span>main <span class="p">|</span><span class="nl">PROJECT </span><span class="o">=</span> Tulips <span class="p">|</span><span class="nl">substcheck</span><span class="o">=</span><span class="p"><</span><span class="nt">includeonly</span><span class="p">>{{</span><span class="nn">subst</span><span class="p">:</span><span class="nt"></includeonly><includeonly>substcheck</span><span class="p">}}</</span><span class="nt">includeonly</span><span class="p">></span> <span class="p">|</span><span class="nl">listas</span><span class="o">=</span><span class="p">{{{</span><span class="nv">listas</span><span class="p">|}}}</span> <span class="p">|</span><span class="nl">IMAGE_LEFT </span><span class="o">=</span> Tulipa suaveolens floriade to Canberra.jpg <span class="p">|</span><span class="nl">QUALITY_SCALE </span><span class="o">=</span> extended <span class="p">|</span><span class="nl">class</span><span class="o">=</span><span class="p">{{{</span><span class="nv">class</span><span class="p">|}}}</span> <span class="p">|</span><span class="nl">ASSESSMENT_LINK </span><span class="o">=</span> Wikipedia:WikiProject Tulips/Article grading <span class="p">|</span><span class="nl">auto</span><span class="o">=</span><span class="p">{{{</span><span class="nv">auto</span><span class="p">|}}}</span> <span class="p">|</span><span class="nl">AUTO_ASSESS_CAT </span><span class="o">=</span> <span class="p">|</span><span class="nl">attention</span><span class="o">=</span><span class="p">{{{</span><span class="nv">attention</span><span class="p">|}}}</span> <span class="p">|</span><span class="nl">ATTENTION_CAT </span><span class="o">=</span> <span class="p">|</span><span class="nl">infobox</span><span class="o">=</span><span class="p">{{{</span><span class="nv">needs-infobox</span><span class="p">|}}}</span> <span class="p">|</span><span class="nl">INFOBOX_CAT </span><span class="o">=</span> <span class="p">|</span><span class="nl">note 1</span><span class="o">=</span><span class="p">{{{</span><span class="nv">needs-photo</span><span class="p">|}}}</span> <span class="p">|</span><span class="nl">NOTE_1_TEXT </span><span class="o">=</span> This page has been marked as needing a <span class="p">[[</span><span class="nt">photograph</span><span class="p">]]</span>. <span class="p">|</span><span class="nl">NOTE_1_IMAGE </span><span class="o">=</span> Gnome-dev-camera.svg <span class="p">|</span><span class="nl">NOTE_1_CAT </span><span class="o">=</span> Wikipedia requested photographs of Floridiae <span class="p">|</span><span class="nl">note 2 </span><span class="o">=</span> <span class="p">{{{</span><span class="nv">audio-file</span><span class="p">|}}}</span> <span class="p">|</span><span class="nl">NOTE_2_TEXT </span><span class="o">=</span> An <span class="p">[[</span><span class="nt">audio file format</span><span class="p">|</span>audio file<span class="p">]]</span> has been created of this article. <span class="p">|</span><span class="nl">NOTE_2_IMAGE </span><span class="o">=</span> Nuvola apps arts.svg <span class="p">|</span><span class="nl">NOTE_2_CAT </span><span class="o">=</span> Tulips articles with audio files <span class="p">}}</span> </pre></div> </td></tr></tbody></table> <dl><dd>Produces:</dd></dl> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1237879475"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1259570071"><table class="tmbox tmbox-notice mw-collapsible innercollapse wpb wpb-table"><tbody><tr class="wpb-header"><td class="wpb-header-icon"><span typeof="mw:File"><a href="/wiki/File:Tulipa_suaveolens_floriade_to_Canberra.jpg" class="mw-file-description"><img alt="WikiProject icon" src="//upload.wikimedia.org/wikipedia/commons/thumb/e/ea/Tulipa_suaveolens_floriade_to_Canberra.jpg/19px-Tulipa_suaveolens_floriade_to_Canberra.jpg" decoding="async" width="19" height="25" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/e/ea/Tulipa_suaveolens_floriade_to_Canberra.jpg/28px-Tulipa_suaveolens_floriade_to_Canberra.jpg 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/e/ea/Tulipa_suaveolens_floriade_to_Canberra.jpg/37px-Tulipa_suaveolens_floriade_to_Canberra.jpg 2x" data-file-width="1200" data-file-height="1600" /></a></span></td><td class="wpb-header-combined"><a href="/w/index.php?title=Wikipedia:WikiProject_Tulips&action=edit&redlink=1" class="new" title="Wikipedia:WikiProject Tulips (page does not exist)">Tulips</a> <span class="wpb-header-bubbles class-stub">Stub‑class</span> <span class="wpb-header-bubbles"><span class="mw-default-size" typeof="mw:File"><span title="This article has been automatically rated by a bot or other tool as Stub-class because it uses a stub template. Please ensure the assessment is correct before removing the |auto= parameter."><img alt="" src="//upload.wikimedia.org/wikipedia/en/thumb/8/8e/Robot_ic%C3%B4n.svg/18px-Robot_ic%C3%B4n.svg.png" decoding="async" width="18" height="20" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/en/thumb/8/8e/Robot_ic%C3%B4n.svg/27px-Robot_ic%C3%B4n.svg.png 1.5x, //upload.wikimedia.org/wikipedia/en/thumb/8/8e/Robot_ic%C3%B4n.svg/36px-Robot_ic%C3%B4n.svg.png 2x" data-file-width="91" data-file-height="100" /></span></span></span> <span class="wpb-header-bubbles"><span class="mw-default-size" typeof="mw:File"><span title="This article has been marked as needing immediate attention."><img alt="" src="//upload.wikimedia.org/wikipedia/commons/thumb/f/f1/Diamond-caution.svg/20px-Diamond-caution.svg.png" decoding="async" width="20" height="20" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/f/f1/Diamond-caution.svg/30px-Diamond-caution.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/f/f1/Diamond-caution.svg/40px-Diamond-caution.svg.png 2x" data-file-width="520" data-file-height="520" /></span></span></span> <span class="wpb-header-bubbles"><span class="mw-default-size" typeof="mw:File"><span title="This article has been marked as needing an infobox."><img alt="" src="//upload.wikimedia.org/wikipedia/en/thumb/c/c2/Gnome-mime-text-x-credits.svg/20px-Gnome-mime-text-x-credits.svg.png" decoding="async" width="20" height="20" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/en/thumb/c/c2/Gnome-mime-text-x-credits.svg/30px-Gnome-mime-text-x-credits.svg.png 1.5x, //upload.wikimedia.org/wikipedia/en/thumb/c/c2/Gnome-mime-text-x-credits.svg/40px-Gnome-mime-text-x-credits.svg.png 2x" data-file-width="64" data-file-height="64" /></span></span></span> <span class="wpb-header-bubbles"><span class="mw-default-size" typeof="mw:File"><span title="This page has been marked as needing a photograph."><img alt="" src="//upload.wikimedia.org/wikipedia/commons/thumb/c/c4/Gnome-dev-camera.svg/20px-Gnome-dev-camera.svg.png" decoding="async" width="20" height="20" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/c/c4/Gnome-dev-camera.svg/30px-Gnome-dev-camera.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/c/c4/Gnome-dev-camera.svg/40px-Gnome-dev-camera.svg.png 2x" data-file-width="60" data-file-height="60" /></span></span></span> <span class="wpb-header-bubbles"><span class="mw-default-size" typeof="mw:File"><span title="An audio file has been created of this article."><img alt="" src="//upload.wikimedia.org/wikipedia/commons/thumb/e/e2/Nuvola_apps_arts.svg/20px-Nuvola_apps_arts.svg.png" decoding="async" width="20" height="20" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/e/e2/Nuvola_apps_arts.svg/30px-Nuvola_apps_arts.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/e/e2/Nuvola_apps_arts.svg/40px-Nuvola_apps_arts.svg.png 2x" data-file-width="128" data-file-height="128" /></span></span></span></td></tr><tr><td class="mbox-text wpb-main" colspan="2"><table><tbody><tr><td class="mbox-image wpb-image"><span typeof="mw:File"><a href="/wiki/File:Tulipa_suaveolens_floriade_to_Canberra.jpg" class="mw-file-description"><img alt="WikiProject icon" src="//upload.wikimedia.org/wikipedia/commons/thumb/e/ea/Tulipa_suaveolens_floriade_to_Canberra.jpg/80px-Tulipa_suaveolens_floriade_to_Canberra.jpg" decoding="async" width="80" height="107" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/e/ea/Tulipa_suaveolens_floriade_to_Canberra.jpg/120px-Tulipa_suaveolens_floriade_to_Canberra.jpg 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/e/ea/Tulipa_suaveolens_floriade_to_Canberra.jpg/160px-Tulipa_suaveolens_floriade_to_Canberra.jpg 2x" data-file-width="1200" data-file-height="1600" /></a></span></td><td class="mbox-text">This article is within the scope of <b><a href="/w/index.php?title=Wikipedia:WikiProject_Tulips&action=edit&redlink=1" class="new" title="Wikipedia:WikiProject Tulips (page does not exist)">WikiProject Tulips</a></b>, a collaborative effort to improve the coverage of <a href="/wiki/Tulips" class="mw-redirect" title="Tulips">Tulips</a> on Wikipedia. If you would like to participate, please visit the project page, where you can join <a href="/w/index.php?title=Wikipedia_talk:WikiProject_Tulips&action=edit&redlink=1" class="new" title="Wikipedia talk:WikiProject Tulips (page does not exist)">the discussion</a> and see a list of open tasks.<span class="metadata wpb-metadata"><span class="wpb-project">Tulips</span><span class="wpb-project_link">Wikipedia:WikiProject Tulips</span><span class="wpb-banner_name">Template:WikiProject Tulips</span><span class="wpb-assessment_cat">Tulips articles</span></span></td><td class="mbox-empty-cell"></td></tr><tr><td class="assess class-stub"><a href="/w/index.php?title=Category:Stub-Class_Tulips_articles&action=edit&redlink=1" class="new" title="Category:Stub-Class Tulips articles (page does not exist)">Stub</a></td><td class="mbox-text" colspan="2">This article has been rated as <b>Stub-class</b> on Wikipedia's <a href="/wiki/Wikipedia:Content_assessment" title="Wikipedia:Content assessment">content assessment</a> scale.</td></tr><tr><td colspan="3" class="wpb-collapsed-notes"><table class="mw-collapsible mw-collapsed"><tbody><tr><th colspan="3" class="wpb-collapsed-head">More information:</th></tr><tr><td class="mbox-image wpb-gutter" style="min-width:80px"><span class="wpb-iefix">/ </span></td><td></td><td></td></tr><tr><td><figure class="mw-default-size mw-halign-center" typeof="mw:File"><a href="/wiki/File:Robot_ic%C3%B4n.svg" class="mw-file-description"><img alt="Note icon" src="//upload.wikimedia.org/wikipedia/en/thumb/8/8e/Robot_ic%C3%B4n.svg/23px-Robot_ic%C3%B4n.svg.png" decoding="async" width="23" height="25" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/en/thumb/8/8e/Robot_ic%C3%B4n.svg/35px-Robot_ic%C3%B4n.svg.png 1.5x, //upload.wikimedia.org/wikipedia/en/thumb/8/8e/Robot_ic%C3%B4n.svg/45px-Robot_ic%C3%B4n.svg.png 2x" data-file-width="91" data-file-height="100" /></a><figcaption></figcaption></figure></td><td class="mbox-text" colspan="2">This article has been <a href="/wiki/Wikipedia:Types_of_bots#WikiProject_tagging_and_auto-assessment_bots" title="Wikipedia:Types of bots">automatically rated</a> by a <a href="/wiki/Wikipedia:Bots" title="Wikipedia:Bots">bot</a> or other tool as <b>Stub-class</b> because it uses a <a href="/wiki/Wikipedia:Stub" title="Wikipedia:Stub">stub template</a>. Please ensure the assessment is correct before removing the <code class="tpl-para" style="word-break:break-word;">|auto=</code> parameter.</td></tr><tr><td><figure class="mw-default-size mw-halign-center" typeof="mw:File"><a href="/wiki/File:Diamond-caution.svg" class="mw-file-description"><img alt="Note icon" src="//upload.wikimedia.org/wikipedia/commons/thumb/f/f1/Diamond-caution.svg/25px-Diamond-caution.svg.png" decoding="async" width="25" height="25" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/f/f1/Diamond-caution.svg/38px-Diamond-caution.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/f/f1/Diamond-caution.svg/50px-Diamond-caution.svg.png 2x" data-file-width="520" data-file-height="520" /></a><figcaption></figcaption></figure></td><td class="mbox-text" colspan="2">This article has been marked as needing immediate attention.</td></tr><tr><td><figure class="mw-default-size mw-halign-center" typeof="mw:File"><a href="/wiki/File:Gnome-mime-text-x-credits.svg" class="mw-file-description"><img alt="Note icon" src="//upload.wikimedia.org/wikipedia/en/thumb/c/c2/Gnome-mime-text-x-credits.svg/25px-Gnome-mime-text-x-credits.svg.png" decoding="async" width="25" height="25" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/en/thumb/c/c2/Gnome-mime-text-x-credits.svg/38px-Gnome-mime-text-x-credits.svg.png 1.5x, //upload.wikimedia.org/wikipedia/en/thumb/c/c2/Gnome-mime-text-x-credits.svg/50px-Gnome-mime-text-x-credits.svg.png 2x" data-file-width="64" data-file-height="64" /></a><figcaption></figcaption></figure></td><td class="mbox-text" colspan="2">This article has been marked as needing an <a href="/wiki/Wikipedia:Manual_of_Style/Infoboxes" title="Wikipedia:Manual of Style/Infoboxes">infobox</a>.</td></tr><tr><td><figure class="mw-default-size mw-halign-center" typeof="mw:File"><a href="/wiki/File:Gnome-dev-camera.svg" class="mw-file-description"><img alt="Note icon" src="//upload.wikimedia.org/wikipedia/commons/thumb/c/c4/Gnome-dev-camera.svg/25px-Gnome-dev-camera.svg.png" decoding="async" width="25" height="25" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/c/c4/Gnome-dev-camera.svg/38px-Gnome-dev-camera.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/c/c4/Gnome-dev-camera.svg/50px-Gnome-dev-camera.svg.png 2x" data-file-width="60" data-file-height="60" /></a><figcaption></figcaption></figure></td><td class="mbox-text" colspan="2">This page has been marked as needing a <a href="/wiki/Photograph" title="Photograph">photograph</a>.</td></tr><tr><td><figure class="mw-default-size mw-halign-center" typeof="mw:File"><a href="/wiki/File:Nuvola_apps_arts.svg" class="mw-file-description"><img alt="Note icon" src="//upload.wikimedia.org/wikipedia/commons/thumb/e/e2/Nuvola_apps_arts.svg/25px-Nuvola_apps_arts.svg.png" decoding="async" width="25" height="25" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/e/e2/Nuvola_apps_arts.svg/38px-Nuvola_apps_arts.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/e/e2/Nuvola_apps_arts.svg/50px-Nuvola_apps_arts.svg.png 2x" data-file-width="128" data-file-height="128" /></a><figcaption></figcaption></figure></td><td class="mbox-text" colspan="2">An <a href="/wiki/Audio_file_format" title="Audio file format">audio file</a> has been created of this article.</td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table> <div class="mw-heading mw-heading3"><h3 id="Task_forces">Task forces</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Module:WikiProject_banner/doc&action=edit&section=T-9" title="Edit section: Task forces"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>The module can accommodate <a href="/wiki/Wikipedia:WikiProject_Council/Guide/Task_forces" title="Wikipedia:WikiProject Council/Guide/Task forces">task forces</a>, each with its own image, links and importance scale, if desired. The following parameters are available: </p> <ul><li><code><b>tf 1</b></code> – this parameter <i>must</i> be passed through to enable and trigger the display of the task force section. <span class="nowrap"><i>Eg: <b><code>tf 1={{{floridiae|}}}</code></b></i></span> <ul><li><code><b>TF_1_LINK</b></code> – the full page name of the task force's project page. <span class="nowrap"><i>Eg: <b><code>Wikipedia:WikiProject Tulips/Task forces/Floridiae</code></b></i></span></li> <li><code><b>TF_1_NAME</b></code> – the name of the task force. This is used as the label for the task force link (unless <code class="tpl-para" style="word-break:break-word;">|TF_1_TEXT=</code> is used instead). <span class="nowrap"><i>Eg: <b><code>the Floridiae task force</code></b></i></span></li> <li><code><b>TF_1_NESTED</b></code> – if defined, a link of the form "<b>/ [[{{{TF_1_LINK}}}|{{{TF_1_NESTED}}}]]</b>" is added after the main project's name when the banner is collapsed inside a <span class="nowrap">{{</span><a href="/wiki/Template:WikiProject_banner_shell" title="Template:WikiProject banner shell">WikiProject banner shell</a><span class="nowrap">}}</span>. <span class="nowrap"><i>Eg: <b><code>Floridiae</code></b></i></span></li> <li><code><b>TF_1_TEXT</b></code> – if defined, replaces the default "This page is supported by..." text. <i>E.g.: <b><code>This page is within the scope of the [[Wikipedia:WikiProject Tulips/Task forces/Floridiae|Floridiae task force]]. New participants are always welcome!</code></b></i> If defined to be "none", then no output will be displayed, although appropriate categories will still be added.</li> <li><code><b>TF_1_IMAGE</b></code> – an image can be defined for each task force. Remember that all images <i><b>must</b></i> be free, not fair-use. <span class="nowrap"><i>Eg: <b><code>Tulipa florenskyi 4.jpg</code></b></i></span></li> <li><code><b>TF_1_QUALITY</b></code> – if defined, enables the quality categorisations for the main project (e.g.: <a href="/w/index.php?title=Category:FA-Class_Tulips_articles&action=edit&redlink=1" class="new" title="Category:FA-Class Tulips articles (page does not exist)">Category:FA-Class Tulips articles</a>) to be duplicated for the task force. The class arising from <code class="tpl-para" style="word-break:break-word;">|class=</code> and <code class="tpl-para" style="word-break:break-word;">|QUALITY_SCALE=</code> will be used; <span class="nowrap"><i>Eg: <b><code>yes</code></b></i></span></li> <li><code><b>tf 1 importance</b></code>– if defined, enables the use of a separate importance (or priority, if used) scale for the task force.<span class="nowrap"><i>Eg: <b><code>tf 1 importance={{{floridiae-importance|}}}</code></b></i></span></li> <li><code><b>TF_1_ASSESSMENT_CAT</b></code> <i>(Required if quality or importance assessments are used)</i> – the assessment category to be used for the task force-specific quality and importance assessments. Identical in syntax to <code class="tpl-para" style="word-break:break-word;">|ASSESSMENT_CAT=</code>. <span class="nowrap"><i>Eg: <b><code>Floridiae articles</code></b> → <a href="/w/index.php?title=Category:FA-Class_Floridiae_articles&action=edit&redlink=1" class="new" title="Category:FA-Class Floridiae articles (page does not exist)">Category:FA-Class Floridiae articles</a></i></span></li> <li><code><b>TF_1_MAIN_CAT</b></code> – if defined, all pages displaying "tf 1" will be categorised into <a href="/w/index.php?title=Category:TF_1_MAIN_CAT&action=edit&redlink=1" class="new" title="Category:TF 1 MAIN CAT (page does not exist)">Category:<code>TF_1_MAIN_CAT</code></a>. <span class="nowrap"><i>Eg: <b><code>Floridiae articles</code></b> → <a href="/w/index.php?title=Category:Floridiae_articles&action=edit&redlink=1" class="new" title="Category:Floridiae articles (page does not exist)">Category:Floridiae articles</a></i></span></li> <li><code><b>TF_1_HOOK</b></code> – additional code to "hook" on the template only if this task force is used.</li></ul></li> <li><code><b>TF_SIZE</b></code> – the size of the taskforce icons. (It is recommended to precede the size with "x" as this specifies the height of the image instead of the width, which results in a neater banner because all rows have equal height.) The default is a height of 25px. <span class="nowrap"><i>Eg: <b><code>x30px</code></b></i></span></li></ul> <div class="mw-heading mw-heading4"><h4 id="Example_4">Example</h4><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Module:WikiProject_banner/doc&action=edit&section=T-10" title="Edit section: Example"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <table style="background: none; width: 50%;"> <tbody><tr> <td><div style="font-size: 100%" class="mw-highlight mw-highlight-lang-wikitext mw-content-ltr" dir="ltr"><pre><span></span><span class="p">{{</span><span class="nf">#invoke</span><span class="p">:</span>WikiProject banner<span class="p">|</span>main <span class="p">|</span><span class="nl">PROJECT </span><span class="o">=</span> Tulips <span class="p">|</span><span class="nl">substcheck</span><span class="o">=</span><span class="p"><</span><span class="nt">includeonly</span><span class="p">>{{</span><span class="nn">subst</span><span class="p">:</span><span class="nt"></includeonly><includeonly>substcheck</span><span class="p">}}</</span><span class="nt">includeonly</span><span class="p">></span> <span class="p">|</span><span class="nl">listas</span><span class="o">=</span><span class="p">{{{</span><span class="nv">listas</span><span class="p">|}}}</span> <span class="p">|</span><span class="nl">IMAGE_LEFT </span><span class="o">=</span> Tulipa suaveolens floriade to Canberra.jpg <span class="p">|</span><span class="nl">QUALITY_SCALE </span><span class="o">=</span> standard <span class="p">|</span><span class="nl">class</span><span class="o">=</span><span class="p">{{{</span><span class="nv">class</span><span class="p">|}}}</span> <span class="p">|</span><span class="nl">tf 1</span><span class="o">=</span><span class="p">{{{</span><span class="nv">floridiae</span><span class="p">|}}}</span> <span class="p">|</span><span class="nl">TF_1_LINK </span><span class="o">=</span> Wikipedia:WikiProject Tulips/Task forces/Floridiae <span class="p">|</span><span class="nl">TF_1_NAME </span><span class="o">=</span> the Floridiae task force <span class="p">|</span><span class="nl">TF_1_NESTED </span><span class="o">=</span> Floridiae <span class="p">|</span><span class="nl">TF_1_TEXT </span><span class="o">=</span> <span class="p">|</span><span class="nl">TF_1_IMAGE </span><span class="o">=</span> Tulipa florenskyi 4.jpg <span class="p">|</span><span class="nl">tf 1 importance</span><span class="o">=</span><span class="p">{{{</span><span class="nv">floridiae-importance</span><span class="p">}}}</span> <span class="p">|</span><span class="nl">TF_1_ASSESSMENT_CAT </span><span class="o">=</span> Floridiae articles <span class="p">|</span><span class="nl">TF_1_MAIN_CAT </span><span class="o">=</span> Floridiae articles <span class="p">}}</span> </pre></div> </td></tr></tbody></table> <dl><dd>Produces:</dd></dl> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1237879475"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1259570071"><table class="tmbox tmbox-notice mw-collapsible innercollapse wpb wpb-table"><tbody><tr class="wpb-header"><td class="wpb-header-icon"><span typeof="mw:File"><a href="/wiki/File:Tulipa_suaveolens_floriade_to_Canberra.jpg" class="mw-file-description"><img alt="WikiProject icon" src="//upload.wikimedia.org/wikipedia/commons/thumb/e/ea/Tulipa_suaveolens_floriade_to_Canberra.jpg/19px-Tulipa_suaveolens_floriade_to_Canberra.jpg" decoding="async" width="19" height="25" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/e/ea/Tulipa_suaveolens_floriade_to_Canberra.jpg/28px-Tulipa_suaveolens_floriade_to_Canberra.jpg 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/e/ea/Tulipa_suaveolens_floriade_to_Canberra.jpg/37px-Tulipa_suaveolens_floriade_to_Canberra.jpg 2x" data-file-width="1200" data-file-height="1600" /></a></span></td><td class="wpb-header-combined"><a href="/w/index.php?title=Wikipedia:WikiProject_Tulips&action=edit&redlink=1" class="new" title="Wikipedia:WikiProject Tulips (page does not exist)">Tulips</a><span class="wpb-nested-task-force">: <a href="/w/index.php?title=Wikipedia:WikiProject_Tulips/Task_forces/Floridiae&action=edit&redlink=1" class="new" title="Wikipedia:WikiProject Tulips/Task forces/Floridiae (page does not exist)">Floridiae</a></span> <span class="wpb-header-bubbles class-fa">FA‑class</span></td></tr><tr><td class="mbox-text wpb-main" colspan="2"><table><tbody><tr><td class="mbox-image wpb-image"><span typeof="mw:File"><a href="/wiki/File:Tulipa_suaveolens_floriade_to_Canberra.jpg" class="mw-file-description"><img alt="WikiProject icon" src="//upload.wikimedia.org/wikipedia/commons/thumb/e/ea/Tulipa_suaveolens_floriade_to_Canberra.jpg/80px-Tulipa_suaveolens_floriade_to_Canberra.jpg" decoding="async" width="80" height="107" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/e/ea/Tulipa_suaveolens_floriade_to_Canberra.jpg/120px-Tulipa_suaveolens_floriade_to_Canberra.jpg 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/e/ea/Tulipa_suaveolens_floriade_to_Canberra.jpg/160px-Tulipa_suaveolens_floriade_to_Canberra.jpg 2x" data-file-width="1200" data-file-height="1600" /></a></span></td><td class="mbox-text">This article is within the scope of <b><a href="/w/index.php?title=Wikipedia:WikiProject_Tulips&action=edit&redlink=1" class="new" title="Wikipedia:WikiProject Tulips (page does not exist)">WikiProject Tulips</a></b>, a collaborative effort to improve the coverage of <a href="/wiki/Tulips" class="mw-redirect" title="Tulips">Tulips</a> on Wikipedia. If you would like to participate, please visit the project page, where you can join <a href="/w/index.php?title=Wikipedia_talk:WikiProject_Tulips&action=edit&redlink=1" class="new" title="Wikipedia talk:WikiProject Tulips (page does not exist)">the discussion</a> and see a list of open tasks.<span class="metadata wpb-metadata"><span class="wpb-project">Tulips</span><span class="wpb-project_link">Wikipedia:WikiProject Tulips</span><span class="wpb-banner_name">Template:WikiProject Tulips</span><span class="wpb-assessment_cat">Tulips articles</span></span></td><td class="mbox-empty-cell"></td></tr><tr><td class="assess class-fa"><a href="/w/index.php?title=Category:FA-Class_Tulips_articles&action=edit&redlink=1" class="new" title="Category:FA-Class Tulips articles (page does not exist)">FA</a></td><td class="mbox-text" colspan="2">This article has been rated as <b>FA-class</b> on Wikipedia's <a href="/wiki/Wikipedia:Content_assessment" title="Wikipedia:Content assessment">content assessment</a> scale.</td></tr><tr><td><figure class="mw-default-size mw-halign-center" typeof="mw:File"><a href="/wiki/File:Tulipa_florenskyi_4.jpg" class="mw-file-description"><img alt="Taskforce icon" src="//upload.wikimedia.org/wikipedia/commons/thumb/3/3e/Tulipa_florenskyi_4.jpg/33px-Tulipa_florenskyi_4.jpg" decoding="async" width="33" height="25" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/3/3e/Tulipa_florenskyi_4.jpg/51px-Tulipa_florenskyi_4.jpg 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/3/3e/Tulipa_florenskyi_4.jpg/67px-Tulipa_florenskyi_4.jpg 2x" data-file-width="900" data-file-height="675" /></a><figcaption></figcaption></figure></td><td class="mbox-text" colspan="2">This article is supported by <b><a href="/w/index.php?title=Wikipedia:WikiProject_Tulips/Task_forces/Floridiae&action=edit&redlink=1" class="new" title="Wikipedia:WikiProject Tulips/Task forces/Floridiae (page does not exist)">the Floridiae task force</a></b> (assessed as <a href="/w/index.php?title=Category:Top-importance_Floridiae_articles&action=edit&redlink=1" class="new" title="Category:Top-importance Floridiae articles (page does not exist)">Top-importance</a>).</td></tr></tbody></table></td></tr></tbody></table> <div class="mw-heading mw-heading4"><h4 id="Inactive_task_force">Inactive task force</h4><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Module:WikiProject_banner/doc&action=edit&section=T-11" title="Edit section: Inactive task force"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>If a task force has been deemed inactive, then the following parameter and text can be used: </p> <pre>|TF_<span style="color: red;"><i>N</i></span>_TEXT = This _PAGETYPE_ is within the scope of the [[Wikipedia:WikiProject <span style="color: red;">(name of project)</span>/<span style="color: red;">(name of task force)</span>|<span style="color: red;">(name of task force)</span>]], a task force which is currently considered to be '''[[Wikipedia:WikiProject Council/Guide#Dealing with inactive WikiProjects|inactive]]'''. </pre> <dl><dd>where "<span style="color: red;"><i>N</i></span><span style="white-space: nowrap;"> </span>" is the number of the task force, and the project and task force names are included where indicated.</dd></dl> <div class="mw-heading mw-heading2"><h2 id="Advanced_features">Advanced features</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Module:WikiProject_banner/doc&action=edit&section=T-12" title="Edit section: Advanced features"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238436933"><table class="box-Warning plainlinks ombox ombox-content" role="presentation"><tbody><tr><td class="mbox-image"><span typeof="mw:File"><span><img alt="" src="//upload.wikimedia.org/wikipedia/en/thumb/b/b4/Ambox_important.svg/40px-Ambox_important.svg.png" decoding="async" width="40" height="40" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/en/thumb/b/b4/Ambox_important.svg/60px-Ambox_important.svg.png 1.5x, //upload.wikimedia.org/wikipedia/en/thumb/b/b4/Ambox_important.svg/80px-Ambox_important.svg.png 2x" data-file-width="40" data-file-height="40" /></span></span></td><td class="mbox-text" style="text-align: left;">The features described below are non-standard and should probably not be added to a project banner without the express agreement of the WikiProject's participants.</td></tr></tbody></table> <div class="mw-heading mw-heading3"><h3 id="B-class_checklist">B-class checklist</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Module:WikiProject_banner/doc&action=edit&section=T-13" title="Edit section: B-class checklist"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Enables a B-class checklist. There are <a href="/wiki/Wikipedia:BCLASS" class="mw-redirect" title="Wikipedia:BCLASS">six official criteria</a> (although some projects use five) that an article needs to satisfy in order to be classified as B-class. A checklist can provide a helpful aid for editors to show where an article needs improvement. </p> <table class="wikitable mw-collapsible" style="float: right; width: 40%;"> <tbody><tr> <th>Syntax </th></tr> <tr> <td><div class="mw-highlight mw-highlight-lang-wikitext mw-content-ltr" dir="ltr"><pre><span></span><span class="p">{{</span><span class="nf">#invoke</span><span class="p">:</span>WikiProject banner<span class="p">|</span>main ... <span class="p">|</span><span class="nl">b1</span><span class="o">=</span><span class="p">{{{</span><span class="nv">b1</span><span class="p">|}}}</span> <span class="p">|</span><span class="nl">b2</span><span class="o">=</span><span class="p">{{{</span><span class="nv">b2</span><span class="p">|}}}</span> <span class="p">|</span><span class="nl">b3</span><span class="o">=</span><span class="p">{{{</span><span class="nv">b3</span><span class="p">|}}}</span> <span class="p">|</span><span class="nl">b4</span><span class="o">=</span><span class="p">{{{</span><span class="nv">b4</span><span class="p">|}}}</span> <span class="p">|</span><span class="nl">b5</span><span class="o">=</span><span class="p">{{{</span><span class="nv">b5</span><span class="p">|}}}</span> <span class="p">|</span><span class="nl">b6</span><span class="o">=</span><span class="p">{{{</span><span class="nv">b6</span><span class="p">|}}}</span> <span class="p">}}</span> </pre></div> </td></tr></tbody></table> <div class="mw-heading mw-heading4"><h4 id="Required_parameters">Required parameters</h4><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Module:WikiProject_banner/doc&action=edit&section=T-14" title="Edit section: Required parameters"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li>The six B-Class criteria: <code><b>b1</b></code>, <code><b>b2</b></code>, <code><b>b3</b></code>, <code><b>b4</b></code>, <code><b>b5</b></code>, <code><b>b6</b></code></li></ul> <div class="mw-heading mw-heading4"><h4 id="Optional_parameters">Optional parameters</h4><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Module:WikiProject_banner/doc&action=edit&section=T-15" title="Edit section: Optional parameters"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li><code><b>B_DISPLAY_ON_START</b></code> – if set to "yes", the checklist will be displayed on every Start-class article. The default behaviour is to only display on Start-class when one or more of the parameters b1-b6 have been filled in.</li> <li><code><b>B_MAIN_CAT</b></code> – specifies a category to use when any of the checklist parameters are blank.</li> <li><code><b>B1_CAT</b></code> to <code><b>B6_CAT</b></code> – specifies individual categories to use when the individual checklist parameters are blank or set to no.</li></ul> <div class="mw-heading mw-heading4"><h4 id="Custom_parameter_names">Custom parameter names</h4><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Module:WikiProject_banner/doc&action=edit&section=T-16" title="Edit section: Custom parameter names"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>The standard parameter names (i.e. <i>b1</i>, <i>b2</i>, etc.) should be passed as an alternative to any custom parameters (e.g. <i>B-Class-1</i>, <i>B-Class-2</i>, etc.). For example: </p> <pre>b1={{{B-Class-1|{{{b1|}}}}}}</pre> <p>If only the standard parameters are used, then <span class="nowrap"><i>eg: <b><code>b1={{{b1|}}}</code></b></i></span>, etc. is fine. </p> <div class="mw-heading mw-heading3"><h3 id="Collapsing_task_forces">Collapsing task forces</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Module:WikiProject_banner/doc&action=edit&section=T-17" title="Edit section: Collapsing task forces"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>By default, the list of task forces will be collapsed into a show/hide box if there are more than 5 task forces. You can configure this behaviour with the following parameters: </p> <ul><li><code><b>TF_COLLAPSE</b></code> – the threshold number of task forces for them to collapse, e.g. if <code class="tpl-para" style="word-break:break-word;">|TF_COLLAPSE=3</code> then they will collapse whenever there are more than 3 task forces.</li> <li><code><b>TF_HEADER</b></code> – the heading for the collapsed section. The default is <b>Associated task forces:</b></li></ul> <div class="mw-heading mw-heading3"><h3 id="To-do_list">To-do list</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Module:WikiProject_banner/doc&action=edit&section=T-18" title="Edit section: To-do list"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>This enables a project to-do list or other similar list to be integrated into a project banner. </p> <table class="wikitable mw-collapsible" style="float: right; width: 40%;"> <tbody><tr> <th>Syntax </th></tr> <tr> <td><div style="font-size:90%" class="mw-highlight mw-highlight-lang-wikitext mw-content-ltr" dir="ltr"><pre><span></span>|TODO_LINK = |TODO_TEXT = |TODO_TITLE = |TODO_STYLE = |TODO_TITLE_STYLE= |TODO_EDITLINKS = </pre></div> </td></tr></tbody></table> <p>There are two main parameters, <code class="tpl-para" style="word-break:break-word;">|TODO_LINK=</code> and <code class="tpl-para" style="word-break:break-word;">|TODO_TEXT=</code>. Only one should be used at any time. If the to-do list is located on a different page then <code>TODO_LINK</code> should be used. However, if you've just got some text to include then you can use the <code>TODO_TEXT</code> option instead. </p><p>Styling can be adjusted using the <code class="tpl-para" style="word-break:break-word;">|TODO_STYLE=</code> and <code class="tpl-para" style="word-break:break-word;">|TODO_TITLE_STYLE=</code> parameters. </p><p>If you are using <code class="tpl-para" style="word-break:break-word;">|TODO_LINK=</code> and don't want to see the edit links at the top of the textbox, set <code>TODO_EDITLINKS=no</code>. </p> <div class="mw-heading mw-heading4"><h4 id="Example_5">Example</h4><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Module:WikiProject_banner/doc&action=edit&section=T-19" title="Edit section: Example"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <table style="background: none; width: 50%;"> <tbody><tr> <td><div class="mw-highlight mw-highlight-lang-wikitext mw-content-ltr" dir="ltr"><pre><span></span><span class="p">{{</span><span class="nf">#invoke</span><span class="p">:</span>WikiProject banner<span class="p">|</span>main <span class="p">|</span><span class="nl">PROJECT </span><span class="o">=</span> Tulips <span class="p">|</span><span class="nl">listas</span><span class="o">=</span><span class="p">{{{</span><span class="nv">listas</span><span class="p">|}}}</span> <span class="p">|</span><span class="nl">NAME </span><span class="o">=</span> The Tulip taskforce <span class="p">|</span><span class="nl">IMAGE_LEFT </span><span class="o">=</span> Tulipa suaveolens floriade to Canberra.jpg <span class="p">|</span><span class="nl">TODO_LINK </span><span class="o">=</span> Template:To do/to do <span class="p">|</span><span class="nl">TODO_TITLE </span><span class="o">=</span> WikiProject Tulips To-do <span class="p">}}</span> </pre></div> </td></tr></tbody></table> <dl><dd>Produces:</dd></dl> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1237879475"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1259570071"><table class="tmbox tmbox-notice mw-collapsible innercollapse wpb wpb-table"><tbody><tr class="wpb-header"><td class="wpb-header-icon"><span typeof="mw:File"><a href="/wiki/File:Tulipa_suaveolens_floriade_to_Canberra.jpg" class="mw-file-description"><img alt="WikiProject icon" src="//upload.wikimedia.org/wikipedia/commons/thumb/e/ea/Tulipa_suaveolens_floriade_to_Canberra.jpg/19px-Tulipa_suaveolens_floriade_to_Canberra.jpg" decoding="async" width="19" height="25" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/e/ea/Tulipa_suaveolens_floriade_to_Canberra.jpg/28px-Tulipa_suaveolens_floriade_to_Canberra.jpg 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/e/ea/Tulipa_suaveolens_floriade_to_Canberra.jpg/37px-Tulipa_suaveolens_floriade_to_Canberra.jpg 2x" data-file-width="1200" data-file-height="1600" /></a></span></td><td class="wpb-header-combined"><a href="/w/index.php?title=Wikipedia:WikiProject_Tulips&action=edit&redlink=1" class="new" title="Wikipedia:WikiProject Tulips (page does not exist)">Tulips</a> </td></tr><tr><td class="mbox-text wpb-main" colspan="2"><table><tbody><tr><td class="mbox-image wpb-image"><span typeof="mw:File"><a href="/wiki/File:Tulipa_suaveolens_floriade_to_Canberra.jpg" class="mw-file-description"><img alt="WikiProject icon" src="//upload.wikimedia.org/wikipedia/commons/thumb/e/ea/Tulipa_suaveolens_floriade_to_Canberra.jpg/80px-Tulipa_suaveolens_floriade_to_Canberra.jpg" decoding="async" width="80" height="107" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/e/ea/Tulipa_suaveolens_floriade_to_Canberra.jpg/120px-Tulipa_suaveolens_floriade_to_Canberra.jpg 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/e/ea/Tulipa_suaveolens_floriade_to_Canberra.jpg/160px-Tulipa_suaveolens_floriade_to_Canberra.jpg 2x" data-file-width="1200" data-file-height="1600" /></a></span></td><td class="mbox-text">This article is within the scope of <b><a href="/w/index.php?title=Wikipedia:WikiProject_Tulips&action=edit&redlink=1" class="new" title="Wikipedia:WikiProject Tulips (page does not exist)">WikiProject Tulips</a></b>, a collaborative effort to improve the coverage of <a href="/wiki/Tulips" class="mw-redirect" title="Tulips">Tulips</a> on Wikipedia. If you would like to participate, please visit the project page, where you can join <a href="/w/index.php?title=Wikipedia_talk:WikiProject_Tulips&action=edit&redlink=1" class="new" title="Wikipedia talk:WikiProject Tulips (page does not exist)">the discussion</a> and see a list of open tasks.<span class="metadata wpb-metadata"><span class="wpb-project">Tulips</span><span class="wpb-project_link">Wikipedia:WikiProject Tulips</span><span class="wpb-banner_name">Template:WikiProject Tulips</span><span class="wpb-assessment_cat">Tulips articles</span></span></td><td class="mbox-empty-cell"></td></tr><tr><td colspan="3" style="padding:0"><table class="mw-collapsible mw-collapsed" style="background:transparent;width:100%"><tbody><tr><th style="text-align:left;padding:0.2em 2px 0.2em 0">WikiProject Tulips To-do:</th></tr><tr><td style="text-align:left;padding:5px;background-color:white;border:1px solid #c0c090;margin-top:5px"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1129693374"><div class="hlist plainlinks" style="text-align:center;font-size:90%;"><ul><li><a class="external text" href="https://en.wikipedia.org/w/index.php?title=Template%3ATo_do%2Fto_do&action=edit">edit</a></li><li><a class="external text" href="https://en.wikipedia.org/w/index.php?title=Template%3ATo_do%2Fto_do&action=history">history</a></li><li><a class="external text" href="https://en.wikipedia.org/w/index.php?title=Template%3ATo_do%2Fto_do&action=watch">watch</a></li><li><a class="external text" href="https://en.wikipedia.org/w/index.php?title=Template%3ATo_do%2Fto_do&action=purge">purge</a></li></ul> </div> <ul><li>This is just a test to-do list to help editors make sure that the text</li> <li>shows <ol><li>up</li> <li>correctly</li></ol></li> <li>Normally, the "/to do" subpage should only be created under the article's Talk page, unless it is a notice board or project page.</li></ul> <ul><li>To use this template for an article, insert <b>{{to do}}</b> at the top of that article's Talk discussion page. To use it for a project or as your own personal list, add it to the project page or your user page, respectively.</li></ul></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table> <div class="mw-heading mw-heading3"><h3 id="Quality/importance_category_intersection"><span id="Quality.2Fimportance_category_intersection"></span>Quality/importance category intersection</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Module:WikiProject_banner/doc&action=edit&section=T-20" title="Edit section: Quality/importance category intersection"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>This feature adds categories which combine quality and importance such as <a href="/w/index.php?title=Category:Start-Class_High-importance_Kent-related_articles&action=edit&redlink=1" class="new" title="Category:Start-Class High-importance Kent-related articles (page does not exist)">Category:Start-Class High-importance Kent-related articles</a>. It has no visible output. </p><p>It takes the following parameters: </p> <div class="mw-heading mw-heading4"><h4 id="Required_parameters_2">Required parameters</h4><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Module:WikiProject_banner/doc&action=edit&section=T-21" title="Edit section: Required parameters"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li><code><b>QII_FORMAT</b></code> – the format of the category names. The <code>C</code>, <code>I</code> and <code>T</code> are replaced by the class, importance and topic respectively. For example: <ul><li><code>I C T</code>, e.g. <a href="/wiki/Category:Mid-importance_B-Class_Geology_articles" title="Category:Mid-importance B-Class Geology articles">Category:Mid-importance B-Class Geology articles</a></li> <li><code>C T of I</code>, e.g. <a href="/wiki/Category:C-Class_Andhra_Pradesh_articles_of_Low-importance" title="Category:C-Class Andhra Pradesh articles of Low-importance">Category:C-Class Andhra Pradesh articles of Low-importance</a></li> <li><code>C I T</code>, e.g. <a href="/wiki/Category:B-Class_High-importance_Pornography_articles" title="Category:B-Class High-importance Pornography articles">Category:B-Class High-importance Pornography articles</a></li> <li><code>C, I T</code>, e.g. <a href="/w/index.php?title=Category:Stub-Class,_Top-importance_Economics_articles&action=edit&redlink=1" class="new" title="Category:Stub-Class, Top-importance Economics articles (page does not exist)">Category:Stub-Class, Top-importance Economics articles</a></li></ul></li></ul> <div class="mw-heading mw-heading4"><h4 id="Optional_parameters_2">Optional parameters</h4><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Module:WikiProject_banner/doc&action=edit&section=T-22" title="Edit section: Optional parameters"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li><code><b>QII_SUPPRESS_NA</b></code> – can be set to <i>yes</i> to stop categories being added when either class or importance is "NA". These can also be set individually: <ul><li><code><b>QII_SUPPRESS_NA_CLASS</b></code> – can be set to <i>yes</i> to stop categories being added when class=NA</li> <li><code><b>QII_SUPPRESS_NA_IMPORTANCE</b></code> – can be set to <i>yes</i> to stop categories being added when importance=NA</li></ul></li> <li><code><b>QII_UNASSESSED_APPENDIX</b></code> – text to append to the class when it is "Unassessed", e.g. <code class="tpl-para" style="word-break:break-word;">|QII_UNASSESSED_APPENDIX=-Class</code></li></ul> <div class="mw-heading mw-heading3"><h3 id="Image-needed_note">Image-needed note</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Module:WikiProject_banner/doc&action=edit&section=T-23" title="Edit section: Image-needed note"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <table class="wikitable mw-collapsible" style="align: right; width: 40%;"> <tbody><tr> <th>Syntax </th></tr> <tr> <td><div class="mw-highlight mw-highlight-lang-wikitext mw-content-ltr" dir="ltr"><pre><span></span>|image-needed=<span class="p">{{{</span><span class="nv">needs-image</span><span class="p">|}}}</span> |IM_IMAGE = |image-details=<span class="p">{{{</span><span class="nv">details</span><span class="p">|}}}</span> |image-location=<span class="p">{{{</span><span class="nv">location</span><span class="p">|}}}</span> |IM_LOCATION_CATEGORY = |image-topic=<span class="p">{{{</span><span class="nv">topic</span><span class="p">|}}}</span> |IM_TOPIC_CATEGORY = |image-type=<span class="p">{{{</span><span class="nv">type</span><span class="p">|}}}</span> </pre></div> </td></tr></tbody></table> <p>This feature adds a note than can be used to track when articles needs an image, photograph, diagram, illustration, etc. It will populate various categories such as </p><p>It takes the following parameters: </p> <div class="mw-heading mw-heading4"><h4 id="Required_parameters_3">Required parameters</h4><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Module:WikiProject_banner/doc&action=edit&section=T-24" title="Edit section: Required parameters"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li><code><b>image-needed</b></code> – pass through whichever parameter you are using to trigger this note, e.g. <code class="tpl-para" style="word-break:break-word;">|image-needed={{{needs-image|}}}</code>.</li></ul> <div class="mw-heading mw-heading4"><h4 id="Optional_parameters_3">Optional parameters</h4><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Module:WikiProject_banner/doc&action=edit&section=T-25" title="Edit section: Optional parameters"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li><code><b>IM_IMAGE</b></code> – specifies the icon to be used (without the File namespace prefix); the default is <span typeof="mw:File"><a href="/wiki/File:Camera-photo.svg" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/en/thumb/8/80/Camera-photo.svg/20px-Camera-photo.svg.png" decoding="async" width="20" height="20" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/en/thumb/8/80/Camera-photo.svg/30px-Camera-photo.svg.png 1.5x, //upload.wikimedia.org/wikipedia/en/thumb/8/80/Camera-photo.svg/40px-Camera-photo.svg.png 2x" data-file-width="48" data-file-height="48" /></a></span> (<code>[[File:Camera-photo.svg|20px]]</code>).</li> <li><code><b>image-type</b></code> – pass through the type which can be used to accommodate other components that are needed, e.g. diagram, equation, map, etc. If this is not specified then "<b>image</b> or <b>photograph</b>" is used. E.g. <code class="tpl-para" style="word-break:break-word;">|image-type={{{type|}}}</code>.</li> <li><code><b>image-details</b></code> – to allow an editor to pass more details about the required image, e.g. <code class="tpl-para" style="word-break:break-word;">|image-details={{{details|}}}</code>.</li> <li><code><b>image-location</b></code> – pass this parameter through to allow an editor to specify the location of the requested image, e.g. <code class="tpl-para" style="word-break:break-word;">|image-location={{{location|}}}</code>. This will also populate categories of the form <a href="/wiki/Category:Wikipedia_requested_photographs_in_Scotland" title="Category:Wikipedia requested photographs in Scotland">Category:Wikipedia requested photographs in Scotland</a>.</li> <li><b><code>IM_LOCATION_CATEGORY</code></b> – a default category to use when the location is not specified or leads to a non-existent category.</li> <li><b><code>image-topic</code></b> – pass this through to allow an editor to specify a topic area that the photograph relates to, e.g. <code class="tpl-para" style="word-break:break-word;">|image-topic={{{topic|}}}</code>. This will populate categories such as <a href="/wiki/Category:Wikipedia_requested_photographs_of_toys" title="Category:Wikipedia requested photographs of toys">Category:Wikipedia requested photographs of toys</a>.</li> <li><b><code>IM_TOPIC_CATEGORY</code></b> – a default category in case the topic is not specified or leads to a non-existent category, e.g. <code class="tpl-para" style="word-break:break-word;">|IM_TOPIC_CATEGORY=Wikipedia requested images of politics</code>.</li></ul> <div class="mw-heading mw-heading3"><h3 id="Collaboration_note">Collaboration note</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Module:WikiProject_banner/doc&action=edit&section=T-26" title="Edit section: Collaboration note"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <table class="wikitable mw-collapsible" style="float: right; width: 40%;"> <tbody><tr> <th>Syntax </th></tr> <tr> <td><div class="mw-highlight mw-highlight-lang-wikitext mw-content-ltr" dir="ltr"><pre><span></span>|collaboration-candidate=<span class="p">{{{</span><span class="nv">**PARAMETER**</span><span class="p">|}}}</span> |collaboration-current=<span class="p">{{{</span><span class="nv">**PARAMETER**</span><span class="p">|}}}</span> |collaboration-past=<span class="p">{{{</span><span class="nv">**PARAMETER**</span><span class="p">|}}}</span> |COLL_LINK = |COLL_TEXT = |COLL_IMAGE = |COLL_CANDIDATE_CAT = |COLL_CURRENT_CAT = |COLL_PAST_CAT = </pre></div> </td></tr></tbody></table> <p>This featue enables a project collaboration system to be integrated into a project banner. The following parameters are used: </p> <div class="mw-heading mw-heading4"><h4 id="Required_parameters_4">Required parameters</h4><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Module:WikiProject_banner/doc&action=edit&section=T-27" title="Edit section: Required parameters"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li><code><b>collaboration-candidate</b></code> – pass the parameter that will trigger the collaboration candidate note, if used, e.g. <code class="tpl-para" style="word-break:break-word;">|collaboration-candidate={{{collaboration-candidate|}}}</code></li> <li><code><b>collaboration-current</b></code> – the parameter that will trigger the current collaboration note, if used. E.g. <code class="tpl-para" style="word-break:break-word;">|collaboration-current={{{collaboration|}}}</code></li> <li><code><b>collaboration-past</b></code> – the parameter that will trigger the past collaboration note, if used. e.g. <code class="tpl-para" style="word-break:break-word;">|collaboration-past={{{past-collaboration|}}}</code></li> <li><code><b>COLL_LINK</b></code> – the full link to where the review for the particular article is held. E.g. <code class="tpl-para" style="word-break:break-word;">|COLL_LINK=Wikipedia:WikiProject Paranormal/Collaboration</code></li></ul> <div class="mw-heading mw-heading4"><h4 id="Optional_parameters_4">Optional parameters</h4><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Module:WikiProject_banner/doc&action=edit&section=T-28" title="Edit section: Optional parameters"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li><code><b>COLL_TEXT</b></code> – the text to display in place of the default "project collaboration", e.g. <code class="tpl-para" style="word-break:break-word;">|COLL_TEXT=Collaboration of the Month</code></li> <li><code><b>COLL_IMAGE</b></code> – the name of the image to use. If not specified then <span typeof="mw:File"><a href="/wiki/File:Crystal_128_kuser.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/0/02/Crystal_128_kuser.png/30px-Crystal_128_kuser.png" decoding="async" width="30" height="30" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/0/02/Crystal_128_kuser.png/45px-Crystal_128_kuser.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/0/02/Crystal_128_kuser.png/60px-Crystal_128_kuser.png 2x" data-file-width="128" data-file-height="128" /></a></span> is used.</li> <li><code><b>COLL_CANDIDATE_CAT</b></code> – if defined, pages using <code class="tpl-para" style="word-break:break-word;">|candidate=yes</code> will be categorised into this category, e.g. <code class="tpl-para" style="word-break:break-word;">|COLL_CANDIDATE_CAT=Paranormal collaboration candidates</code> → <a href="/wiki/Category:Paranormal_collaboration_candidates" title="Category:Paranormal collaboration candidates">Category:Paranormal collaboration candidates</a></li> <li><code><b>COLL_CURRENT_CAT</b></code> – if defined, pages using <code class="tpl-para" style="word-break:break-word;">|current=yes</code> will be categorised into this category, e.g. <code class="tpl-para" style="word-break:break-word;">|COLL_CURRENT_CAT=Paranormal collaborations</code> → <a href="/w/index.php?title=Category:Paranormal_collaborations&action=edit&redlink=1" class="new" title="Category:Paranormal collaborations (page does not exist)">Category:Paranormal collaborations</a></li> <li><code><b>COLL_PAST_CAT</b></code> – if defined, pages using <code class="tpl-para" style="word-break:break-word;">|past=yes</code> will be categorised into this category, e.g. <code class="tpl-para" style="word-break:break-word;">|COLL_PAST_CAT=Past paranormal collaborations</code> → <a href="/wiki/Category:Past_paranormal_collaborations" title="Category:Past paranormal collaborations">Category:Past paranormal collaborations</a></li></ul> <div class="mw-heading mw-heading3"><h3 id="A-class_review_note">A-class review note</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Module:WikiProject_banner/doc&action=edit&section=T-29" title="Edit section: A-class review note"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <table class="wikitable mw-collapsible" style="float: right; width: 40%;"> <tbody><tr> <th>Syntax </th></tr> <tr> <td><div class="mw-highlight mw-highlight-lang-wikitext mw-content-ltr" dir="ltr"><pre><span></span>|a class=<span class="p">{{{</span><span class="nv">**PARAMETER**</span><span class="p">|}}}</span> |ACR_SUBPAGE_LINK = |ACR_REVIEW_LINK = |ACR_PASS_CAT = |ACR_FAIL_CAT = |ACR_CURRENT_CAT = |ACR_PRELOAD = </pre></div> </td></tr></tbody></table> <p>This feature enables an A-Class review process to be integrated into a project banner. The following parameters are used: </p> <div class="mw-heading mw-heading4"><h4 id="Required_parameters_5">Required parameters</h4><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Module:WikiProject_banner/doc&action=edit&section=T-30" title="Edit section: Required parameters"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li><code><b>a class</b></code> – the parameter that will trigger the note. Accepted values are "pass", "fail", "current" (any capitalisation); everything else is treated as null. <span class="nowrap"><i>Eg: <b><code>a class={{{A-Class|}}}</code></b></i></span></li> <li><code><b>ACR_SUBPAGE_LINK</b></code> – the full link to where the review for this particular article is held. <span class="nowrap"><i>Eg: <b><code>Wikipedia:WikiProject Tulips/Assessment/{{SUBJECTPAGENAME}}</code></b></i></span></li> <li><code><b>ACR_REVIEW_LINK</b></code> – the full link to the main A-Class review page (where instructions etc. are held). <span class="nowrap"><i>Eg: <b><code>Wikipedia:WikiProject Tulips/Review#A-Class review</code></b></i></span></li></ul> <div class="mw-heading mw-heading4"><h4 id="Optional_parameters_5">Optional parameters</h4><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Module:WikiProject_banner/doc&action=edit&section=T-31" title="Edit section: Optional parameters"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li><code><b>ACR_PASS_CAT</b></code> – pages using <code class="tpl-para" style="word-break:break-word;">|a class=pass</code> will be categorised into this category. <span class="nowrap"><i>Eg: <b><code>Successful requests for Tulips A-Class review</code></b> → <a href="/w/index.php?title=Category:Successful_requests_for_Tulips_A-Class_review&action=edit&redlink=1" class="new" title="Category:Successful requests for Tulips A-Class review (page does not exist)">Category:Successful requests for Tulips A-Class review</a></i></span></li> <li><code><b>ACR_FAIL_CAT</b></code> – pages using <code class="tpl-para" style="word-break:break-word;">|a class=fail</code> will be categorised into this category. <span class="nowrap"><i>Eg: <b><code>Failed requests for Tulips A-Class review</code></b> → <a href="/w/index.php?title=Category:Failed_requests_for_Tulips_A-Class_review&action=edit&redlink=1" class="new" title="Category:Failed requests for Tulips A-Class review (page does not exist)">Category:Failed requests for Tulips A-Class review</a></i></span></li> <li><code><b>ACR_CURRENT_CAT</b></code> – pages using <code class="tpl-para" style="word-break:break-word;">|a class=current</code> will be categorised into this category. <span class="nowrap"><i>Eg: <b><code>Current requests for Tulips A-Class review</code></b> → <a href="/w/index.php?title=Category:Current_requests_for_Tulips_A-Class_review&action=edit&redlink=1" class="new" title="Category:Current requests for Tulips A-Class review (page does not exist)">Category:Current requests for Tulips A-Class review</a></i></span></li> <li><code><b>ACR_IMAGE</b></code> – a custom image can be set, using the same syntax as for other note images. <span class="nowrap"><i>Eg: <b><code>Exquisite-kfind.png</code></b> </i></span></li> <li><code><b>ACR_SIZE</b></code> – a custom image size can be set, using the usual note syntax. <span class="nowrap"><i>Eg: <b><code>20x20px</code></b> </i></span></li> <li><code><b>ACR_INVALID_CAT</b></code> – pages specifying the A Class parameter without a valid SUBPAGE_LINK page existing will be categorised into this category.</li> <li><code><b>ACR_PRELOAD</b></code> – preload template, to be used when creating a new A-class review discussion page (<a href="/wiki/Wikipedia:WikiProject_Military_history/Review/A-Class_review_preload_boilerplate" title="Wikipedia:WikiProject Military history/Review/A-Class review preload boilerplate">example</a>).</li></ul> <div class="mw-heading mw-heading3"><h3 id="Additional_task_force_categories">Additional task force categories</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Module:WikiProject_banner/doc&action=edit&section=T-32" title="Edit section: Additional task force categories"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Sometimes it is desirable to populate additional categories when certain task forces are used. For example the <code class="tpl-para" style="word-break:break-word;">|attention=</code> parameter is used to draw attention to articles which need immediate attention in the cycling project. Articles within the scope of the <a href="/wiki/Wikipedia:WikiProject_Cycling/Tour_de_France_task_force" title="Wikipedia:WikiProject Cycling/Tour de France task force">Tour de France task force</a> populate the additional category of <a href="/wiki/Category:Tour_de_France_articles_needing_attention" title="Category:Tour de France articles needing attention">Category:Tour de France articles needing attention</a>. </p><p>This can be achieved by using the following code: </p> <table style="background: none; width: 50%;"> <tbody><tr> <td><div class="mw-highlight mw-highlight-lang-wikitext mw-content-ltr" dir="ltr"><pre><span></span><span class="p">{{</span><span class="nf">#invoke</span><span class="p">:</span>WikiProject banner<span class="p">|</span>main ... <span class="p">|</span><span class="nl">tf 2</span><span class="o">=</span><span class="p">{{{</span><span class="nv">tdf</span><span class="p">|}}}</span> <span class="p">|</span><span class="nl">TF_2_LINK </span><span class="o">=</span> Wikipedia:WikiProject Cycling/Tour de France task force ... <span class="p">|</span><span class="nl">tf 2 cat 1</span><span class="o">=</span><span class="p">{{{</span><span class="nv">attention</span><span class="p">|}}}</span> <span class="p">|</span><span class="nl">TF_2_CAT_1 </span><span class="o">=</span> Tour de France articles needing attention <span class="p">|</span><span class="nl">tf 2 cat 2</span><span class="o">=</span><span class="p">{{{</span><span class="nv">needs-infobox</span><span class="p">|}}}</span> <span class="p">|</span><span class="nl">TF_2_CAT_2 </span><span class="o">=</span> Tour de France articles needing infoboxes <span class="p">}}</span> </pre></div> </td></tr></tbody></table> <div class="mw-heading mw-heading3"><h3 id="Peer_review_note">Peer review note</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Module:WikiProject_banner/doc&action=edit&section=T-33" title="Edit section: Peer review note"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <table class="wikitable mw-collapsible" style="align: right; width: 40%;"> <tbody><tr> <th>Syntax </th></tr> <tr> <td><div class="mw-highlight mw-highlight-lang-wikitext mw-content-ltr" dir="ltr"><pre><span></span>|peer review=<span class="p">{{{</span><span class="nv">**PARAMETER**</span><span class="p">|}}}</span> |old peer review=<span class="p">{{{</span><span class="nv">**PARAMETER**</span><span class="p">|}}}</span> |peer review title=<span class="p">{{{</span><span class="nv">**PARAMETER**</span><span class="p">|}}}</span> |PR_LINK = |PR_IMAGE = |PR_CAT = |PR_OLD_CAT = |PR_INVALID_CAT = </pre></div> </td></tr></tbody></table> <p>This feature enables a peer review process to be integrated into a project banner. The following parameters are used: </p> <div class="mw-heading mw-heading4"><h4 id="Required_parameters_6">Required parameters</h4><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Module:WikiProject_banner/doc&action=edit&section=T-34" title="Edit section: Required parameters"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li><code><b>peer review</b></code> – the parameter that will trigger the active peer review note; should be passed through, e.g. <code class="tpl-para" style="word-break:break-word;">|peer review={{{peer-review|}}}</code></li> <li><code><b>old peer review</b></code> – the parameter that will trigger the old peer review note; should be passed through, e.g. <code class="tpl-para" style="word-break:break-word;">|old peer review={{{old-peer-review|}}}</code></li> <li><code><b>PR_LINK</b></code> – the full link to where the review for this particular article is held, e.g. <code class="tpl-para" style="word-break:break-word;">|PR_LINK=Wikipedia:WikiProject Tulips/Assessment</code></li></ul> <div class="mw-heading mw-heading4"><h4 id="Optional_parameters_6">Optional parameters</h4><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Module:WikiProject_banner/doc&action=edit&section=T-35" title="Edit section: Optional parameters"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li><code><b>PR_IMAGE</b></code> – the name of the image to use. If not specified then <span typeof="mw:File"><a href="/wiki/File:Exquisite-kfind.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/en/thumb/f/f1/Exquisite-kfind.png/30px-Exquisite-kfind.png" decoding="async" width="30" height="30" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/en/thumb/f/f1/Exquisite-kfind.png/45px-Exquisite-kfind.png 1.5x, //upload.wikimedia.org/wikipedia/en/thumb/f/f1/Exquisite-kfind.png/60px-Exquisite-kfind.png 2x" data-file-width="128" data-file-height="128" /></a></span> is used.</li> <li><code><b>PR_CAT</b></code> – if defined, pages using <code class="tpl-para" style="word-break:break-word;">|peer review=yes</code> will be categorised into this category, e.g. <code class="tpl-para" style="word-break:break-word;">|PR_CAT=Requests for Tulips peer review</code> → <a href="/w/index.php?title=Category:Requests_for_Tulips_peer_review&action=edit&redlink=1" class="new" title="Category:Requests for Tulips peer review (page does not exist)">Category:Requests for Tulips peer review</a></li> <li><code><b>PR_OLD_CAT</b></code> – if defined, pages using <code class="tpl-para" style="word-break:break-word;">|old peer review=yes</code> will be categorised into this category.</li> <li><code><b>peer review title</b></code> – If the page has been moved since it was reviewed, pass this parameter to specify the old page title (the one the review was archived under) to make the link point correctly to the review.</li> <li><code><b>PR_INVALID_CAT</b></code> – if defined, pages without a valid existing peer review page will be categorised into this category.</li></ul> <div class="mw-heading mw-heading3"><h3 id="Other_hooks">Other hooks</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Module:WikiProject_banner/doc&action=edit&section=T-36" title="Edit section: Other hooks"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238436933"><table class="plainlinks ombox ombox-delete" role="presentation"><tbody><tr><td class="mbox-image"><span typeof="mw:File"><a href="/wiki/File:X_Icon_or_Close_Icon.svg" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/6/69/X_Icon_or_Close_Icon.svg/40px-X_Icon_or_Close_Icon.svg.png" decoding="async" width="40" height="40" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/6/69/X_Icon_or_Close_Icon.svg/60px-X_Icon_or_Close_Icon.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/6/69/X_Icon_or_Close_Icon.svg/80px-X_Icon_or_Close_Icon.svg.png 2x" data-file-width="512" data-file-height="512" /></a></span></td><td class="mbox-text"><a href="/wiki/Template:WPBannerMeta/hooks" title="Template:WPBannerMeta/hooks">Template:WPBannerMeta/hooks</a> is <a href="/wiki/Deprecation" title="Deprecation">deprecated</a>.</td></tr></tbody></table> <p>WPBannerMeta incorporates a number of '<a href="/wiki/Hooking" title="Hooking">hooks</a>' where advanced or customised features can be added. These should take the form of a subtemplate passed to the relevant hook parameter. Any relevant parameters should then be passed to the hook template – it may be necessary to repeat parameters that are already passed to the main template (<code class="tpl-para" style="word-break:break-word;">|category={{{category|}}}</code> and <code class="tpl-para" style="word-break:break-word;">|class={{{class|}}}</code> are commonly used). </p> <div class="mw-heading mw-heading3"><h3 id="Custom_masks">Custom masks</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Module:WikiProject_banner/doc&action=edit&section=T-37" title="Edit section: Custom masks"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <style data-mw-deduplicate="TemplateStyles:r1236090951">.mw-parser-output .hatnote{font-style:italic}.mw-parser-output div.hatnote{padding-left:1.6em;margin-bottom:0.5em}.mw-parser-output .hatnote i{font-style:normal}.mw-parser-output .hatnote+link+.hatnote{margin-top:-0.5em}@media print{body.ns-0 .mw-parser-output .hatnote{display:none!important}}</style><div role="note" class="hatnote navigation-not-searchable plainlinks selfreference noprint">For further details, see: <a href="/wiki/Template:Class_mask/doc" title="Template:Class mask/doc">Template:Class mask/doc</a></div> <p>The module uses a <a href="/wiki/Mask_(computing)" title="Mask (computing)">mask</a> to normalise the values given to the <code class="tpl-para" style="word-break:break-word;">|class=</code> parameter, to ensure that invalid inputs are discarded (e.g. <code class="tpl-para" style="word-break:break-word;">|class=cheesecake</code>) and that equivalent inputs appear the same (e.g. <code class="tpl-para" style="word-break:break-word;">|class=FA</code> and <code class="tpl-para" style="word-break:break-word;">|class=fA</code>). This mask effectively controls which extended assessment scale values are accepted by the template (e.g. "Template-Class", "Redirect-Class", etc.). Projects which want to use more obscure assessment classes (e.g. "Future-Class", "Bplus-Class", etc.) or to <i>not</i> use all of the standard classes (e.g. not using "C-Class") can define their own custom mask, which will override the default. To achieve this, create the mask template in the /class subpage of your project banner template and set <code class="tpl-para" style="word-break:break-word;">|QUALITY_CRITERIA=custom</code>. Note that this will remove the project from <a href="/wiki/Wikipedia:PIQA" class="mw-redirect" title="Wikipedia:PIQA">project-independent quality assesments</a>, and so no assessments will be inherited from other projects. </p> <div class="mw-heading mw-heading2"><h2 id="Inactive_WikiProject_banners">Inactive WikiProject banners</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Module:WikiProject_banner/doc&action=edit&section=T-38" title="Edit section: Inactive WikiProject banners"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>A number of WikiProjects have been identified as <i>inactive</i> or <i>defunct</i> (see <a href="/wiki/Category:Inactive_WikiProjects" title="Category:Inactive WikiProjects">Category:Inactive WikiProjects</a>). In this case, the project banner can be given a less prominent form. Keeping an inactive project's template on relevant talkpages helps any group of users who later wishes to revive the project. This template will auto-categorize the project banner into <a href="/wiki/Category:Inactive_WikiProject_banners" title="Category:Inactive WikiProject banners">Category:Inactive WikiProject banners</a>. </p><p>The easiest way to convert a banner template to an inactive state, is to replace <b>main</b> with <b>inactive</b>. </p> <div class="mw-heading mw-heading3"><h3 id="Parameters_2">Parameters</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Module:WikiProject_banner/doc&action=edit&section=T-39" title="Edit section: Parameters"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li>The only required parameter is <code class="tpl-para" style="word-break:break-word;">|PROJECT=</code> - the name of the WikiProject (but without the word "WikiProject")</li> <li>An additional parameter <code class="tpl-para" style="word-break:break-word;">|PROJECT_STATUS=</code> can be used to identify the status of the inactive project. Currently recognised values are <i>inactive</i> and <i>defunct</i>. The default is inactive.</li> <li>All the other parameters can and should be retained, as this will make it easier to "revive" the project in the future.</li></ul> <div class="mw-heading mw-heading2"><h2 id="Examples">Examples</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Module:WikiProject_banner/doc&action=edit&section=T-40" title="Edit section: Examples"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <div class="mw-highlight mw-highlight-lang-wikitext mw-content-ltr" dir="ltr"><pre><span></span><span class="p">{{</span><span class="nf">#invoke</span><span class="p">:</span>WikiProject banner<span class="p">|</span>inactive <span class="p">|</span><span class="nl">PROJECT </span><span class="o">=</span> Extreme sports <span class="p">}}</span> </pre></div> <dl><dd>produces:</dd></dl> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1237879475"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1259570071"><table class="tmbox tmbox-notice mw-collapsible innercollapse wpb wpb-table inactive-wikiproject"><tbody><tr class="wpb-header"><td class="wpb-header-icon"><span typeof="mw:File"><a href="/wiki/File:People_icon_dead.svg" class="mw-file-description"><img alt="WikiProject icon" src="//upload.wikimedia.org/wikipedia/commons/thumb/6/6b/People_icon_dead.svg/25px-People_icon_dead.svg.png" decoding="async" width="25" height="25" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/6/6b/People_icon_dead.svg/38px-People_icon_dead.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/6/6b/People_icon_dead.svg/50px-People_icon_dead.svg.png 2x" data-file-width="100" data-file-height="100" /></a></span></td><td class="wpb-header-combined"><a href="/wiki/Wikipedia:WikiProject_Extreme_sports" title="Wikipedia:WikiProject Extreme sports">Extreme sports</a> <span class="wpb-header-bubbles"> (<a href="/wiki/Wikipedia:INACTIVEWP" class="mw-redirect" title="Wikipedia:INACTIVEWP">inactive</a>)</span></td></tr><tr><td class="mbox-text wpb-main" colspan="2"><table><tbody><tr><td class="mbox-image wpb-image"><span typeof="mw:File"><a href="/wiki/File:People_icon_dead.svg" class="mw-file-description"><img alt="WikiProject icon" src="//upload.wikimedia.org/wikipedia/commons/thumb/6/6b/People_icon_dead.svg/40px-People_icon_dead.svg.png" decoding="async" width="40" height="40" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/6/6b/People_icon_dead.svg/60px-People_icon_dead.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/6/6b/People_icon_dead.svg/80px-People_icon_dead.svg.png 2x" data-file-width="100" data-file-height="100" /></a></span></td><td class="mbox-text">This article is within the scope of <a href="/wiki/Wikipedia:WikiProject_Extreme_sports" title="Wikipedia:WikiProject Extreme sports">WikiProject Extreme sports</a>, a project which is currently considered to be <b><a href="/wiki/Wikipedia:INACTIVEWP" class="mw-redirect" title="Wikipedia:INACTIVEWP">inactive</a></b>.<span class="metadata wpb-metadata"><span class="wpb-project">Extreme sports</span><span class="wpb-project_link">Wikipedia:WikiProject Extreme sports</span><span class="wpb-banner_name">Template:WikiProject Extreme sports</span><span class="wpb-assessment_cat">Extreme sports articles</span></span></td><td class="mbox-empty-cell"></td></tr></tbody></table></td></tr></tbody></table> <dl><dd>When inside a banner shell the result is:</dd></dl> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1237879475"><style data-mw-deduplicate="TemplateStyles:r1243927654">.mw-parser-output .banner-shell{border-collapse:separate;border-spacing:4px}.mw-parser-output .banner-shell-header{text-align:center;font-weight:bold}.mw-parser-output .banner-shell-inner{padding:2px 4px;background:#fffaef;color:inherit;border:1px dotted gray}@media screen{html.skin-theme-clientpref-night .mw-parser-output .banner-shell-inner{background:#2e2505}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .banner-shell-inner{background:#2e2505}}.mw-parser-output .banner-shell .tmbox{margin:2px 0;width:100%}.mw-parser-output .banner-shell .tmbox.mbox-small{line-height:1.5em;font-size:100%}.mw-parser-output .banner-shell-inner .banner-shell-outside{display:none}@media(min-width:720px){.mw-parser-output .wpbs{width:80%}}.mw-parser-output .wpbs .assess{width:60px;text-align:center}.mw-parser-output .wpbs .banner-shell-header{border:none;padding:0.25em 0.9em 0.25em 0}.mw-parser-output .wpbs .wpb .wpb-header{display:table-row}.mw-parser-output .wpbs .wpb:not(.mw-collapsed) .wpb-header-icon a{display:none}</style><table role="presentation" class="tmbox tmbox-notice banner-shell wpbs mw-collapsible"><tbody><tr><td class="assess"><span class="noviewer" typeof="mw:File"><a href="/wiki/File:Symbol_code_red.svg" class="mw-file-description" title="Module"><img alt="" src="//upload.wikimedia.org/wikipedia/commons/thumb/8/8d/Symbol_code_red.svg/35px-Symbol_code_red.svg.png" decoding="async" width="35" height="36" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/8/8d/Symbol_code_red.svg/53px-Symbol_code_red.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/8/8d/Symbol_code_red.svg/70px-Symbol_code_red.svg.png 2x" data-file-width="180" data-file-height="185" /></a></span></td><td class="banner-shell-header" style="text-align:left;font-weight:normal">This module does not require a rating on Wikipedia's <a href="/wiki/Wikipedia:Content_assessment" title="Wikipedia:Content assessment">content assessment</a> scale.<br />It is of interest to the following <a href="/wiki/Wikipedia:WikiProject" title="Wikipedia:WikiProject">WikiProjects</a>:</td></tr><tr><td colspan="2" class="banner-shell-inner outercollapse"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1237879475"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1259570071"><table class="tmbox tmbox-notice mw-collapsible innercollapse wpb wpb-table inactive-wikiproject"><tbody><tr class="wpb-header"><td class="wpb-header-icon"><span typeof="mw:File"><a href="/wiki/File:People_icon_dead.svg" class="mw-file-description"><img alt="WikiProject icon" src="//upload.wikimedia.org/wikipedia/commons/thumb/6/6b/People_icon_dead.svg/25px-People_icon_dead.svg.png" decoding="async" width="25" height="25" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/6/6b/People_icon_dead.svg/38px-People_icon_dead.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/6/6b/People_icon_dead.svg/50px-People_icon_dead.svg.png 2x" data-file-width="100" data-file-height="100" /></a></span></td><td class="wpb-header-combined"><a href="/wiki/Wikipedia:WikiProject_Extreme_sports" title="Wikipedia:WikiProject Extreme sports">Extreme sports</a> <span class="wpb-header-bubbles"> (<a href="/wiki/Wikipedia:INACTIVEWP" class="mw-redirect" title="Wikipedia:INACTIVEWP">inactive</a>)</span></td></tr><tr><td class="mbox-text wpb-main" colspan="2"><table><tbody><tr><td class="mbox-image wpb-image"><span typeof="mw:File"><a href="/wiki/File:People_icon_dead.svg" class="mw-file-description"><img alt="WikiProject icon" src="//upload.wikimedia.org/wikipedia/commons/thumb/6/6b/People_icon_dead.svg/40px-People_icon_dead.svg.png" decoding="async" width="40" height="40" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/6/6b/People_icon_dead.svg/60px-People_icon_dead.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/6/6b/People_icon_dead.svg/80px-People_icon_dead.svg.png 2x" data-file-width="100" data-file-height="100" /></a></span></td><td class="mbox-text">This article is within the scope of <a href="/wiki/Wikipedia:WikiProject_Extreme_sports" title="Wikipedia:WikiProject Extreme sports">WikiProject Extreme sports</a>, a project which is currently considered to be <b><a href="/wiki/Wikipedia:INACTIVEWP" class="mw-redirect" title="Wikipedia:INACTIVEWP">inactive</a></b>.<span class="metadata wpb-metadata"><span class="wpb-project">Extreme sports</span><span class="wpb-project_link">Wikipedia:WikiProject Extreme sports</span><span class="wpb-banner_name">Template:WikiProject Extreme sports</span><span class="wpb-assessment_cat">Extreme sports articles</span></span></td><td class="mbox-empty-cell"></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table> <div class="mw-highlight mw-highlight-lang-wikitext mw-content-ltr" dir="ltr"><pre><span></span><span class="p">{{</span><span class="nf">#invoke</span><span class="p">:</span>WikiProject banner<span class="p">|</span>inactive <span class="p">|</span><span class="nl">PROJECT </span><span class="o">=</span> Policy and Guidelines <span class="p">|</span><span class="nl">PROJECT_STATUS </span><span class="o">=</span> defunct <span class="p">}}</span> </pre></div> <dl><dd>produces:</dd></dl> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1237879475"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1259570071"><table class="tmbox tmbox-notice mw-collapsible innercollapse wpb wpb-table inactive-wikiproject"><tbody><tr class="wpb-header"><td class="wpb-header-icon"><span typeof="mw:File"><a href="/wiki/File:People_icon_dead.svg" class="mw-file-description"><img alt="WikiProject icon" src="//upload.wikimedia.org/wikipedia/commons/thumb/6/6b/People_icon_dead.svg/25px-People_icon_dead.svg.png" decoding="async" width="25" height="25" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/6/6b/People_icon_dead.svg/38px-People_icon_dead.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/6/6b/People_icon_dead.svg/50px-People_icon_dead.svg.png 2x" data-file-width="100" data-file-height="100" /></a></span></td><td class="wpb-header-combined"><a href="/wiki/Wikipedia:WikiProject_Policy_and_Guidelines" title="Wikipedia:WikiProject Policy and Guidelines">Policy and Guidelines</a> <span class="wpb-header-bubbles"> (<a href="/wiki/Wikipedia:INACTIVEWP" class="mw-redirect" title="Wikipedia:INACTIVEWP">defunct</a>)</span></td></tr><tr><td class="mbox-text wpb-main" colspan="2"><table><tbody><tr><td class="mbox-image wpb-image"><span typeof="mw:File"><a href="/wiki/File:People_icon_dead.svg" class="mw-file-description"><img alt="WikiProject icon" src="//upload.wikimedia.org/wikipedia/commons/thumb/6/6b/People_icon_dead.svg/40px-People_icon_dead.svg.png" decoding="async" width="40" height="40" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/6/6b/People_icon_dead.svg/60px-People_icon_dead.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/6/6b/People_icon_dead.svg/80px-People_icon_dead.svg.png 2x" data-file-width="100" data-file-height="100" /></a></span></td><td class="mbox-text">This article is within the scope of <a href="/wiki/Wikipedia:WikiProject_Policy_and_Guidelines" title="Wikipedia:WikiProject Policy and Guidelines">WikiProject Policy and Guidelines</a>, a project which is currently considered to be <b><a href="/wiki/Wikipedia:INACTIVEWP" class="mw-redirect" title="Wikipedia:INACTIVEWP">defunct</a></b>.<span class="metadata wpb-metadata"><span class="wpb-project">Policy and Guidelines</span><span class="wpb-project_link">Wikipedia:WikiProject Policy and Guidelines</span><span class="wpb-banner_name">Template:WikiProject Policy and Guidelines</span><span class="wpb-assessment_cat">Policy and Guidelines articles</span></span></td><td class="mbox-empty-cell"></td></tr></tbody></table></td></tr></tbody></table> <dl><dd>When inside a banner shell the result is:</dd></dl> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1237879475"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1243927654"><table role="presentation" class="tmbox tmbox-notice banner-shell wpbs mw-collapsible"><tbody><tr><td class="assess"><span class="noviewer" typeof="mw:File"><a href="/wiki/File:Symbol_code_red.svg" class="mw-file-description" title="Module"><img alt="" src="//upload.wikimedia.org/wikipedia/commons/thumb/8/8d/Symbol_code_red.svg/35px-Symbol_code_red.svg.png" decoding="async" width="35" height="36" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/8/8d/Symbol_code_red.svg/53px-Symbol_code_red.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/8/8d/Symbol_code_red.svg/70px-Symbol_code_red.svg.png 2x" data-file-width="180" data-file-height="185" /></a></span></td><td class="banner-shell-header" style="text-align:left;font-weight:normal">This module does not require a rating on Wikipedia's <a href="/wiki/Wikipedia:Content_assessment" title="Wikipedia:Content assessment">content assessment</a> scale.<br />It is of interest to the following <a href="/wiki/Wikipedia:WikiProject" title="Wikipedia:WikiProject">WikiProjects</a>:</td></tr><tr><td colspan="2" class="banner-shell-inner outercollapse"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1237879475"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1259570071"><table class="tmbox tmbox-notice mw-collapsible innercollapse wpb wpb-table inactive-wikiproject"><tbody><tr class="wpb-header"><td class="wpb-header-icon"><span typeof="mw:File"><a href="/wiki/File:People_icon_dead.svg" class="mw-file-description"><img alt="WikiProject icon" src="//upload.wikimedia.org/wikipedia/commons/thumb/6/6b/People_icon_dead.svg/25px-People_icon_dead.svg.png" decoding="async" width="25" height="25" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/6/6b/People_icon_dead.svg/38px-People_icon_dead.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/6/6b/People_icon_dead.svg/50px-People_icon_dead.svg.png 2x" data-file-width="100" data-file-height="100" /></a></span></td><td class="wpb-header-combined"><a href="/wiki/Wikipedia:WikiProject_Policy_and_Guidelines" title="Wikipedia:WikiProject Policy and Guidelines">Policy and Guidelines</a> <span class="wpb-header-bubbles"> (<a href="/wiki/Wikipedia:INACTIVEWP" class="mw-redirect" title="Wikipedia:INACTIVEWP">defunct</a>)</span></td></tr><tr><td class="mbox-text wpb-main" colspan="2"><table><tbody><tr><td class="mbox-image wpb-image"><span typeof="mw:File"><a href="/wiki/File:People_icon_dead.svg" class="mw-file-description"><img alt="WikiProject icon" src="//upload.wikimedia.org/wikipedia/commons/thumb/6/6b/People_icon_dead.svg/40px-People_icon_dead.svg.png" decoding="async" width="40" height="40" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/6/6b/People_icon_dead.svg/60px-People_icon_dead.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/6/6b/People_icon_dead.svg/80px-People_icon_dead.svg.png 2x" data-file-width="100" data-file-height="100" /></a></span></td><td class="mbox-text">This article is within the scope of <a href="/wiki/Wikipedia:WikiProject_Policy_and_Guidelines" title="Wikipedia:WikiProject Policy and Guidelines">WikiProject Policy and Guidelines</a>, a project which is currently considered to be <b><a href="/wiki/Wikipedia:INACTIVEWP" class="mw-redirect" title="Wikipedia:INACTIVEWP">defunct</a></b>.<span class="metadata wpb-metadata"><span class="wpb-project">Policy and Guidelines</span><span class="wpb-project_link">Wikipedia:WikiProject Policy and Guidelines</span><span class="wpb-banner_name">Template:WikiProject Policy and Guidelines</span><span class="wpb-assessment_cat">Policy and Guidelines articles</span></span></td><td class="mbox-empty-cell"></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table> <div class="mw-heading mw-heading2"><h2 id="See_also">See also</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Module:WikiProject_banner/doc&action=edit&section=T-41" title="Edit section: See also"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li><span class="nowrap">{{</span><a href="/wiki/Template:WikiProject_banner_shell" title="Template:WikiProject banner shell">WikiProject banner shell</a><span class="nowrap">}}</span> – template to combine multiple WikiProject Banners</li> <li><span class="nowrap">{{</span><a href="/wiki/Template:WPBannerDoc" title="Template:WPBannerDoc">WPBannerDoc</a><span class="nowrap">}}</span> – convenience template that generates standardised parameter documentation for use on the /doc page</li> <li><a href="/wiki/Wikipedia:WikiProject_Council/Guide#Tagging_pages_with_WikiProject_banners" title="Wikipedia:WikiProject Council/Guide">Wikipedia:WikiProject Council/Guide § Tagging pages with WikiProject banners</a> – guideline about tagging articles for a project</li></ul> <div class="navbox-styles"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1129693374"><style data-mw-deduplicate="TemplateStyles:r1236075235">.mw-parser-output .navbox{box-sizing:border-box;border:1px solid #a2a9b1;width:100%;clear:both;font-size:88%;text-align:center;padding:1px;margin:1em auto 0}.mw-parser-output .navbox .navbox{margin-top:0}.mw-parser-output .navbox+.navbox,.mw-parser-output .navbox+.navbox-styles+.navbox{margin-top:-1px}.mw-parser-output .navbox-inner,.mw-parser-output .navbox-subgroup{width:100%}.mw-parser-output .navbox-group,.mw-parser-output .navbox-title,.mw-parser-output .navbox-abovebelow{padding:0.25em 1em;line-height:1.5em;text-align:center}.mw-parser-output .navbox-group{white-space:nowrap;text-align:right}.mw-parser-output .navbox,.mw-parser-output .navbox-subgroup{background-color:#fdfdfd}.mw-parser-output .navbox-list{line-height:1.5em;border-color:#fdfdfd}.mw-parser-output .navbox-list-with-group{text-align:left;border-left-width:2px;border-left-style:solid}.mw-parser-output tr+tr>.navbox-abovebelow,.mw-parser-output tr+tr>.navbox-group,.mw-parser-output tr+tr>.navbox-image,.mw-parser-output tr+tr>.navbox-list{border-top:2px solid #fdfdfd}.mw-parser-output .navbox-title{background-color:#ccf}.mw-parser-output .navbox-abovebelow,.mw-parser-output .navbox-group,.mw-parser-output .navbox-subgroup .navbox-title{background-color:#ddf}.mw-parser-output .navbox-subgroup .navbox-group,.mw-parser-output .navbox-subgroup .navbox-abovebelow{background-color:#e6e6ff}.mw-parser-output .navbox-even{background-color:#f7f7f7}.mw-parser-output .navbox-odd{background-color:transparent}.mw-parser-output .navbox .hlist td dl,.mw-parser-output .navbox .hlist td ol,.mw-parser-output .navbox .hlist td ul,.mw-parser-output .navbox td.hlist dl,.mw-parser-output .navbox td.hlist ol,.mw-parser-output .navbox td.hlist ul{padding:0.125em 0}.mw-parser-output .navbox .navbar{display:block;font-size:100%}.mw-parser-output .navbox-title .navbar{float:left;text-align:left;margin-right:0.5em}body.skin--responsive .mw-parser-output .navbox-image img{max-width:none!important}@media print{body.ns-0 .mw-parser-output .navbox{display:none!important}}</style></div><div role="navigation" class="navbox" aria-labelledby="20px_WikiProject_Council" style="padding:3px"><table class="nowraplinks mw-collapsible mw-collapsed navbox-inner" style="border-spacing:0;background:transparent;color:inherit"><tbody><tr><th scope="col" class="navbox-title" colspan="2"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1129693374"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1239400231"><div class="navbar plainlinks hlist navbar-mini"><ul><li class="nv-view"><a href="/wiki/Template:WikiProject_Footer" title="Template:WikiProject Footer"><abbr title="View this template">v</abbr></a></li><li class="nv-talk"><a href="/wiki/Template_talk:WikiProject_Footer" title="Template talk:WikiProject Footer"><abbr title="Discuss this template">t</abbr></a></li><li class="nv-edit"><a href="/wiki/Special:EditPage/Template:WikiProject_Footer" title="Special:EditPage/Template:WikiProject Footer"><abbr title="Edit this template">e</abbr></a></li></ul></div><div id="20px_WikiProject_Council" style="font-size:114%;margin:0 4em"><span typeof="mw:File"><a href="/wiki/File:WikiProject_Council_with_transparent_background.svg" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/b/bd/WikiProject_Council_with_transparent_background.svg/20px-WikiProject_Council_with_transparent_background.svg.png" decoding="async" width="20" height="18" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/b/bd/WikiProject_Council_with_transparent_background.svg/30px-WikiProject_Council_with_transparent_background.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/b/bd/WikiProject_Council_with_transparent_background.svg/40px-WikiProject_Council_with_transparent_background.svg.png 2x" data-file-width="512" data-file-height="459" /></a></span> <a href="/wiki/Wikipedia:WikiProject_Council" title="Wikipedia:WikiProject Council">WikiProject Council</a></div></th></tr><tr><th scope="row" class="navbox-group" style="width:1%;text-align:center; box-shadow: inset 1px 1px 0 darkgray, inset -1px -1px 0 darkgray;"><span typeof="mw:File"><a href="/wiki/File:Book_icoline.svg" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/a/a0/Book_icoline.svg/20px-Book_icoline.svg.png" decoding="async" width="20" height="11" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/a/a0/Book_icoline.svg/30px-Book_icoline.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/a/a0/Book_icoline.svg/40px-Book_icoline.svg.png 2x" data-file-width="341" data-file-height="187" /></a></span> <a href="/wiki/Wikipedia:WikiProject_Council/Guide" title="Wikipedia:WikiProject Council/Guide">WikiProject guides</a></th><td class="navbox-list-with-group navbox-list navbox-odd hlist" style="width:100%;padding:0;box-shadow: inset 0 1px 0 0 darkgray;"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Wikipedia:WikiProject_Council" title="Wikipedia:WikiProject Council">WikiProject Council</a> <ul><li><a href="/wiki/Wikipedia_talk:WikiProject_Council" title="Wikipedia talk:WikiProject Council">Talk</a></li></ul></li> <li><a href="/wiki/Wikipedia:WikiProject_Council/Guide" title="Wikipedia:WikiProject Council/Guide">Guidelines/Intro</a> <ul><li><a href="/wiki/Wikipedia:WikiProject_Council/Guide/WikiProject" title="Wikipedia:WikiProject Council/Guide/WikiProject">WikiProjects</a></li> <li><a href="/wiki/Wikipedia:WikiProject_Council/Guide/Task_forces" title="Wikipedia:WikiProject Council/Guide/Task forces">Task forces</a></li> <li><a href="/wiki/Wikipedia:WikiProject_Council/Guide/Technical_notes" title="Wikipedia:WikiProject Council/Guide/Technical notes">Technical notes</a></li></ul></li> <li><a href="/wiki/Wikipedia:WikiProject_Council/Assessment_FAQ" class="mw-redirect" title="Wikipedia:WikiProject Council/Assessment FAQ">Assessment FAQ</a></li> <li><a href="/wiki/Wikipedia:Version_1.0_Editorial_Team/Work_via_WikiProjects" title="Wikipedia:Version 1.0 Editorial Team/Work via WikiProjects">Work via WikiProjects</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%;text-align:center; box-shadow: inset 1px 1px 0 darkgray, inset -1px -1px 0 darkgray;"><span typeof="mw:File"><a href="/wiki/File:People_icon.svg" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/3/37/People_icon.svg/20px-People_icon.svg.png" decoding="async" width="20" height="20" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/3/37/People_icon.svg/30px-People_icon.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/3/37/People_icon.svg/40px-People_icon.svg.png 2x" data-file-width="100" data-file-height="100" /></a></span> <a href="/wiki/Wikipedia:WikiProject_Council/Directory" title="Wikipedia:WikiProject Council/Directory">Directories and summaries</a></th><td class="navbox-list-with-group navbox-list navbox-even hlist" style="width:100%;padding:0;box-shadow: inset 0 1px 0 0 darkgray;"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Wikipedia:WikiProject_Council/Directory" title="Wikipedia:WikiProject Council/Directory">Directory</a></li> <li><a href="/wiki/Wikipedia:WikiProject_Council/Proposals" title="Wikipedia:WikiProject Council/Proposals">Proposals</a></li> <li><a href="/wiki/Wikipedia:Miscellany_for_deletion/WikiProjects" title="Wikipedia:Miscellany for deletion/WikiProjects">Deletion</a></li> <li><a href="/wiki/Wikipedia:Wikipedia_Signpost/Series/WikiProject_report" title="Wikipedia:Wikipedia Signpost/Series/WikiProject report">Signpost</a></li> <li><a href="/wiki/Wikipedia:Shortcut_directory/Project_shortcuts" class="mw-redirect" title="Wikipedia:Shortcut directory/Project shortcuts">Shortcuts</a></li> <li><a href="/wiki/User:Community_Tech_bot/Popular_pages" title="User:Community Tech bot/Popular pages">Popular pages</a></li> <li><a href="/wiki/Wikipedia:Database_reports" title="Wikipedia:Database reports">Database reports</a> <ul><li><a href="/wiki/Wikipedia:Database_reports/WikiProject_watchers" title="Wikipedia:Database reports/WikiProject watchers">Watchers</a></li></ul></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%;text-align:center; box-shadow: inset 1px 1px 0 darkgray, inset -1px -1px 0 darkgray;"><span typeof="mw:File"><a href="/wiki/File:Gnome-applications-graphics.svg" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/f/fe/Gnome-applications-graphics.svg/20px-Gnome-applications-graphics.svg.png" decoding="async" width="20" height="20" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/f/fe/Gnome-applications-graphics.svg/30px-Gnome-applications-graphics.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/f/fe/Gnome-applications-graphics.svg/40px-Gnome-applications-graphics.svg.png 2x" data-file-width="48" data-file-height="48" /></a></span> <a href="/wiki/Wikipedia:WikiProject_Council/Directory/Culture" title="Wikipedia:WikiProject Council/Directory/Culture">Culture and the arts</a></th><td class="navbox-list-with-group navbox-list navbox-odd hlist" style="width:100%;padding:0;box-shadow: inset 0 1px 0 0 darkgray;"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Wikipedia:WikiProject_Council/Directory/Culture#Arts" title="Wikipedia:WikiProject Council/Directory/Culture">Arts</a> <ul><li><a href="/wiki/Wikipedia:WikiProject_Council/Directory/Culture/Music" title="Wikipedia:WikiProject Council/Directory/Culture/Music">Music</a></li> <li><a href="/wiki/Wikipedia:WikiProject_Council/Directory/Culture#Performing_arts" title="Wikipedia:WikiProject Council/Directory/Culture">Performing</a></li> <li><a href="/wiki/Wikipedia:WikiProject_Council/Directory/Culture#Plastic_arts" title="Wikipedia:WikiProject Council/Directory/Culture">Plastic</a></li> <li><a href="/wiki/Wikipedia:WikiProject_Council/Directory/Culture#Visual_arts" title="Wikipedia:WikiProject Council/Directory/Culture">Visual</a></li></ul></li> <li><a href="/wiki/Wikipedia:WikiProject_Council/Directory/Culture#Broadcasting" title="Wikipedia:WikiProject Council/Directory/Culture">Broadcasting</a></li> <li><a href="/wiki/Wikipedia:WikiProject_Council/Directory/Culture#Crafts_and_hobbies" title="Wikipedia:WikiProject Council/Directory/Culture">Crafts and hobbies</a></li> <li><a href="/wiki/Wikipedia:WikiProject_Council/Directory/Culture#Entertainment" title="Wikipedia:WikiProject Council/Directory/Culture">Entertainment</a> <ul><li><a href="/wiki/Wikipedia:WikiProject_Council/Directory/Culture/Games" title="Wikipedia:WikiProject Council/Directory/Culture/Games">Games and toys</a></li></ul></li> <li><a href="/wiki/Wikipedia:WikiProject_Council/Directory/Culture#Food_and_drink" title="Wikipedia:WikiProject Council/Directory/Culture">Food and drink</a></li> <li><a href="/wiki/Wikipedia:WikiProject_Council/Directory/Culture#Internet_culture" title="Wikipedia:WikiProject Council/Directory/Culture">Internet culture</a></li> <li><a href="/wiki/Wikipedia:WikiProject_Council/Directory/Culture/Language_and_literature" title="Wikipedia:WikiProject Council/Directory/Culture/Language and literature">Language and literature</a> <ul><li><a href="/wiki/Wikipedia:WikiProject_Council/Directory/Culture/Language_and_literature#Biography" title="Wikipedia:WikiProject Council/Directory/Culture/Language and literature">Biography</a></li> <li><a href="/wiki/Wikipedia:WikiProject_Council/Directory/Culture/Language_and_literature#Linguistics" title="Wikipedia:WikiProject Council/Directory/Culture/Language and literature">Linguistics</a></li></ul></li> <li><a href="/wiki/Wikipedia:WikiProject_Council/Directory/Culture#Media" title="Wikipedia:WikiProject Council/Directory/Culture">Media</a></li> <li><a href="/wiki/Wikipedia:WikiProject_Council/Directory/Culture/Philosophy_and_religion" title="Wikipedia:WikiProject Council/Directory/Culture/Philosophy and religion">Philosophy and religion</a></li> <li><a href="/wiki/Wikipedia:WikiProject_Council/Directory/Culture/Sports" title="Wikipedia:WikiProject Council/Directory/Culture/Sports">Sports</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%;text-align:center; box-shadow: inset 1px 1px 0 darkgray, inset -1px -1px 0 darkgray;"><span typeof="mw:File"><a href="/wiki/File:Ambox_globe.svg" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/e/e2/Ambox_globe.svg/20px-Ambox_globe.svg.png" decoding="async" width="20" height="20" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/e/e2/Ambox_globe.svg/30px-Ambox_globe.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/e/e2/Ambox_globe.svg/40px-Ambox_globe.svg.png 2x" data-file-width="512" data-file-height="512" /></a></span> <a href="/wiki/Wikipedia:WikiProject_Council/Directory/Geographical" title="Wikipedia:WikiProject Council/Directory/Geographical">Geographical</a></th><td class="navbox-list-with-group navbox-list navbox-even hlist" style="width:100%;padding:0;box-shadow: inset 0 1px 0 0 darkgray;"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Wikipedia:WikiProject_Council/Directory/Geographical#Bodies_of_water" title="Wikipedia:WikiProject Council/Directory/Geographical">Bodies of water</a></li> <li><a href="/wiki/Wikipedia:WikiProject_Council/Directory/Geographical#Cities" title="Wikipedia:WikiProject Council/Directory/Geographical">Cities</a></li> <li><a href="/wiki/Wikipedia:WikiProject_Council/Directory/Geographical#Countries" title="Wikipedia:WikiProject Council/Directory/Geographical">Countries</a> <ul><li><a href="/wiki/Wikipedia:WikiProject_Council/Directory/Geographical/Africa" title="Wikipedia:WikiProject Council/Directory/Geographical/Africa">Africa</a></li> <li><a href="/wiki/Wikipedia:WikiProject_Council/Directory/Geographical/Americas" title="Wikipedia:WikiProject Council/Directory/Geographical/Americas">Americas</a></li> <li><a href="/wiki/Wikipedia:WikiProject_Council/Directory/Geographical/Asia" title="Wikipedia:WikiProject Council/Directory/Geographical/Asia">Asia</a></li> <li><a href="/wiki/Wikipedia:WikiProject_Council/Directory/Geographical/Europe" title="Wikipedia:WikiProject Council/Directory/Geographical/Europe">Europe</a></li> <li><a href="/wiki/Wikipedia:WikiProject_Council/Directory/Geographical/Oceania" title="Wikipedia:WikiProject Council/Directory/Geographical/Oceania">Oceania</a></li></ul></li> <li><a href="/wiki/Wikipedia:WikiProject_Council/Directory/Geographical#Landforms" title="Wikipedia:WikiProject Council/Directory/Geographical">Landforms</a></li> <li><a href="/wiki/Wikipedia:WikiProject_Council/Directory/Geographical#Maps" title="Wikipedia:WikiProject Council/Directory/Geographical">Maps</a></li> <li><a href="/wiki/Wikipedia:WikiProject_Council/Directory/Geographical#Parks,_conservation_areas,_and_historical_sites" title="Wikipedia:WikiProject Council/Directory/Geographical">Parks, conservation areas and historical sites</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%;text-align:center; box-shadow: inset 1px 1px 0 darkgray, inset -1px -1px 0 darkgray;"><span typeof="mw:File"><a href="/wiki/File:System-users.svg" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/a/a8/System-users.svg/20px-System-users.svg.png" decoding="async" width="20" height="20" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/a/a8/System-users.svg/30px-System-users.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/a/a8/System-users.svg/40px-System-users.svg.png 2x" data-file-width="48" data-file-height="48" /></a></span> <a href="/wiki/Wikipedia:WikiProject_Council/Directory/History_and_society" title="Wikipedia:WikiProject Council/Directory/History and society">History and society</a></th><td class="navbox-list-with-group navbox-list navbox-odd hlist" style="width:100%;padding:0;box-shadow: inset 0 1px 0 0 darkgray;"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Wikipedia:WikiProject_Council/Directory/History_and_society#History_and_society" title="Wikipedia:WikiProject Council/Directory/History and society">History and society</a></li> <li><a href="/wiki/Wikipedia:WikiProject_Council/Directory/History_and_society#Business_and_economics" title="Wikipedia:WikiProject Council/Directory/History and society">Business and economics</a></li> <li><a href="/wiki/Wikipedia:WikiProject_Council/Directory/History_and_society#Education" title="Wikipedia:WikiProject Council/Directory/History and society">Education</a></li> <li><a href="/wiki/Wikipedia:WikiProject_Council/Directory/History_and_society#Military_and_warfare" title="Wikipedia:WikiProject Council/Directory/History and society">Military and warfare</a></li> <li><a href="/wiki/Wikipedia:WikiProject_Council/Directory/History_and_society#Politics_and_government" title="Wikipedia:WikiProject Council/Directory/History and society">Politics and government</a></li> <li><a href="/wiki/Wikipedia:WikiProject_Council/Directory/History_and_society#Transportation" title="Wikipedia:WikiProject Council/Directory/History and society">Transportation</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%;text-align:center; box-shadow: inset 1px 1px 0 darkgray, inset -1px -1px 0 darkgray;"><span typeof="mw:File"><a href="/wiki/File:Tango_atom.svg" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/3/32/Tango_atom.svg/20px-Tango_atom.svg.png" decoding="async" width="20" height="20" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/3/32/Tango_atom.svg/30px-Tango_atom.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/3/32/Tango_atom.svg/40px-Tango_atom.svg.png 2x" data-file-width="48" data-file-height="48" /></a></span> <a href="/wiki/Wikipedia:WikiProject_Council/Directory/Science" title="Wikipedia:WikiProject Council/Directory/Science">Science, technology<br />and engineering</a></th><td class="navbox-list-with-group navbox-list navbox-even hlist" style="width:100%;padding:0;box-shadow: inset 0 1px 0 0 darkgray;"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Wikipedia:WikiProject_Council/Directory/Science#Science" title="Wikipedia:WikiProject Council/Directory/Science">Science</a></li> <li><a href="/wiki/Wikipedia:WikiProject_Council/Directory/Science#Biology" title="Wikipedia:WikiProject Council/Directory/Science">Biology</a></li> <li><a href="/wiki/Wikipedia:WikiProject_Council/Directory/Science#Chemistry" title="Wikipedia:WikiProject Council/Directory/Science">Chemistry</a></li> <li><a href="/wiki/Wikipedia:WikiProject_Council/Directory/Science#Economics" title="Wikipedia:WikiProject Council/Directory/Science">Economics</a></li> <li><a href="/wiki/Wikipedia:WikiProject_Council/Directory/Science#Geosciences" title="Wikipedia:WikiProject Council/Directory/Science">Geosciences</a></li> <li><a href="/wiki/Wikipedia:WikiProject_Council/Directory/Science#Information_science" title="Wikipedia:WikiProject Council/Directory/Science">Information science</a></li> <li><a href="/wiki/Wikipedia:WikiProject_Council/Directory/Science#Mathematics" title="Wikipedia:WikiProject Council/Directory/Science">Mathematics</a></li> <li><a href="/wiki/Wikipedia:WikiProject_Council/Directory/Science#Medicine" title="Wikipedia:WikiProject Council/Directory/Science">Medicine</a></li> <li><a href="/wiki/Wikipedia:WikiProject_Council/Directory/Science#Meteorology" title="Wikipedia:WikiProject Council/Directory/Science">Meteorology</a></li> <li><a href="/wiki/Wikipedia:WikiProject_Council/Directory/Science#Physics" title="Wikipedia:WikiProject Council/Directory/Science">Physics</a></li> <li><a href="/wiki/Wikipedia:WikiProject_Council/Directory/Science#Space" title="Wikipedia:WikiProject Council/Directory/Science">Space</a></li> <li><a href="/wiki/Wikipedia:WikiProject_Council/Directory/Science#Technology" title="Wikipedia:WikiProject Council/Directory/Science">Technology</a></li> <li><a href="/wiki/Wikipedia:WikiProject_Council/Directory/Science#Time" title="Wikipedia:WikiProject Council/Directory/Science">Time</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%;text-align:center; box-shadow: inset 1px 1px 0 darkgray, inset -1px -1px 0 darkgray;"><span typeof="mw:File"><a href="/wiki/File:Tango_style_Wikipedia_Icon.svg" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/2/2c/Tango_style_Wikipedia_Icon.svg/20px-Tango_style_Wikipedia_Icon.svg.png" decoding="async" width="20" height="20" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/2/2c/Tango_style_Wikipedia_Icon.svg/30px-Tango_style_Wikipedia_Icon.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/2/2c/Tango_style_Wikipedia_Icon.svg/40px-Tango_style_Wikipedia_Icon.svg.png 2x" data-file-width="48" data-file-height="48" /></a></span> <a href="/wiki/Wikipedia:WikiProject_Council/Directory/Wikipedia" title="Wikipedia:WikiProject Council/Directory/Wikipedia">Wikipedia assistance<br />and tasks</a></th><td class="navbox-list-with-group navbox-list navbox-odd hlist" style="width:100%;padding:0;box-shadow: inset 0 1px 0 0 darkgray;"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Wikipedia:WikiProject_Council/Directory/Wikipedia#Contents_systems" title="Wikipedia:WikiProject Council/Directory/Wikipedia">Contents systems</a></li> <li><a href="/wiki/Wikipedia:WikiProject_Council/Directory/Wikipedia#Maintenance" title="Wikipedia:WikiProject Council/Directory/Wikipedia">Maintenance</a></li> <li><a href="/wiki/Wikipedia:WikiProject_Council/Directory/Wikipedia#Files" title="Wikipedia:WikiProject Council/Directory/Wikipedia">Files</a></li> <li><a href="/wiki/Wikipedia:WikiProject_Council/Directory/Wikipedia#Article_improvement_and_grading" title="Wikipedia:WikiProject Council/Directory/Wikipedia">Article improvement and grading</a></li> <li><a href="/wiki/Wikipedia:WikiProject_Council/Directory/Wikipedia#Classroom_projects" title="Wikipedia:WikiProject Council/Directory/Wikipedia">Classroom projects</a></li> <li><a href="/wiki/Wikipedia:WikiProject_Council/Directory/Wikipedia#WikiProjects" title="Wikipedia:WikiProject Council/Directory/Wikipedia">WikiProjects</a></li></ul> </div></td></tr></tbody></table></div> <div class="navbox-styles"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1129693374"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1236075235"></div><div role="navigation" class="navbox" aria-labelledby="Wikipedia_technical_help" style="padding:3px"><table class="nowraplinks hlist mw-collapsible autocollapse navbox-inner" style="border-spacing:0;background:transparent;color:inherit"><tbody><tr><th scope="col" class="navbox-title" colspan="2" style="text-align: center;"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1129693374"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1239400231"><div class="navbar plainlinks hlist navbar-mini"><ul><li class="nv-view"><a href="/wiki/Template:Wikipedia_technical_help" title="Template:Wikipedia technical help"><abbr title="View this template">v</abbr></a></li><li class="nv-talk"><a href="/wiki/Template_talk:Wikipedia_technical_help" title="Template talk:Wikipedia technical help"><abbr title="Discuss this template">t</abbr></a></li><li class="nv-edit"><a href="/wiki/Special:EditPage/Template:Wikipedia_technical_help" title="Special:EditPage/Template:Wikipedia technical help"><abbr title="Edit this template">e</abbr></a></li></ul></div><div id="Wikipedia_technical_help" style="font-size:114%;margin:0 4em"><a href="/wiki/Help:Directory#Technical_help" title="Help:Directory">Wikipedia technical help</a></div></th></tr><tr><td class="navbox-abovebelow" colspan="2" style="text-align: center;"><div><b>Get personal technical help at <a href="/wiki/Wikipedia:Teahouse" title="Wikipedia:Teahouse">the Teahouse</a>, <a href="/wiki/Wikipedia:Help_desk" title="Wikipedia:Help desk">help desk</a>, <a href="/wiki/Wikipedia:Village_pump_(technical)" title="Wikipedia:Village pump (technical)">village pump (technical)</a>, <a href="/wiki/Help:Introduction_to_talk_pages/1" title="Help:Introduction to talk pages/1">talk pages</a> or <a href="/wiki/Wikipedia:IRC" title="Wikipedia:IRC">IRC</a>.</b></div></td></tr><tr><th scope="row" class="navbox-group" style="text-align: center;;width:1%"><a href="/wiki/Wikipedia:FAQ/Technical" title="Wikipedia:FAQ/Technical">General<br />technical help</a></th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Wikipedia:Browser_notes" title="Wikipedia:Browser notes">Browser notes</a> <ul><li><a href="/wiki/Wikipedia:Bypass_your_cache" title="Wikipedia:Bypass your cache">Bypass cache</a></li> <li><a href="/wiki/Wikipedia:Keyboard_shortcuts" class="mw-redirect" title="Wikipedia:Keyboard shortcuts">Keyboard shortcuts</a></li></ul></li> <li><a href="/wiki/Help:Editing" title="Help:Editing">Editing</a> <ul><li><a href="/wiki/Help:CharInsert" title="Help:CharInsert">CharInsert</a></li> <li><a href="/wiki/Help:Edit_conflict" title="Help:Edit conflict">Edit conflict</a></li> <li><a href="/wiki/Help:Edit_toolbar" title="Help:Edit toolbar">Edit toolbar</a></li> <li><a href="/wiki/Help:Reverting" title="Help:Reverting">Reverting</a></li></ul></li> <li><a href="/wiki/Wikipedia:How_to_create_a_page" title="Wikipedia:How to create a page">How to create a page</a></li> <li><a href="/wiki/Wikipedia:IRC" title="Wikipedia:IRC">IRC</a> <ul><li><a href="/wiki/Wikipedia:IRC/Tutorial" title="Wikipedia:IRC/Tutorial">Tutorial</a></li></ul></li> <li><a href="/wiki/Help:Mobile_access" title="Help:Mobile access">Mobile access</a></li> <li><a href="/wiki/Help:Multilingual_support" title="Help:Multilingual support">Multilingual support</a></li> <li><a href="/wiki/Help:Page_history" title="Help:Page history">Page history</a></li> <li><a href="/wiki/Help:Page_information" title="Help:Page information">Page information</a></li> <li><a href="/wiki/Wikipedia:Page_name" title="Wikipedia:Page name">Page name</a> <ul><li><a href="/wiki/Help:Page_name" title="Help:Page name">Help</a></li></ul></li> <li><a href="/wiki/Help:Printing" title="Help:Printing">Printing</a></li> <li><a href="/wiki/Wikipedia:Software_notices" title="Wikipedia:Software notices">Software notices</a> <ul><li><a href="/wiki/Wikipedia:Editnotice" title="Wikipedia:Editnotice">Editnotice</a></li></ul></li> <li><a href="/wiki/Help:Special_characters" title="Help:Special characters">Special Characters</a> <ul><li><a href="/wiki/Help:Entering_special_characters" title="Help:Entering special characters">Entering</a></li></ul></li> <li><a href="/wiki/Wikipedia:User_access_levels" title="Wikipedia:User access levels">User access levels</a></li> <li><a href="/wiki/Wikipedia:VisualEditor" title="Wikipedia:VisualEditor">VisualEditor</a> <ul><li><a href="/wiki/Help:VisualEditor" title="Help:VisualEditor">Help</a></li></ul></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="text-align: center;;width:1%"><a href="/wiki/Special:SpecialPages" title="Special:SpecialPages">Special<br />page</a>-related</th><td class="navbox-list-with-group navbox-list navbox-even" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Help:Special_page" title="Help:Special page">Special page help</a></li> <li><a href="/wiki/Help:AllPages" title="Help:AllPages">AllPages</a></li> <li><a href="/wiki/Wikipedia:Edit_filter" title="Wikipedia:Edit filter">Edit filter</a></li> <li><a href="/wiki/Wikipedia:Emailing_users" title="Wikipedia:Emailing users">Emailing users</a></li> <li><a href="/wiki/Help:Logging_in" title="Help:Logging in">Logging in</a> <ul><li><a href="/wiki/Help:Reset_password" title="Help:Reset password">Reset passwords</a></li></ul></li> <li><a href="/wiki/Help:Log" title="Help:Log">Logs</a></li> <li><a href="/wiki/Wikipedia:Moving_a_page" title="Wikipedia:Moving a page">Moving a page</a> <ul><li><a href="/wiki/Wikipedia:History_merging" title="Wikipedia:History merging">History merging</a></li> <li><a href="/wiki/Help:When_to_place_technical_requests_in_%22Administrator_needed%22" title="Help:When to place technical requests in "Administrator needed"">Non-admin and admin-only page moves</a></li></ul></li> <li><a href="/wiki/Help:Notifications" title="Help:Notifications">Notifications/Echo</a> <ul><li><a href="/wiki/Help:Notifications/FAQ" title="Help:Notifications/FAQ">FAQ</a></li></ul></li> <li><a href="/wiki/Wikipedia:Page_Curation/Help" title="Wikipedia:Page Curation/Help">Page Curation</a></li> <li><a href="/wiki/Help:Import" title="Help:Import">Page import</a></li> <li><a href="/wiki/Wikipedia:Pending_changes" title="Wikipedia:Pending changes">Pending changes</a></li> <li><a href="/wiki/Wikipedia:Random" title="Wikipedia:Random">Random pages</a></li> <li><a href="/wiki/Help:Recent_changes" title="Help:Recent changes">Recent changes</a></li> <li><a href="/wiki/Help:Related_changes" title="Help:Related changes">Related changes</a></li> <li><a href="/wiki/Help:Searching" title="Help:Searching">Searching</a> <ul><li><a href="/wiki/Help:Linksearch" title="Help:Linksearch">Linksearch</a></li></ul></li> <li><a href="/wiki/Wikipedia:Tags" title="Wikipedia:Tags">Tags</a></li> <li><a href="/wiki/Help:User_contributions" title="Help:User contributions">User contributions</a></li> <li><a href="/wiki/Help:Watchlist" title="Help:Watchlist">Watchlist</a></li> <li><a href="/wiki/Help:What_links_here" title="Help:What links here">What links here</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="text-align: center;;width:1%"><a href="/wiki/Help:Wikitext" title="Help:Wikitext">Wikitext</a></th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Help:Wikitext" title="Help:Wikitext">Wikitext</a> <ul><li><a href="/wiki/Help:Cheatsheet" title="Help:Cheatsheet">Cheatsheet</a></li></ul></li> <li><a href="/wiki/Help:Columns" title="Help:Columns">Columns</a></li> <li><a href="/wiki/Help:Line-break_handling" title="Help:Line-break handling">Line-break handling</a></li> <li><a href="/wiki/Help:List" title="Help:List">Lists</a></li> <li><a href="/wiki/Help:Magic_words" title="Help:Magic words">Magic words</a> <ul><li><a href="/wiki/Help:Magic_words_for_beginners" title="Help:Magic words for beginners">For beginners</a></li> <li><a href="/wiki/Help:Conditional_expressions" title="Help:Conditional expressions">Conditional expressions</a></li> <li><a href="/wiki/Help:Switch_parser_function" title="Help:Switch parser function">Switch parser function</a></li> <li><a href="/wiki/Help:Time_function" title="Help:Time function">Time function</a></li></ul></li> <li><a href="/wiki/Help:Redirect" title="Help:Redirect">Redirects</a></li> <li><a href="/wiki/Help:Section" title="Help:Section">Sections and TOCs</a></li> <li><a href="/wiki/Help:Table" title="Help:Table">Tables</a> <ul><li><a href="/wiki/Help:Introduction_to_tables_with_Wiki_Markup/1" title="Help:Introduction to tables with Wiki Markup/1">Introduction</a></li> <li><a href="/wiki/Help:Basic_table_markup" title="Help:Basic table markup">Basics</a></li> <li><a href="/wiki/Help:Advanced_table_formatting" title="Help:Advanced table formatting">Advanced table formatting</a></li> <li><a href="/wiki/Help:Collapsing" class="mw-redirect" title="Help:Collapsing">Collapsing</a></li> <li><a href="/wiki/Help:Conditional_tables" title="Help:Conditional tables">Conditional tables</a></li> <li><a href="/wiki/Help:Sortable_tables" title="Help:Sortable tables">Sortable tables</a></li></ul></li> <li><a href="/wiki/Help:Using_colours" title="Help:Using colours">Using colours</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="text-align: center;;width:1%"><a href="/wiki/Help:Link" title="Help:Link">Links</a> and <a href="/wiki/Help:Diff" title="Help:Diff">diffs</a></th><td class="navbox-list-with-group navbox-list navbox-even" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Help:Link" title="Help:Link">Links</a> <ul><li><a href="/wiki/Help:Interlanguage_links" title="Help:Interlanguage links">Interlanguage</a></li> <li><a href="/wiki/Help:Interwiki_linking" title="Help:Interwiki linking">Interwiki</a></li> <li><a href="/wiki/Help:Permanent_link" title="Help:Permanent link">Permanent</a></li></ul></li> <li><a href="/wiki/Help:Diff" title="Help:Diff">Diffs</a> <ul><li><a href="/wiki/Wikipedia:Simplest_diff_guide" title="Wikipedia:Simplest diff guide">Simplest diff guide</a></li> <li><a href="/wiki/Wikipedia:Simple_diff_and_link_guide" title="Wikipedia:Simple diff and link guide">Simple diff and link guide</a></li> <li><a href="/wiki/Wikipedia:Complete_diff_and_link_guide" title="Wikipedia:Complete diff and link guide">Complete diff and link guide</a></li></ul></li> <li><a href="/wiki/Help:Colon_trick" title="Help:Colon trick">Colon trick</a></li> <li><a href="/wiki/Help:Link_color" title="Help:Link color">Link color</a></li> <li><a href="/wiki/Help:Pipe_trick" title="Help:Pipe trick">Pipe trick</a></li> <li><a href="/wiki/Help:URL" title="Help:URL">URLs</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="text-align: center;;width:1%"><a href="/wiki/Wikipedia:Media" class="mw-disambig" title="Wikipedia:Media">Media</a> files: images,<br />videos and sounds</th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Help:Media" title="Help:Media">Media help</a></li> <li><a href="/wiki/Help:Files" title="Help:Files">Files</a> <ul><li><a href="/wiki/Help:Creation_and_usage_of_media_files" title="Help:Creation and usage of media files">Creation and usage</a></li> <li><a href="/wiki/Wikipedia:Moving_files_to_Commons" title="Wikipedia:Moving files to Commons">Moving files to Commons</a></li></ul></li> <li><a href="/wiki/Wikipedia:Images" title="Wikipedia:Images">Images</a> <ul><li><a href="/wiki/Help:Introduction_to_images_with_Wiki_Markup/1" title="Help:Introduction to images with Wiki Markup/1">Introduction to images</a></li> <li><a href="/wiki/Help:Pictures" title="Help:Pictures">Picture tutorial</a></li> <li><a href="/wiki/Wikipedia:Preparing_images_for_upload" title="Wikipedia:Preparing images for upload">Preparing images for upload</a></li> <li><a href="/wiki/Wikipedia:Uploading_images" title="Wikipedia:Uploading images">Uploading images</a></li> <li><a href="/wiki/Help:Options_to_hide_an_image" title="Help:Options to hide an image">Options to hide an image</a></li> <li><a href="/wiki/Wikipedia:Extended_image_syntax" title="Wikipedia:Extended image syntax">Extended image syntax</a></li> <li><a href="/wiki/Wikipedia:SVG_help" title="Wikipedia:SVG help">SVG help</a></li></ul></li> <li><a href="/wiki/Help:Gallery_tag" title="Help:Gallery tag">Gallery tag</a></li> <li><a href="/wiki/Wikipedia:Graphics_tutorials" title="Wikipedia:Graphics tutorials">Graphics tutorials</a> <ul><li><a href="/wiki/Wikipedia:Basic_bitmap_image_editing" title="Wikipedia:Basic bitmap image editing">Basic bitmap image editing</a></li> <li><a href="/wiki/Wikipedia:How_to_improve_image_quality" title="Wikipedia:How to improve image quality">How to improve image quality</a></li> <li><a href="/wiki/Wikipedia:Graphics_Lab/Resources" title="Wikipedia:Graphics Lab/Resources">Graphics Lab resources</a></li></ul></li> <li><a href="/wiki/Help:Sound_file_markup" title="Help:Sound file markup">Sound file markup</a></li> <li><a href="/wiki/Help:Visual_file_markup" title="Help:Visual file markup">Visual file markup</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="text-align: center;;width:1%">Other graphics</th><td class="navbox-list-with-group navbox-list navbox-even" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Help:Family_trees" title="Help:Family trees">Family trees</a></li> <li><a href="/wiki/Wikipedia:Graphs_and_charts" title="Wikipedia:Graphs and charts">Graphs and charts</a> <ul><li><a href="/wiki/Wikipedia:How_to_create_charts_for_Wikipedia_articles" title="Wikipedia:How to create charts for Wikipedia articles">How to create</a></li> <li><a href="/wiki/Help:Barchart" title="Help:Barchart">Barcharts</a></li> <li><a href="/wiki/Wikipedia:To_scale_charts" title="Wikipedia:To scale charts">To scale charts</a></li></ul></li> <li><a href="/wiki/Help:Displaying_a_formula" title="Help:Displaying a formula">Math formulas</a> <ul><li><a href="/wiki/Help:Displaying_a_formula#Use_of_HTML_templates" title="Help:Displaying a formula">Math symbols</a></li></ul></li> <li><a href="/wiki/Help:Score" title="Help:Score">Musical scores</a> <ul><li><a href="/wiki/Help:Musical_symbols" title="Help:Musical symbols">Musical symbols</a></li></ul></li> <li><a href="/wiki/Wikipedia:Timeline" title="Wikipedia:Timeline">Timeline</a> <ul><li><a href="/wiki/Help:EasyTimeline_syntax" title="Help:EasyTimeline syntax">EasyTimeline syntax</a></li></ul></li> <li><a href="/wiki/Help:WikiHiero_syntax" title="Help:WikiHiero syntax">WikiHiero syntax</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="text-align: center;;width:1%"><a href="/wiki/Help:A_quick_guide_to_templates" title="Help:A quick guide to templates">Templates</a> and<br /><a href="/wiki/Lua_(programming_language)" title="Lua (programming language)">Lua</a> modules</th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Help:Template" title="Help:Template">Templates</a></li> <li><a href="/wiki/Wikipedia:Advanced_template_coding" title="Wikipedia:Advanced template coding">Advanced template coding</a></li> <li><a href="/wiki/Wikipedia:Template_documentation" title="Wikipedia:Template documentation">Template documentation</a></li> <li><a href="/wiki/Wikipedia:Template_index" title="Wikipedia:Template index">Template index</a></li> <li><a href="/wiki/Help:Template_limits" title="Help:Template limits">Template limits</a></li> <li><a href="/wiki/Wikipedia:Template_sandbox_and_test_cases" title="Wikipedia:Template sandbox and test cases">Template sandbox and test cases</a></li> <li><a href="/wiki/Wikipedia:Citation_templates" title="Wikipedia:Citation templates">Citation templates</a></li> <li><a href="/wiki/Help:Lua" title="Help:Lua">Lua help</a></li> <li><a href="/wiki/Wikipedia:Lua" title="Wikipedia:Lua">Lua project</a> <ul><li><a href="/wiki/Wikipedia:Lua/Resources" title="Wikipedia:Lua/Resources">Resources</a></li> <li><a href="/wiki/Wikipedia:Lua/To_do" title="Wikipedia:Lua/To do">To do</a></li></ul></li> <li><a href="/wiki/Help:Substitution" title="Help:Substitution">Substitution</a></li> <li><a href="/wiki/Help:Purge" title="Help:Purge">Purge</a> <ul><li><a href="/wiki/Help:Job_queue" title="Help:Job queue">Job queue</a></li></ul></li> <li><a href="/wiki/Help:Transclusion" title="Help:Transclusion">Transclusion</a> <ul><li><a href="/wiki/Help:Labeled_section_transclusion" title="Help:Labeled section transclusion">Labeled section</a></li> <li><a href="/wiki/Wikipedia:Transclusion_costs_and_benefits" title="Wikipedia:Transclusion costs and benefits">Costs and benefits</a></li></ul></li> <li><a href="/wiki/Wikipedia:Guide_to_Scribbling" title="Wikipedia:Guide to Scribbling">Guide to Scribbling</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="text-align: center;;width:1%"><a href="/wiki/Wikipedia:Administration#Data_structure_and_development" title="Wikipedia:Administration">Data structure</a></th><td class="navbox-list-with-group navbox-list navbox-even" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Wikipedia:Namespace" title="Wikipedia:Namespace">Namespaces</a></li> <li><a href="/wiki/Wikipedia:What_is_an_article%3F" title="Wikipedia:What is an article?">Main/Article</a></li> <li><a href="/wiki/Help:Category" title="Help:Category">Category</a></li> <li><a href="/wiki/Wikipedia:Drafts" title="Wikipedia:Drafts">Draft</a></li> <li><a href="/wiki/Help:Files" title="Help:Files">File</a> <ul><li><a href="/wiki/Help:File_description_page" title="Help:File description page">File description page</a></li></ul></li> <li><a href="/wiki/Wikipedia:Help_namespace" title="Wikipedia:Help namespace">Help</a></li> <li><a href="/wiki/Wikipedia:Portal" title="Wikipedia:Portal">Portal</a></li> <li><a href="/wiki/Wikipedia:Project_namespace" title="Wikipedia:Project namespace">Project/Wikipedia</a></li> <li><a href="/wiki/Help:Talk_pages" title="Help:Talk pages">Talk</a> <ul><li><a href="/wiki/Help:Archiving_a_talk_page" title="Help:Archiving a talk page">Archiving</a> <ul><li><a href="/wiki/Help:Archiving_(plain_and_simple)" title="Help:Archiving (plain and simple)">Simple</a></li></ul></li></ul></li> <li><a href="/wiki/Wikipedia:Template_namespace" title="Wikipedia:Template namespace">Template</a></li> <li><a href="/wiki/Wikipedia:User_pages" title="Wikipedia:User pages">User</a> <ul><li><a href="/wiki/Wikipedia:User_page_design_guide" title="Wikipedia:User page design guide">User page design</a></li></ul></li> <li><a href="/wiki/Help:MediaWiki_namespace" title="Help:MediaWiki namespace">MediaWiki</a> <ul><li><a href="/wiki/Wikipedia:Bug_reports_and_feature_requests" title="Wikipedia:Bug reports and feature requests">Bug reports and feature requests</a></li> <li><a href="https://www.mediawiki.org/wiki/Extension:TimedMediaHandler" class="extiw" title="mw:Extension:TimedMediaHandler">TimedMediaHandler extension</a></li></ul></li> <li><a href="/wiki/Wikipedia:Lua" title="Wikipedia:Lua">Module</a></li> <li><a href="/wiki/Help:Special_page" title="Help:Special page">Special</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="text-align: center;;width:1%"><a href="/wiki/HTML" title="HTML">HTML</a> and <a href="/wiki/CSS" title="CSS">CSS</a></th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Help:Cascading_Style_Sheets" title="Help:Cascading Style Sheets">Cascading Style Sheets</a></li> <li><a href="/wiki/Help:HTML_in_wikitext" title="Help:HTML in wikitext">HTML in wikitext</a></li> <li><a href="/wiki/Wikipedia:Catalogue_of_CSS_classes" title="Wikipedia:Catalogue of CSS classes">Catalogue of CSS classes</a></li> <li><a href="/wiki/Wikipedia:Common.js_and_common.css" title="Wikipedia:Common.js and common.css">Common.js and common.css</a></li> <li><a href="/wiki/Template:Mxt/User_CSS_for_a_monospaced_coding_font" title="Template:Mxt/User CSS for a monospaced coding font">User CSS for monospaced coding font</a></li> <li><a href="/wiki/Wikipedia:WikiProject_Microformats/classes" title="Wikipedia:WikiProject Microformats/classes">Classes in microformats</a></li> <li><a href="/wiki/Help:Markup_validation" title="Help:Markup validation">Markup validation</a></li> <li><a href="/wiki/Wikipedia:Span_tags" title="Wikipedia:Span tags">Span tags</a></li> <li><a href="/wiki/Help:Useful_styles" title="Help:Useful styles">Useful styles</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="text-align: center;;width:1%"><a href="/wiki/Wikipedia:Customisation" title="Wikipedia:Customisation">Customisation</a><br />and tools</th><td class="navbox-list-with-group navbox-list navbox-even" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Help:Preferences" title="Help:Preferences">Preferences</a></li> <li><a href="/wiki/Wikipedia:Gadget" title="Wikipedia:Gadget">Gadgets</a></li> <li><a href="/wiki/Wikipedia:Skin" title="Wikipedia:Skin">Skins</a></li> <li><a href="/wiki/Help:Citation_tools" title="Help:Citation tools">Citation tools</a></li> <li><a href="/wiki/Wikipedia:Cleaning_up_vandalism/Tools" title="Wikipedia:Cleaning up vandalism/Tools">Cleaning up vandalism tools</a></li> <li><a href="/wiki/Wikipedia:Customizing_watchlists" title="Wikipedia:Customizing watchlists">Customizing watchlists</a> <ul><li><a href="/wiki/Help:Hide_Pages_in_Watchlist" title="Help:Hide Pages in Watchlist">Hide pages</a></li></ul></li> <li><a href="/wiki/Wikipedia:Scripts" title="Wikipedia:Scripts">IRC Scripts</a></li> <li><a href="/wiki/Wikipedia:User_scripts" title="Wikipedia:User scripts">User scripts</a> <ul><li><a href="/wiki/Wikipedia:User_scripts/Guide" title="Wikipedia:User scripts/Guide">Guide</a></li> <li><a href="/wiki/Wikipedia:User_scripts/List" title="Wikipedia:User scripts/List">List</a></li> <li><a href="/wiki/Wikipedia:User_scripts/Techniques" title="Wikipedia:User scripts/Techniques">Techniques</a></li></ul></li> <li><a href="/wiki/Help:User_style" title="Help:User style">User style</a></li> <li><a href="/wiki/Wikipedia:Tools" title="Wikipedia:Tools">Tools</a> <ul><li><a href="/wiki/Wikipedia:Tools/Alternative_browsing" title="Wikipedia:Tools/Alternative browsing">Alternative browsing</a></li> <li><a href="/wiki/Wikipedia:Tools/Browser_tools" title="Wikipedia:Tools/Browser tools">Browser tools</a></li> <li><a href="/wiki/Wikipedia:Tools/Editing_tools" title="Wikipedia:Tools/Editing tools">Editing tools</a></li> <li><a href="/wiki/Wikipedia:Tools/Navigation_shortcuts" title="Wikipedia:Tools/Navigation shortcuts">Navigation shortcuts</a></li> <li><a href="/wiki/Wikipedia:Tools/Optimum_tool_set" title="Wikipedia:Tools/Optimum tool set">Optimum tool set</a></li></ul></li> <li><a href="/wiki/Wikipedia:Wikimedia_Cloud_Services" title="Wikipedia:Wikimedia Cloud Services">Wikimedia Cloud Services</a></li> <li><a href="https://www.mediawiki.org/wiki/Beta_Features" class="extiw" title="mw:Beta Features">Beta Features at MediaWiki</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="text-align: center;;width:1%">Automated editing</th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Wikipedia:WikiProject_Articles_for_creation/Helper_script" title="Wikipedia:WikiProject Articles for creation/Helper script">AfC helper script</a></li> <li><a href="/wiki/Wikipedia:AntiVandal" title="Wikipedia:AntiVandal">AntiVandal</a></li> <li><a href="/wiki/Wikipedia:AutoWikiBrowser" title="Wikipedia:AutoWikiBrowser">AutoWikiBrowser</a></li> <li><a href="/wiki/Wikipedia:Bots" title="Wikipedia:Bots">Bots</a> <ul><li><a href="/wiki/Help:Creating_a_bot" title="Help:Creating a bot">Creating</a></li> <li><a href="/wiki/Wikipedia:History_of_Wikipedia_bots" title="Wikipedia:History of Wikipedia bots">history</a></li></ul></li> <li><a href="/wiki/Wikipedia:HotCat" title="Wikipedia:HotCat">HotCat</a></li> <li><a href="/wiki/Wikipedia:Huggle" title="Wikipedia:Huggle">Huggle</a></li> <li><a href="/wiki/Wikipedia:Tools/Navigation_popups" title="Wikipedia:Tools/Navigation popups">Navigation popups</a></li> <li><a href="/wiki/Wikipedia:RedWarn" title="Wikipedia:RedWarn">RedWarn</a></li> <li><a href="/wiki/Wikipedia:Twinkle" title="Wikipedia:Twinkle">Twinkle</a></li> <li><a href="/wiki/Wikipedia:Ultraviolet" title="Wikipedia:Ultraviolet">Ultraviolet</a></li> <li><a href="/wiki/Wikipedia:WPCleaner" title="Wikipedia:WPCleaner">WPCleaner</a></li> <li>Inactive <ul><li><a href="/wiki/Wikipedia:Igloo" title="Wikipedia:Igloo">igloo</a></li> <li><a href="/wiki/Wikipedia:STiki" title="Wikipedia:STiki">STiki</a></li></ul></li></ul> </div></td></tr><tr><td class="navbox-abovebelow" colspan="2" style="text-align: center;"><div> <ul><li>See also: <b><a href="/wiki/Category:Wikipedia_how-to" title="Category:Wikipedia how-to">Category:Wikipedia how-to</a></b></li> <li><b><a href="/wiki/Category:Wikipedia_information_pages" title="Category:Wikipedia information pages">Category:Wikipedia information pages</a></b><br />Further navigation at: <a href="/wiki/Template:Wikipedia_help_pages" title="Template:Wikipedia help pages">Help pages</a> <ul><li><a href="/wiki/Template:Administrators%27_guide" title="Template:Administrators' guide">Administrators</a></li></ul></li> <li><a href="/wiki/Wikipedia:WikiProject_Accessibility/Navigation_menu" title="Wikipedia:WikiProject Accessibility/Navigation menu">Accessibility</a></li> <li><a href="/wiki/Template:Wikipedia_accounts" title="Template:Wikipedia accounts">Accounts</a></li> <li><a href="/wiki/Template:Botnav" title="Template:Botnav">Bots</a></li> <li><a href="/wiki/Template:Wikipedia_referencing" title="Template:Wikipedia referencing">Referencing</a> <ul><li><a href="/wiki/Template:Citation_metadata_navbox" title="Template:Citation metadata navbox">Citation metadata</a></li></ul></li> <li><a href="/wiki/Template:Wikipedia_templates" title="Template:Wikipedia templates">Templates</a></li> <li><a href="/wiki/Wikipedia:User_scripts/Navbox" title="Wikipedia:User scripts/Navbox">User scripts</a></li></ul> </div></td></tr></tbody></table></div> <div class="navbox-styles"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1129693374"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1236075235"></div><div role="navigation" class="navbox" aria-labelledby="Wikipedia_templates" style="padding:3px"><table class="nowraplinks hlist mw-collapsible autocollapse navbox-inner" style="border-spacing:0;background:transparent;color:inherit"><tbody><tr><th scope="col" class="navbox-title" colspan="2"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1129693374"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1239400231"><div class="navbar plainlinks hlist navbar-mini"><ul><li class="nv-view"><a href="/wiki/Template:Wikipedia_templates" title="Template:Wikipedia templates"><abbr title="View this template">v</abbr></a></li><li class="nv-talk"><a href="/wiki/Template_talk:Wikipedia_templates" title="Template talk:Wikipedia templates"><abbr title="Discuss this template">t</abbr></a></li><li class="nv-edit"><a href="/wiki/Special:EditPage/Template:Wikipedia_templates" title="Special:EditPage/Template:Wikipedia templates"><abbr title="Edit this template">e</abbr></a></li></ul></div><div id="Wikipedia_templates" style="font-size:114%;margin:0 4em"><a href="/wiki/Wikipedia:Template_index" title="Wikipedia:Template index">Wikipedia templates</a></div></th></tr><tr><th scope="row" class="navbox-group" style="width:1%">Main namespace</th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Wikipedia:Template_index/General" title="Wikipedia:Template index/General">General</a></li> <li><a href="/wiki/Wikipedia:Template_index/Cleanup" title="Wikipedia:Template index/Cleanup">Cleanup</a> <ul><li><a href="/wiki/Wikipedia:Template_index/Cleanup/Verifiability_and_sources" title="Wikipedia:Template index/Cleanup/Verifiability and sources">Verifiability and sources</a></li></ul></li> <li><a href="/wiki/Wikipedia:Template_index/Disputes" title="Wikipedia:Template index/Disputes">Disputes</a></li> <li><a href="/wiki/Wikipedia:Hatnote" title="Wikipedia:Hatnote">Hatnotes</a></li> <li><a href="/wiki/Wikipedia:List_of_infoboxes" title="Wikipedia:List of infoboxes">Infoboxes</a></li> <li><a href="/wiki/Wikipedia:Template_index/Links" title="Wikipedia:Template index/Links">Links</a> <ul><li><a href="/wiki/Category:External_link_templates" title="Category:External link templates">External link templates</a></li> <li><a href="/wiki/Wikipedia:Inline_templates_linking_country_articles" title="Wikipedia:Inline templates linking country articles">Linking country articles</a></li></ul></li> <li><a href="/wiki/Wikipedia:Template_index/Lists" title="Wikipedia:Template index/Lists">Lists</a></li> <li><a href="/wiki/Wikipedia:Template_index/Main_page_and_alternatives" title="Wikipedia:Template index/Main page and alternatives">Main page</a></li> <li><a href="/wiki/Wikipedia:Template_index/Section" title="Wikipedia:Template index/Section">Section</a></li> <li><a href="/wiki/Wikipedia:Template_index/Sources_of_articles" title="Wikipedia:Template index/Sources of articles">Sources of articles</a> <ul><li><a href="/wiki/Wikipedia:Template_index/Sources_of_articles/Citation_quick_reference" title="Wikipedia:Template index/Sources of articles/Citation quick reference">Quick reference</a></li></ul></li> <li><a href="/wiki/Wikipedia:Template_index/Standard_boxes" title="Wikipedia:Template index/Standard boxes">Standard boxes</a></li> <li><a href="/wiki/Wikipedia:WikiProject_Stub_sorting/Stub_types" title="Wikipedia:WikiProject Stub sorting/Stub types">Stub types</a></li> <li><a href="/wiki/Wikipedia:Template_index/Translation" title="Wikipedia:Template index/Translation">Translation</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Other namespaces</th><td class="navbox-list-with-group navbox-list navbox-even" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Wikipedia:Template_index/Compact_tables_of_contents" title="Wikipedia:Template index/Compact tables of contents">Compact TOC</a></li> <li><a href="/wiki/Wikipedia:Template_index/Category_namespace" title="Wikipedia:Template index/Category namespace">Category</a></li> <li><a href="/wiki/Wikipedia:Template_index/File_namespace" title="Wikipedia:Template index/File namespace">File</a></li> <li><a href="/wiki/Wikipedia:Template_index/Talk_namespace" title="Wikipedia:Template index/Talk namespace">Talk</a></li> <li><a href="/wiki/Wikipedia:Template_index/Template_namespace" title="Wikipedia:Template index/Template namespace">Template</a></li> <li><a href="/wiki/Wikipedia:Template_index/User_namespace" title="Wikipedia:Template index/User namespace">User</a> <ul><li><a href="/wiki/Wikipedia:Userboxes" title="Wikipedia:Userboxes">Userboxes</a></li></ul></li> <li><a href="/wiki/Wikipedia:Template_index/User_talk_namespace" title="Wikipedia:Template index/User talk namespace">User talk</a></li> <li><a href="/wiki/Wikipedia:Template_index/Wikipedia_namespace" title="Wikipedia:Template index/Wikipedia namespace">Wikipedia</a> <ul><li><a href="/wiki/Wikipedia:Template_index/WikiProject_banners" title="Wikipedia:Template index/WikiProject banners">WikiProject banners</a></li></ul></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">All namespaces</th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Wikipedia:Template_index/Deletion" title="Wikipedia:Template index/Deletion">Deletion</a> <ul><li><a href="/wiki/Wikipedia:Template_index/Speedy_deletion" title="Wikipedia:Template index/Speedy deletion">Speedy</a></li></ul></li> <li><a href="/wiki/Wikipedia:Template_index/Format" title="Wikipedia:Template index/Format">Formatting</a></li> <li><a href="/wiki/Wikipedia:Template_index/Maintenance" title="Wikipedia:Template index/Maintenance">Maintenance</a></li> <li><a href="/wiki/Wikipedia:Template_index/Merging" title="Wikipedia:Template index/Merging">Merging</a></li> <li><a href="/wiki/Wikipedia:Template_index/Moving" title="Wikipedia:Template index/Moving">Moving</a> <ul><li><a href="/wiki/Wikipedia:Template_index/Moving/Requested" title="Wikipedia:Template index/Moving/Requested">Requested</a></li></ul></li> <li><a href="/wiki/Wikipedia:Navigation_template" title="Wikipedia:Navigation template">Navigation</a></li> <li><a href="/wiki/Wikipedia:Template_index/Redirect_pages" title="Wikipedia:Template index/Redirect pages">Redirect pages</a> <ul><li><a href="/wiki/Template:R_template_index" title="Template:R template index">Functional index</a></li> <li><a href="/wiki/Wikipedia:Template_index/Redirect_language_codes" title="Wikipedia:Template index/Redirect language codes">Language codes</a></li></ul></li> <li><a href="/wiki/Wikipedia:Template_index/Splitting" title="Wikipedia:Template index/Splitting">Splitting</a></li> <li><a href="/wiki/Wikipedia:Template_index/Sister_projects" title="Wikipedia:Template index/Sister projects">Wikimedia sister projects</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Navboxes<br />with templates</th><td class="navbox-list-with-group navbox-list navbox-even" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Template:Warchivenav" class="mw-redirect" title="Template:Warchivenav">Archive</a></li> <li><a href="/wiki/Template:Afd_see_also_documentation" title="Template:Afd see also documentation">Articles for deletion</a></li> <li><a href="/wiki/Template:Birth,_death_and_age_templates" title="Template:Birth, death and age templates">Birth, death and age</a></li> <li><a href="/wiki/Template:Button_templates" title="Template:Button templates">Button</a></li> <li><a href="/wiki/Template:Other_category-header_templates" title="Template:Other category-header templates">Category header</a></li> <li><a href="/wiki/Template:Citation_and_verifiability_article_maintenance_templates" title="Template:Citation and verifiability article maintenance templates">Citation and verifiability</a></li> <li><a href="/wiki/Template:Citation_Style_1" title="Template:Citation Style 1">Citation Style 1</a></li> <li><a href="/wiki/Template:DRV_see_also_documentation" title="Template:DRV see also documentation">Deletion review</a></li> <li><a href="/wiki/Template:Editnotice_templates" title="Template:Editnotice templates">Editnotice</a></li> <li><a href="/wiki/Template:Hatnote_templates" title="Template:Hatnote templates">Hatnotes</a></li> <li><a href="/wiki/Template:Help_desk_templates_navbox" title="Template:Help desk templates navbox">Help desk</a></li> <li><a href="/wiki/Template:Inline_cleanup_tags" title="Template:Inline cleanup tags">Inline cleanup</a></li> <li><a href="/wiki/Template:Introduction_cleanup_maintenance_templates" title="Template:Introduction cleanup maintenance templates">Introduction cleanup</a></li> <li><a href="/wiki/Template:IPA_templates" title="Template:IPA templates">IPA</a></li> <li><a href="/wiki/Template:Math_templates" title="Template:Math templates">Math</a></li> <li><a href="/wiki/Template:Notice_and_warning_templates" title="Template:Notice and warning templates">Notice and warnings</a></li> <li><a href="/wiki/Template:Organization_infoboxes" title="Template:Organization infoboxes">Organization infoboxes</a></li> <li><a href="/wiki/Template:Pam_see_also_documentation" title="Template:Pam see also documentation">Proposed article mergers</a></li> <li><a href="/wiki/Template:Protection_templates" title="Template:Protection templates">Protection</a></li> <li><a href="/wiki/Template:Quotation_templates" title="Template:Quotation templates">Quotation</a></li> <li><a href="/wiki/Template:R_template_index" title="Template:R template index">Redirects</a></li> <li><a href="/wiki/Template:Search_templates" title="Template:Search templates">Search</a></li> <li><a href="/wiki/Template:Semantic_markup_templates" title="Template:Semantic markup templates">Semantics</a></li> <li><a href="/wiki/Template:Speedy_deletion_navbox" title="Template:Speedy deletion navbox">Speedy deletion</a> <ul><li><a href="/wiki/Template:Speedy_deletion_notices" title="Template:Speedy deletion notices">Notices</a></li></ul></li> <li><a href="/wiki/Template:String-handling_templates" title="Template:String-handling templates">String-handling</a></li> <li><a href="/wiki/Template:Sup_and_sub-related_templates" title="Template:Sup and sub-related templates">Sup and sub-related</a></li> <li><a href="/wiki/Template:Top_icon_templates" title="Template:Top icon templates">Top icon</a></li> <li><a href="/wiki/Template:Transwiki_maintenance" title="Template:Transwiki maintenance">Transwiki maintenance</a></li> <li><a href="/wiki/Template:Unicode_templates" title="Template:Unicode templates">Unicode</a></li> <li><a href="/wiki/Template:User_talk_pages" class="mw-redirect" title="Template:User talk pages">User talk pages</a></li> <li><a href="/wiki/Template:User_noticeboard_notices" title="Template:User noticeboard notices">User noticeboard notices</a></li> <li><a href="/wiki/Template:WikiProject_Userboxes_navbox" title="Template:WikiProject Userboxes navbox">Userboxes</a> <ul><li><a href="/wiki/Template:User_rights_templates" title="Template:User rights templates">User rights</a></li></ul></li> <li><a href="/wiki/Template:Userspace_linking_templates" title="Template:Userspace linking templates">Userspace linking</a></li> <li><a href="/wiki/Template:Userspace_Disclaimers" class="mw-redirect" title="Template:Userspace Disclaimers">Userspace Disclaimers</a></li> <li><a href="/wiki/Template:Wikibreak_templates" title="Template:Wikibreak templates">Wikibreak</a></li> <li><a href="/wiki/Template:WikiLove_see_also" title="Template:WikiLove see also">WikiLove</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Inline images</th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Template:Icon" title="Template:Icon">Wikipedia icons</a></li> <li><a href="/wiki/Wikipedia:List_of_discussion_templates" title="Wikipedia:List of discussion templates">Discussion icons</a></li> <li><a href="/wiki/Template:Done/See_also" title="Template:Done/See also">Comment icons</a></li> <li><a href="/wiki/Template:Emoji" title="Template:Emoji">Emoji</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Help pages</th><td class="navbox-list-with-group navbox-list navbox-even" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Wikipedia:Template_documentation" title="Wikipedia:Template documentation">Template documentation</a></li> <li><a href="/wiki/Wikipedia:Template_index/Examples" title="Wikipedia:Template index/Examples">Examples of templates</a></li> <li><a href="/wiki/Help:Maintenance_template_removal" title="Help:Maintenance template removal">Maintenance template removal</a></li> <li><a href="/wiki/Wikipedia:Requested_templates" title="Wikipedia:Requested templates">Requested templates</a></li> <li><a href="/wiki/Help:Template" title="Help:Template">Template help</a> <ul><li><a href="/wiki/Help:A_quick_guide_to_templates" title="Help:A quick guide to templates">Quick guide</a></li></ul></li> <li><a href="/wiki/Wikipedia:Template_namespace" title="Wikipedia:Template namespace">Template namespace</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Related topics</th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Wikipedia:WikiProject_Templates" title="Wikipedia:WikiProject Templates">WikiProject Templates</a></li> <li><a href="/wiki/Wikipedia:Template_index" title="Wikipedia:Template index">Index</a> <ul><li><a href="/wiki/Category:Wikipedia_templates" title="Category:Wikipedia templates">Category</a></li></ul></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Search</th><td class="navbox-list-with-group navbox-list navbox-even" style="width:100%;padding:0"><div style="padding:0 0.25em"><div class="mw-inputbox-centered" style=""><form name="searchbox" class="searchbox mw-inputbox-form-inline" action="/wiki/Special:Search" id="style-wide-searchbox"><div class="cdx-text-input"><input class="mw-searchInput searchboxInput cdx-text-input__input" name="search" placeholder="e.g. Infoboxes" size="25" dir="ltr" /></div> <input type="hidden" name="ns10" value="1" id="mw-inputbox-ns10-style-wide-searchbox0.093842655221" checked="" /> <input type="submit" name="fulltext" value="Search templates" class="cdx-button" /><input type="hidden" value="Search" name="fulltext" /></form></div></div></td></tr><tr><td class="navbox-abovebelow" colspan="2" style="font-weight:bold;"><div> <ul><li><span class="noviewer" typeof="mw:File"><span title="Category"><img alt="" src="//upload.wikimedia.org/wikipedia/en/thumb/9/96/Symbol_category_class.svg/16px-Symbol_category_class.svg.png" decoding="async" width="16" height="16" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/en/thumb/9/96/Symbol_category_class.svg/23px-Symbol_category_class.svg.png 1.5x, //upload.wikimedia.org/wikipedia/en/thumb/9/96/Symbol_category_class.svg/31px-Symbol_category_class.svg.png 2x" data-file-width="180" data-file-height="185" /></span></span> <a href="/wiki/Category:Wikipedia_templates" title="Category:Wikipedia templates">Category</a></li></ul> </div></td></tr></tbody></table></div> <div class="documentation-clear"></div> </div> <div role="note" class="documentation-metadata plainlinks">The above <a href="/wiki/Wikipedia:Template_documentation" title="Wikipedia:Template documentation">documentation</a> is <a href="/wiki/Help:Transclusion" title="Help:Transclusion">transcluded</a> from <a href="/wiki/Module:WikiProject_banner/doc" title="Module:WikiProject banner/doc">Module:WikiProject banner/doc</a>. <span class="documentation-toolbar">(<a href="/wiki/Special:EditPage/Module:WikiProject_banner/doc" title="Special:EditPage/Module:WikiProject banner/doc">edit</a> | <a href="/wiki/Special:PageHistory/Module:WikiProject_banner/doc" title="Special:PageHistory/Module:WikiProject banner/doc">history</a>)</span><br />Editors can experiment in this module's <a class="mw-selflink selflink">sandbox</a> <span class="documentation-toolbar">(<a href="/wiki/Special:EditPage/Module:WikiProject_banner/sandbox" title="Special:EditPage/Module:WikiProject banner/sandbox">edit</a> | <a class="external text" href="https://en.wikipedia.org/w/index.php?title=Special%3AComparePages&page1=Module%3AWikiProject+banner&page2=Module%3AWikiProject+banner%2Fsandbox">diff</a>)</span> and <a href="/wiki/Module:WikiProject_banner/testcases" title="Module:WikiProject banner/testcases">testcases</a> <span class="documentation-toolbar">(<a href="/wiki/Special:EditPage/Module:WikiProject_banner/testcases" title="Special:EditPage/Module:WikiProject banner/testcases">edit</a> | <a href="/wiki/Module_talk:WikiProject_banner/testcases" title="Module talk:WikiProject banner/testcases">run</a>)</span> pages.<br />Add categories to the <a href="/wiki/Module:WikiProject_banner/doc" title="Module:WikiProject banner/doc">/doc</a> subpage. <a href="/wiki/Special:PrefixIndex/Module:WikiProject_banner/" title="Special:PrefixIndex/Module:WikiProject banner/">Subpages of this module</a>.</div></div><div class="mw-highlight mw-highlight-lang-lua mw-content-ltr mw-highlight-lines" dir="ltr"><pre><span></span><span id="L-1"><a href="#L-1"><span class="linenos" data-line="1"></span></a><span class="nb">require</span><span class="p">(</span><span class="s1">'strict'</span><span class="p">)</span> </span><span id="L-2"><a href="#L-2"><span class="linenos" data-line="2"></span></a><span class="kd">local</span> <span class="n">p</span> <span class="o">=</span> <span class="p">{}</span> </span><span id="L-3"><a href="#L-3"><span class="linenos" data-line="3"></span></a><span class="kd">local</span> <span class="n">sandbox</span> <span class="o">=</span> <span class="s1">'/sandbox'</span> <span class="c1">-- BE SURE TO COMMENT OUT this definition when deploying to live</span> </span><span id="L-4"><a href="#L-4"><span class="linenos" data-line="4"></span></a><span class="kd">local</span> <span class="n">cfg</span> <span class="o">=</span> <span class="n">mw</span><span class="p">.</span><span class="n">loadData</span><span class="p">(</span><span class="s1">'Module:WikiProject banner/config'</span> <span class="o">..</span> <span class="p">(</span><span class="n">sandbox</span> <span class="ow">or</span> <span class="s1">''</span><span class="p">))</span> </span><span id="L-5"><a href="#L-5"><span class="linenos" data-line="5"></span></a><span class="kd">local</span> <span class="n">auxiliary</span> <span class="o">=</span> <span class="n">cfg</span><span class="p">.</span><span class="n">auxiliary_module</span> <span class="o">..</span> <span class="p">(</span><span class="n">sandbox</span> <span class="ow">or</span> <span class="s1">''</span><span class="p">)</span> </span><span id="L-6"><a href="#L-6"><span class="linenos" data-line="6"></span></a><span class="kd">local</span> <span class="n">args_module</span> <span class="o">=</span> <span class="nb">require</span><span class="p">(</span><span class="s1">'Module:Arguments'</span><span class="p">)</span> </span><span id="L-7"><a href="#L-7"><span class="linenos" data-line="7"></span></a><span class="kd">local</span> <span class="n">mbox</span> <span class="o">=</span> <span class="nb">require</span><span class="p">(</span><span class="s1">'Module:Message box'</span><span class="p">).</span><span class="n">main</span> </span><span id="L-8"><a href="#L-8"><span class="linenos" data-line="8"></span></a><span class="kd">local</span> <span class="n">yesno</span> <span class="o">=</span> <span class="nb">require</span><span class="p">(</span><span class="s1">'Module:Yesno'</span><span class="p">)</span> </span><span id="L-9"><a href="#L-9"><span class="linenos" data-line="9"></span></a><span class="kd">local</span> <span class="n">frame</span> <span class="o">=</span> <span class="n">mw</span><span class="p">.</span><span class="n">getCurrentFrame</span><span class="p">()</span> </span><span id="L-10"><a href="#L-10"><span class="linenos" data-line="10"></span></a><span class="kd">local</span> <span class="n">lang</span> <span class="o">=</span> <span class="n">mw</span><span class="p">.</span><span class="n">getLanguage</span><span class="p">(</span><span class="n">cfg</span><span class="p">.</span><span class="n">language</span><span class="p">)</span> </span><span id="L-11"><a href="#L-11"><span class="linenos" data-line="11"></span></a><span class="kd">local</span> <span class="n">current_title</span> <span class="o">=</span> <span class="n">mw</span><span class="p">.</span><span class="n">title</span><span class="p">.</span><span class="n">getCurrentTitle</span><span class="p">()</span> </span><span id="L-12"><a href="#L-12"><span class="linenos" data-line="12"></span></a><span class="kd">local</span> <span class="n">parameter_format</span> <span class="o">=</span> <span class="kr">function</span><span class="p">(</span><span class="n">parameter</span><span class="p">,</span> <span class="n">value</span><span class="p">)</span> </span><span id="L-13"><a href="#L-13"><span class="linenos" data-line="13"></span></a> <span class="kr">return</span> <span class="n">frame</span><span class="p">:</span><span class="n">expandTemplate</span><span class="p">{</span><span class="n">title</span><span class="o">=</span><span class="s1">'para'</span><span class="p">,</span> <span class="n">args</span><span class="o">=</span><span class="p">{</span><span class="n">parameter</span><span class="p">,</span> <span class="n">value</span> <span class="ow">or</span> <span class="s1">''</span><span class="p">}}</span> </span><span id="L-14"><a href="#L-14"><span class="linenos" data-line="14"></span></a><span class="kr">end</span> </span><span id="L-15"><a href="#L-15"><span class="linenos" data-line="15"></span></a> </span><span id="L-16"><a href="#L-16"><span class="linenos" data-line="16"></span></a><span class="kd">local</span> <span class="n">wikilink</span> <span class="o">=</span> <span class="kr">function</span><span class="p">(</span><span class="n">link</span><span class="p">,</span> <span class="n">display</span><span class="p">)</span> </span><span id="L-17"><a href="#L-17"><span class="linenos" data-line="17"></span></a> <span class="kr">if</span> <span class="n">link</span> <span class="kr">then</span> </span><span id="L-18"><a href="#L-18"><span class="linenos" data-line="18"></span></a> <span class="kr">return</span> <span class="n">display</span> <span class="ow">and</span> <span class="s1">'[['</span><span class="o">..</span><span class="n">link</span><span class="o">..</span><span class="s1">'|'</span><span class="o">..</span><span class="n">display</span><span class="o">..</span><span class="s1">']]'</span> <span class="ow">or</span> <span class="s1">'[['</span><span class="o">..</span><span class="n">link</span><span class="o">..</span><span class="s1">']]'</span> </span><span id="L-19"><a href="#L-19"><span class="linenos" data-line="19"></span></a> <span class="kr">else</span> </span><span id="L-20"><a href="#L-20"><span class="linenos" data-line="20"></span></a> <span class="kr">return</span> <span class="n">display</span> <span class="ow">or</span> <span class="s1">''</span> </span><span id="L-21"><a href="#L-21"><span class="linenos" data-line="21"></span></a> <span class="kr">end</span> </span><span id="L-22"><a href="#L-22"><span class="linenos" data-line="22"></span></a><span class="kr">end</span> </span><span id="L-23"><a href="#L-23"><span class="linenos" data-line="23"></span></a> </span><span id="L-24"><a href="#L-24"><span class="linenos" data-line="24"></span></a><span class="kd">local</span> <span class="n">display_error</span> <span class="o">=</span> <span class="kr">function</span><span class="p">(</span><span class="n">text</span><span class="p">)</span> </span><span id="L-25"><a href="#L-25"><span class="linenos" data-line="25"></span></a> <span class="kd">local</span> <span class="n">span</span> <span class="o">=</span> <span class="n">mw</span><span class="p">.</span><span class="n">html</span><span class="p">.</span><span class="n">create</span><span class="p">(</span><span class="s1">'div'</span><span class="p">)</span> </span><span id="L-26"><a href="#L-26"><span class="linenos" data-line="26"></span></a> <span class="p">:</span><span class="n">addClass</span><span class="p">(</span><span class="s1">'error'</span><span class="p">)</span> </span><span id="L-27"><a href="#L-27"><span class="linenos" data-line="27"></span></a> <span class="p">:</span><span class="n">wikitext</span><span class="p">(</span><span class="n">text</span><span class="p">)</span> </span><span id="L-28"><a href="#L-28"><span class="linenos" data-line="28"></span></a> <span class="kr">return</span> <span class="nb">tostring</span><span class="p">(</span><span class="n">span</span><span class="p">)</span> </span><span id="L-29"><a href="#L-29"><span class="linenos" data-line="29"></span></a><span class="kr">end</span> </span><span id="L-30"><a href="#L-30"><span class="linenos" data-line="30"></span></a> </span><span id="L-31"><a href="#L-31"><span class="linenos" data-line="31"></span></a><span class="kd">local</span> <span class="n">image</span> <span class="o">=</span> <span class="kr">function</span><span class="p">(</span><span class="n">image_name</span><span class="p">,</span> <span class="n">size</span><span class="p">,</span> <span class="n">alt</span><span class="p">,</span> <span class="n">position</span><span class="p">)</span> </span><span id="L-32"><a href="#L-32"><span class="linenos" data-line="32"></span></a> <span class="kr">return</span> <span class="n">image_name</span> <span class="ow">and</span> <span class="s1">'[[File:'</span> </span><span id="L-33"><a href="#L-33"><span class="linenos" data-line="33"></span></a> <span class="o">..</span> <span class="n">image_name</span> </span><span id="L-34"><a href="#L-34"><span class="linenos" data-line="34"></span></a> <span class="o">..</span> <span class="p">(</span><span class="n">size</span> <span class="ow">and</span> <span class="s1">'|'</span> <span class="o">..</span> <span class="n">size</span> <span class="ow">or</span> <span class="s1">''</span><span class="p">)</span> </span><span id="L-35"><a href="#L-35"><span class="linenos" data-line="35"></span></a> <span class="o">..</span> <span class="p">(</span><span class="n">position</span> <span class="ow">and</span> <span class="s1">'|'</span> <span class="o">..</span> <span class="n">position</span> <span class="ow">or</span> <span class="s1">''</span><span class="p">)</span> </span><span id="L-36"><a href="#L-36"><span class="linenos" data-line="36"></span></a> <span class="o">..</span> <span class="p">(</span><span class="n">alt</span> <span class="ow">and</span> <span class="s1">'|alt='</span> <span class="o">..</span> <span class="n">alt</span> <span class="ow">or</span> <span class="s1">''</span><span class="p">)</span> </span><span id="L-37"><a href="#L-37"><span class="linenos" data-line="37"></span></a> <span class="o">..</span> <span class="s1">']]'</span> </span><span id="L-38"><a href="#L-38"><span class="linenos" data-line="38"></span></a><span class="kr">end</span> </span><span id="L-39"><a href="#L-39"><span class="linenos" data-line="39"></span></a> </span><span id="L-40"><a href="#L-40"><span class="linenos" data-line="40"></span></a><span class="kd">local</span> <span class="n">if_exists</span> <span class="o">=</span> <span class="kr">function</span><span class="p">(</span><span class="n">target</span><span class="p">,</span> <span class="n">fallback</span><span class="p">)</span> <span class="c1">-- function to add wikilink if target exists</span> </span><span id="L-41"><a href="#L-41"><span class="linenos" data-line="41"></span></a> <span class="kd">local</span> <span class="n">title</span> <span class="o">=</span> <span class="n">mw</span><span class="p">.</span><span class="n">title</span><span class="p">.</span><span class="n">new</span><span class="p">(</span><span class="n">target</span><span class="p">)</span> </span><span id="L-42"><a href="#L-42"><span class="linenos" data-line="42"></span></a> <span class="kr">if</span> <span class="n">title</span> <span class="ow">and</span> <span class="n">title</span><span class="p">.</span><span class="n">exists</span> <span class="kr">then</span> </span><span id="L-43"><a href="#L-43"><span class="linenos" data-line="43"></span></a> <span class="kr">return</span> <span class="n">wikilink</span><span class="p">(</span><span class="n">target</span><span class="p">)</span> </span><span id="L-44"><a href="#L-44"><span class="linenos" data-line="44"></span></a> <span class="kr">else</span> </span><span id="L-45"><a href="#L-45"><span class="linenos" data-line="45"></span></a> <span class="kr">return</span> <span class="n">fallback</span> <span class="ow">or</span> <span class="n">target</span> </span><span id="L-46"><a href="#L-46"><span class="linenos" data-line="46"></span></a> <span class="kr">end</span> </span><span id="L-47"><a href="#L-47"><span class="linenos" data-line="47"></span></a><span class="kr">end</span> </span><span id="L-48"><a href="#L-48"><span class="linenos" data-line="48"></span></a> </span><span id="L-49"><a href="#L-49"><span class="linenos" data-line="49"></span></a><span class="kd">local</span> <span class="n">isarticle</span> <span class="o">=</span> <span class="kr">function</span><span class="p">(</span><span class="n">class</span><span class="p">)</span> </span><span id="L-50"><a href="#L-50"><span class="linenos" data-line="50"></span></a> <span class="kd">local</span> <span class="n">article</span> <span class="o">=</span> <span class="kc">true</span> </span><span id="L-51"><a href="#L-51"><span class="linenos" data-line="51"></span></a> <span class="kr">for</span> <span class="n">_</span><span class="p">,</span><span class="n">v</span> <span class="kr">in</span> <span class="nb">ipairs</span><span class="p">(</span><span class="n">cfg</span><span class="p">.</span><span class="n">quality</span><span class="p">.</span><span class="n">non_article_classes</span><span class="p">)</span> <span class="kr">do</span> </span><span id="L-52"><a href="#L-52"><span class="linenos" data-line="52"></span></a> <span class="kr">if</span> <span class="n">class</span><span class="o">==</span><span class="n">v</span> <span class="kr">then</span> <span class="c1">-- class matches one of the non-article classes</span> </span><span id="L-53"><a href="#L-53"><span class="linenos" data-line="53"></span></a> <span class="n">article</span> <span class="o">=</span> <span class="kc">false</span> </span><span id="L-54"><a href="#L-54"><span class="linenos" data-line="54"></span></a> <span class="kr">break</span> </span><span id="L-55"><a href="#L-55"><span class="linenos" data-line="55"></span></a> <span class="kr">end</span> </span><span id="L-56"><a href="#L-56"><span class="linenos" data-line="56"></span></a> <span class="kr">end</span> </span><span id="L-57"><a href="#L-57"><span class="linenos" data-line="57"></span></a> <span class="kr">return</span> <span class="n">article</span> </span><span id="L-58"><a href="#L-58"><span class="linenos" data-line="58"></span></a><span class="kr">end</span> </span><span id="L-59"><a href="#L-59"><span class="linenos" data-line="59"></span></a> </span><span id="L-60"><a href="#L-60"><span class="linenos" data-line="60"></span></a><span class="kd">local</span> <span class="n">importance_mask</span> <span class="o">=</span> <span class="kr">function</span><span class="p">(</span><span class="n">raw_importance</span><span class="p">,</span> <span class="n">scale</span><span class="p">,</span> <span class="n">banner_name</span><span class="p">,</span> <span class="n">pagetype</span><span class="p">,</span> <span class="n">class</span><span class="p">)</span> </span><span id="L-61"><a href="#L-61"><span class="linenos" data-line="61"></span></a><span class="c1">---------------------------</span> </span><span id="L-62"><a href="#L-62"><span class="linenos" data-line="62"></span></a><span class="c1">-- Importance mask --------</span> </span><span id="L-63"><a href="#L-63"><span class="linenos" data-line="63"></span></a><span class="c1">---------------------------</span> </span><span id="L-64"><a href="#L-64"><span class="linenos" data-line="64"></span></a><span class="kd">local</span> <span class="n">importance</span> </span><span id="L-65"><a href="#L-65"><span class="linenos" data-line="65"></span></a><span class="kr">if</span> <span class="n">scale</span><span class="o">==</span><span class="s1">'inline'</span> <span class="kr">then</span> <span class="c1">-- pass importance without change</span> </span><span id="L-66"><a href="#L-66"><span class="linenos" data-line="66"></span></a> <span class="n">importance</span> <span class="o">=</span> <span class="n">raw_importance</span> </span><span id="L-67"><a href="#L-67"><span class="linenos" data-line="67"></span></a><span class="kr">elseif</span> <span class="n">scale</span><span class="o">==</span><span class="s1">'subpage'</span> <span class="kr">then</span> </span><span id="L-68"><a href="#L-68"><span class="linenos" data-line="68"></span></a> <span class="kd">local</span> <span class="n">custom_mask</span> <span class="o">=</span> <span class="n">banner_name</span><span class="p">:</span><span class="n">subPageTitle</span><span class="p">(</span><span class="s1">'importance'</span><span class="p">)</span> </span><span id="L-69"><a href="#L-69"><span class="linenos" data-line="69"></span></a> <span class="kr">if</span> <span class="n">custom_mask</span><span class="p">.</span><span class="n">exists</span> <span class="ow">and</span> <span class="o">#</span><span class="n">custom_mask</span><span class="p">:</span><span class="n">getContent</span><span class="p">()</span><span class="o">></span><span class="mi">1</span> <span class="kr">then</span> <span class="c1">-- pass to custom importance mask</span> </span><span id="L-70"><a href="#L-70"><span class="linenos" data-line="70"></span></a> <span class="n">importance</span> <span class="o">=</span> <span class="n">mw</span><span class="p">.</span><span class="n">text</span><span class="p">.</span><span class="n">trim</span><span class="p">(</span><span class="n">frame</span><span class="p">:</span><span class="n">expandTemplate</span><span class="p">{</span> </span><span id="L-71"><a href="#L-71"><span class="linenos" data-line="71"></span></a> <span class="n">title</span> <span class="o">=</span> <span class="n">custom_mask</span><span class="p">.</span><span class="n">prefixedText</span><span class="p">,</span> </span><span id="L-72"><a href="#L-72"><span class="linenos" data-line="72"></span></a> <span class="n">args</span> <span class="o">=</span> <span class="p">{</span> </span><span id="L-73"><a href="#L-73"><span class="linenos" data-line="73"></span></a> <span class="n">importance</span> <span class="o">=</span> <span class="n">raw_importance</span> <span class="ow">or</span> <span class="s1">'¬'</span><span class="p">,</span> </span><span id="L-74"><a href="#L-74"><span class="linenos" data-line="74"></span></a> <span class="n">class</span> <span class="o">=</span> <span class="n">class</span><span class="p">,</span> </span><span id="L-75"><a href="#L-75"><span class="linenos" data-line="75"></span></a> <span class="n">pagetype</span> <span class="o">=</span> <span class="n">pagetype</span> </span><span id="L-76"><a href="#L-76"><span class="linenos" data-line="76"></span></a> <span class="p">}</span> </span><span id="L-77"><a href="#L-77"><span class="linenos" data-line="77"></span></a> <span class="p">})</span> </span><span id="L-78"><a href="#L-78"><span class="linenos" data-line="78"></span></a> <span class="kr">end</span> </span><span id="L-79"><a href="#L-79"><span class="linenos" data-line="79"></span></a><span class="kr">elseif</span> <span class="n">raw_importance</span> <span class="kr">then</span><span class="c1">-- standard importance scale</span> </span><span id="L-80"><a href="#L-80"><span class="linenos" data-line="80"></span></a> <span class="n">importance</span> <span class="o">=</span> <span class="n">cfg</span><span class="p">.</span><span class="n">importance</span><span class="p">.</span><span class="n">na</span> </span><span id="L-81"><a href="#L-81"><span class="linenos" data-line="81"></span></a> <span class="kr">if</span> <span class="n">pagetype</span><span class="o">==</span><span class="s1">'article'</span> <span class="ow">or</span> <span class="n">pagetype</span><span class="o">==</span><span class="s1">'set index article'</span> <span class="ow">or</span> <span class="n">pagetype</span><span class="o">==</span><span class="s1">'redirect'</span> <span class="ow">or</span> <span class="n">pagetype</span><span class="o">==</span><span class="s1">'draft'</span> <span class="kr">then</span> </span><span id="L-82"><a href="#L-82"><span class="linenos" data-line="82"></span></a> <span class="kd">local</span> <span class="n">mask</span> <span class="o">=</span> <span class="n">cfg</span><span class="p">.</span><span class="n">importance</span><span class="p">.</span><span class="n">mask</span> </span><span id="L-83"><a href="#L-83"><span class="linenos" data-line="83"></span></a> <span class="kr">if</span> <span class="n">mask</span><span class="p">[</span><span class="n">raw_importance</span><span class="p">:</span><span class="n">lower</span><span class="p">()]</span> <span class="kr">then</span> <span class="c1">-- valid importance specified</span> </span><span id="L-84"><a href="#L-84"><span class="linenos" data-line="84"></span></a> <span class="n">importance</span> <span class="o">=</span> <span class="n">mask</span><span class="p">[</span><span class="n">raw_importance</span><span class="p">:</span><span class="n">lower</span><span class="p">()]</span> </span><span id="L-85"><a href="#L-85"><span class="linenos" data-line="85"></span></a> <span class="kr">elseif</span> <span class="n">pagetype</span><span class="o">==</span><span class="s1">'article'</span> <span class="ow">or</span> <span class="n">pagetype</span><span class="o">==</span><span class="s1">'set index article'</span> <span class="kr">then</span> <span class="c1">-- unspecified or invalid importance, use "Unknown" for articles</span> </span><span id="L-86"><a href="#L-86"><span class="linenos" data-line="86"></span></a> <span class="n">importance</span> <span class="o">=</span> <span class="n">cfg</span><span class="p">.</span><span class="n">importance</span><span class="p">.</span><span class="n">unknown</span> </span><span id="L-87"><a href="#L-87"><span class="linenos" data-line="87"></span></a> <span class="kr">end</span> </span><span id="L-88"><a href="#L-88"><span class="linenos" data-line="88"></span></a> <span class="kr">end</span> </span><span id="L-89"><a href="#L-89"><span class="linenos" data-line="89"></span></a><span class="kr">end</span> </span><span id="L-90"><a href="#L-90"><span class="linenos" data-line="90"></span></a><span class="kr">return</span> <span class="n">importance</span> </span><span id="L-91"><a href="#L-91"><span class="linenos" data-line="91"></span></a><span class="kr">end</span> </span><span id="L-92"><a href="#L-92"><span class="linenos" data-line="92"></span></a> </span><span id="L-93"><a href="#L-93"><span class="linenos" data-line="93"></span></a><span class="c1">---------------------------</span> </span><span id="L-94"><a href="#L-94"><span class="linenos" data-line="94"></span></a><span class="c1">-- Quality class mask -----</span> </span><span id="L-95"><a href="#L-95"><span class="linenos" data-line="95"></span></a><span class="c1">---------------------------</span> </span><span id="L-96"><a href="#L-96"><span class="linenos" data-line="96"></span></a><span class="n">p</span><span class="p">.</span><span class="n">readarticleclass</span> <span class="o">=</span> <span class="kr">function</span><span class="p">(</span><span class="n">options</span><span class="p">,</span> <span class="n">page</span><span class="p">)</span> <span class="c1">-- used by _main and also Module:Banner shell</span> </span><span id="L-97"><a href="#L-97"><span class="linenos" data-line="97"></span></a> <span class="n">page</span> <span class="o">=</span> <span class="n">page</span> <span class="ow">or</span> <span class="n">current_title</span><span class="p">.</span><span class="n">prefixedText</span> </span><span id="L-98"><a href="#L-98"><span class="linenos" data-line="98"></span></a> <span class="kd">local</span> <span class="n">get_parameter_value</span> <span class="o">=</span> <span class="nb">require</span><span class="p">(</span><span class="s1">'Module:Template parameter value'</span><span class="p">).</span><span class="n">getParameter</span> </span><span id="L-99"><a href="#L-99"><span class="linenos" data-line="99"></span></a> <span class="kd">local</span> <span class="n">success</span><span class="p">,</span> <span class="n">result</span> <span class="o">=</span> <span class="n">get_parameter_value</span><span class="p">(</span><span class="n">page</span><span class="p">,</span> <span class="n">cfg</span><span class="p">.</span><span class="n">banner_shell</span><span class="p">.</span><span class="n">redirects</span><span class="p">,</span> <span class="s1">'class'</span><span class="p">,</span> <span class="n">options</span><span class="p">)</span> </span><span id="L-100"><a href="#L-100"><span class="linenos" data-line="100"></span></a> <span class="kr">return</span> <span class="n">success</span> <span class="ow">and</span> <span class="n">result</span> </span><span id="L-101"><a href="#L-101"><span class="linenos" data-line="101"></span></a> <span class="c1">-- returns FALSE if banner shell template does not exist on page</span> </span><span id="L-102"><a href="#L-102"><span class="linenos" data-line="102"></span></a> <span class="c1">-- returns BLANK if class parameter is not defined or is defined blank</span> </span><span id="L-103"><a href="#L-103"><span class="linenos" data-line="103"></span></a> <span class="c1">-- otherwise returns class parameter</span> </span><span id="L-104"><a href="#L-104"><span class="linenos" data-line="104"></span></a><span class="kr">end</span> </span><span id="L-105"><a href="#L-105"><span class="linenos" data-line="105"></span></a><span class="n">p</span><span class="p">.</span><span class="n">class_mask</span> <span class="o">=</span> <span class="kr">function</span><span class="p">(</span><span class="n">class</span><span class="p">,</span> <span class="n">title</span><span class="p">,</span> <span class="n">FQS</span><span class="p">,</span> <span class="n">pagetype</span><span class="p">,</span> <span class="n">article</span><span class="p">)</span> </span><span id="L-106"><a href="#L-106"><span class="linenos" data-line="106"></span></a> <span class="kd">local</span> <span class="n">resolveFQSgrade</span> <span class="o">=</span> <span class="kr">function</span><span class="p">(</span><span class="n">class</span><span class="p">)</span> </span><span id="L-107"><a href="#L-107"><span class="linenos" data-line="107"></span></a> <span class="kr">return</span> <span class="n">FQS</span> <span class="ow">and</span> <span class="n">lang</span><span class="p">:</span><span class="n">ucfirst</span><span class="p">(</span><span class="n">class</span><span class="p">)</span> <span class="ow">or</span> <span class="s1">'NA'</span> </span><span id="L-108"><a href="#L-108"><span class="linenos" data-line="108"></span></a> <span class="kr">end</span> </span><span id="L-109"><a href="#L-109"><span class="linenos" data-line="109"></span></a> <span class="kd">local</span> <span class="n">out</span> </span><span id="L-110"><a href="#L-110"><span class="linenos" data-line="110"></span></a> <span class="n">title</span> <span class="o">=</span> <span class="n">title</span> <span class="ow">or</span> <span class="n">mw</span><span class="p">.</span><span class="n">title</span><span class="p">.</span><span class="n">getCurrentTitle</span><span class="p">()</span> </span><span id="L-111"><a href="#L-111"><span class="linenos" data-line="111"></span></a> <span class="kd">local</span> <span class="n">ns</span> <span class="o">=</span> <span class="n">title</span><span class="p">.</span><span class="n">namespace</span> </span><span id="L-112"><a href="#L-112"><span class="linenos" data-line="112"></span></a> <span class="n">class</span> <span class="o">=</span> <span class="n">class</span><span class="p">:</span><span class="n">match</span><span class="p">(</span><span class="s1">'^%s*(.-)%s*$'</span><span class="p">):</span><span class="n">lower</span><span class="p">()</span> </span><span id="L-113"><a href="#L-113"><span class="linenos" data-line="113"></span></a> <span class="kr">if</span> <span class="n">pagetype</span><span class="o">==</span><span class="s1">'redirect'</span> <span class="ow">or</span> <span class="n">pagetype</span><span class="o">==</span><span class="s1">'soft redirect'</span> <span class="kr">then</span> </span><span id="L-114"><a href="#L-114"><span class="linenos" data-line="114"></span></a> <span class="n">out</span> <span class="o">=</span> <span class="n">resolveFQSgrade</span><span class="p">(</span><span class="s1">'redirect'</span><span class="p">)</span> </span><span id="L-115"><a href="#L-115"><span class="linenos" data-line="115"></span></a> <span class="kr">elseif</span> <span class="n">pagetype</span><span class="o">==</span><span class="s1">'disambiguation page'</span> <span class="kr">then</span> </span><span id="L-116"><a href="#L-116"><span class="linenos" data-line="116"></span></a> <span class="n">out</span> <span class="o">=</span> <span class="n">resolveFQSgrade</span><span class="p">(</span><span class="s1">'disambig'</span><span class="p">)</span> </span><span id="L-117"><a href="#L-117"><span class="linenos" data-line="117"></span></a> <span class="kr">elseif</span> <span class="n">article</span> <span class="ow">or</span> <span class="n">pagetype</span><span class="o">==</span><span class="s1">'article'</span> <span class="ow">or</span> <span class="n">pagetype</span><span class="o">==</span><span class="s1">'set index article'</span> <span class="kr">then</span> </span><span id="L-118"><a href="#L-118"><span class="linenos" data-line="118"></span></a> <span class="kr">if</span> <span class="n">class</span><span class="o">==</span><span class="s1">'start'</span> <span class="ow">or</span> <span class="n">class</span><span class="o">==</span><span class="s1">'stub'</span> <span class="kr">then</span> <span class="c1">-- Ucfirst</span> </span><span id="L-119"><a href="#L-119"><span class="linenos" data-line="119"></span></a> <span class="n">out</span> <span class="o">=</span> <span class="n">lang</span><span class="p">:</span><span class="n">ucfirst</span><span class="p">(</span><span class="n">class</span><span class="p">)</span> </span><span id="L-120"><a href="#L-120"><span class="linenos" data-line="120"></span></a> <span class="kr">elseif</span> <span class="n">class</span><span class="o">==</span><span class="s1">'b'</span> <span class="ow">or</span> <span class="n">class</span><span class="o">==</span><span class="s1">'c'</span> <span class="ow">or</span> <span class="n">class</span><span class="o">==</span><span class="s1">'fa'</span> <span class="ow">or</span> <span class="n">class</span><span class="o">==</span><span class="s1">'fl'</span> <span class="ow">or</span> <span class="n">class</span><span class="o">==</span><span class="s1">'a'</span> <span class="ow">or</span> <span class="n">class</span><span class="o">==</span><span class="s1">'ga'</span> <span class="kr">then</span> <span class="c1">-- Upper-case</span> </span><span id="L-121"><a href="#L-121"><span class="linenos" data-line="121"></span></a> <span class="n">out</span> <span class="o">=</span> <span class="n">class</span><span class="p">:</span><span class="n">upper</span><span class="p">()</span> </span><span id="L-122"><a href="#L-122"><span class="linenos" data-line="122"></span></a> <span class="kr">elseif</span> <span class="n">class</span><span class="o">==</span><span class="s1">'list'</span> <span class="ow">or</span> <span class="n">class</span><span class="o">==</span><span class="s1">'sia'</span> <span class="ow">or</span> <span class="n">class</span><span class="o">==</span><span class="s1">'si'</span> <span class="ow">or</span> <span class="n">class</span><span class="o">==</span><span class="s1">'sl'</span> <span class="kr">then</span><span class="c1">-- List</span> </span><span id="L-123"><a href="#L-123"><span class="linenos" data-line="123"></span></a> <span class="n">out</span> <span class="o">=</span> <span class="s1">'List'</span> </span><span id="L-124"><a href="#L-124"><span class="linenos" data-line="124"></span></a> <span class="kr">elseif</span> <span class="n">pagetype</span><span class="o">==</span><span class="s1">'set index article'</span> <span class="kr">then</span> </span><span id="L-125"><a href="#L-125"><span class="linenos" data-line="125"></span></a> <span class="n">out</span> <span class="o">=</span> <span class="s1">'List'</span> </span><span id="L-126"><a href="#L-126"><span class="linenos" data-line="126"></span></a> <span class="kr">else</span> </span><span id="L-127"><a href="#L-127"><span class="linenos" data-line="127"></span></a> <span class="n">out</span> <span class="o">=</span> <span class="s1">''</span> <span class="c1">-- unassessed</span> </span><span id="L-128"><a href="#L-128"><span class="linenos" data-line="128"></span></a> <span class="kr">end</span> </span><span id="L-129"><a href="#L-129"><span class="linenos" data-line="129"></span></a> <span class="kr">elseif</span> <span class="n">ns</span><span class="o">==</span><span class="mi">7</span> <span class="ow">or</span> <span class="n">ns</span><span class="o">==</span><span class="mi">711</span> <span class="kr">then</span> <span class="c1">-- File talk</span> </span><span id="L-130"><a href="#L-130"><span class="linenos" data-line="130"></span></a> <span class="kr">if</span> <span class="n">class</span><span class="o">==</span><span class="s1">'fm'</span> <span class="kr">then</span> </span><span id="L-131"><a href="#L-131"><span class="linenos" data-line="131"></span></a> <span class="n">out</span> <span class="o">=</span> <span class="s1">'FM'</span> </span><span id="L-132"><a href="#L-132"><span class="linenos" data-line="132"></span></a> <span class="kr">else</span> </span><span id="L-133"><a href="#L-133"><span class="linenos" data-line="133"></span></a> <span class="n">out</span> <span class="o">=</span> <span class="n">resolveFQSgrade</span><span class="p">(</span><span class="s1">'file'</span><span class="p">)</span> </span><span id="L-134"><a href="#L-134"><span class="linenos" data-line="134"></span></a> <span class="kr">end</span> </span><span id="L-135"><a href="#L-135"><span class="linenos" data-line="135"></span></a> <span class="kr">else</span> </span><span id="L-136"><a href="#L-136"><span class="linenos" data-line="136"></span></a> <span class="kd">local</span> <span class="n">grade</span> <span class="o">=</span> <span class="n">cfg</span><span class="p">.</span><span class="n">quality</span><span class="p">.</span><span class="n">ns_to_class</span><span class="p">[</span><span class="n">ns</span><span class="p">]</span> <span class="ow">or</span> <span class="s1">'NA'</span> </span><span id="L-137"><a href="#L-137"><span class="linenos" data-line="137"></span></a> <span class="n">out</span> <span class="o">=</span> <span class="n">resolveFQSgrade</span><span class="p">(</span><span class="n">grade</span><span class="p">)</span> </span><span id="L-138"><a href="#L-138"><span class="linenos" data-line="138"></span></a> <span class="kr">end</span> </span><span id="L-139"><a href="#L-139"><span class="linenos" data-line="139"></span></a> <span class="kr">return</span> <span class="n">out</span> </span><span id="L-140"><a href="#L-140"><span class="linenos" data-line="140"></span></a><span class="kr">end</span> </span><span id="L-141"><a href="#L-141"><span class="linenos" data-line="141"></span></a> </span><span id="L-142"><a href="#L-142"><span class="linenos" data-line="142"></span></a><span class="kd">local</span> <span class="n">page_assessment</span> <span class="o">=</span> <span class="kr">function</span><span class="p">(</span><span class="n">project</span><span class="p">,</span> <span class="n">class</span><span class="p">,</span> <span class="n">importance</span><span class="p">)</span> <span class="c1">-- add PageAssessments parser function</span> </span><span id="L-143"><a href="#L-143"><span class="linenos" data-line="143"></span></a> <span class="kd">local</span> <span class="n">assessment</span> <span class="o">=</span> <span class="nb">table.concat</span><span class="p">({</span><span class="n">project</span><span class="p">,</span> <span class="n">class</span> <span class="ow">or</span> <span class="s1">''</span><span class="p">,</span> <span class="n">importance</span> <span class="ow">or</span> <span class="s1">''</span><span class="p">},</span><span class="s1">'|'</span><span class="p">)</span> </span><span id="L-144"><a href="#L-144"><span class="linenos" data-line="144"></span></a> <span class="n">frame</span><span class="p">:</span><span class="n">preprocess</span><span class="p">(</span><span class="s1">'{{#assessment:'</span> <span class="o">..</span> <span class="n">assessment</span> <span class="o">..</span> <span class="s1">'}}'</span><span class="p">)</span> </span><span id="L-145"><a href="#L-145"><span class="linenos" data-line="145"></span></a><span class="kr">end</span> </span><span id="L-146"><a href="#L-146"><span class="linenos" data-line="146"></span></a> </span><span id="L-147"><a href="#L-147"><span class="linenos" data-line="147"></span></a><span class="kd">local</span> <span class="n">bubble</span> <span class="o">=</span> <span class="kr">function</span><span class="p">(</span><span class="n">text</span><span class="p">,</span> <span class="n">conflict</span><span class="p">,</span> <span class="n">style</span><span class="p">)</span> </span><span id="L-148"><a href="#L-148"><span class="linenos" data-line="148"></span></a> <span class="kd">local</span> <span class="n">out</span> <span class="o">=</span> <span class="n">mw</span><span class="p">.</span><span class="n">html</span><span class="p">.</span><span class="n">create</span><span class="p">(</span><span class="s1">'span'</span><span class="p">)</span> </span><span id="L-149"><a href="#L-149"><span class="linenos" data-line="149"></span></a> <span class="p">:</span><span class="n">addClass</span><span class="p">(</span><span class="s1">'wpb-header-bubbles'</span><span class="p">)</span> </span><span id="L-150"><a href="#L-150"><span class="linenos" data-line="150"></span></a> <span class="p">:</span><span class="n">addClass</span><span class="p">(</span><span class="n">style</span><span class="p">)</span> </span><span id="L-151"><a href="#L-151"><span class="linenos" data-line="151"></span></a> <span class="p">:</span><span class="n">addClass</span><span class="p">(</span><span class="n">conflict</span> <span class="ow">and</span> <span class="s1">'conflict'</span> <span class="ow">or</span> <span class="kc">nil</span><span class="p">)</span> </span><span id="L-152"><a href="#L-152"><span class="linenos" data-line="152"></span></a> <span class="p">:</span><span class="n">wikitext</span><span class="p">(</span><span class="n">text</span><span class="p">)</span> </span><span id="L-153"><a href="#L-153"><span class="linenos" data-line="153"></span></a> <span class="kr">return</span> <span class="nb">tostring</span><span class="p">(</span><span class="n">out</span><span class="p">)</span> </span><span id="L-154"><a href="#L-154"><span class="linenos" data-line="154"></span></a><span class="kr">end</span> </span><span id="L-155"><a href="#L-155"><span class="linenos" data-line="155"></span></a> </span><span id="L-156"><a href="#L-156"><span class="linenos" data-line="156"></span></a><span class="n">p</span><span class="p">.</span><span class="n">_main</span> <span class="o">=</span> <span class="kr">function</span><span class="p">(</span><span class="n">args</span><span class="p">,</span> <span class="n">raw_args</span><span class="p">,</span> <span class="n">demo_page</span><span class="p">,</span> <span class="n">banner_name</span><span class="p">,</span> <span class="n">inactive</span><span class="p">)</span> </span><span id="L-157"><a href="#L-157"><span class="linenos" data-line="157"></span></a><span class="c1">---------------------------</span> </span><span id="L-158"><a href="#L-158"><span class="linenos" data-line="158"></span></a><span class="c1">-- Initialise parameters --</span> </span><span id="L-159"><a href="#L-159"><span class="linenos" data-line="159"></span></a><span class="c1">---------------------------</span> </span><span id="L-160"><a href="#L-160"><span class="linenos" data-line="160"></span></a><span class="kd">local</span> <span class="n">project</span> <span class="o">=</span> <span class="n">args</span><span class="p">.</span><span class="n">PROJECT</span> <span class="ow">or</span> <span class="s1">'PROJECT'</span> </span><span id="L-161"><a href="#L-161"><span class="linenos" data-line="161"></span></a><span class="kd">local</span> <span class="n">project_name</span> <span class="o">=</span> <span class="n">args</span><span class="p">.</span><span class="n">PROJECT_NAME</span> <span class="ow">or</span> <span class="s1">'WikiProject '</span> <span class="o">..</span> <span class="n">project</span> </span><span id="L-162"><a href="#L-162"><span class="linenos" data-line="162"></span></a><span class="kd">local</span> <span class="n">project_link</span> <span class="o">=</span> <span class="n">mw</span><span class="p">.</span><span class="n">title</span><span class="p">.</span><span class="n">new</span><span class="p">(</span><span class="n">args</span><span class="p">.</span><span class="n">PROJECT_LINK</span> <span class="ow">or</span> <span class="s1">'Wikipedia:'</span> <span class="o">..</span> <span class="n">project_name</span><span class="p">)</span> </span><span id="L-163"><a href="#L-163"><span class="linenos" data-line="163"></span></a><span class="kd">local</span> <span class="n">pagetype</span> <span class="o">=</span> <span class="n">demo_page</span><span class="o">==</span><span class="kc">true</span> <span class="ow">and</span> <span class="s1">'article'</span> <span class="ow">or</span> <span class="nb">require</span><span class="p">(</span><span class="s1">'Module:Pagetype'</span><span class="p">).</span><span class="n">_main</span><span class="p">({</span> </span><span id="L-164"><a href="#L-164"><span class="linenos" data-line="164"></span></a> <span class="n">page</span> <span class="o">=</span> <span class="n">demo_page</span><span class="p">,</span> </span><span id="L-165"><a href="#L-165"><span class="linenos" data-line="165"></span></a> <span class="n">dab</span> <span class="o">=</span> <span class="s1">'disambiguation page'</span><span class="p">,</span> </span><span id="L-166"><a href="#L-166"><span class="linenos" data-line="166"></span></a> <span class="n">sia</span> <span class="o">=</span> <span class="s1">'set index article'</span> </span><span id="L-167"><a href="#L-167"><span class="linenos" data-line="167"></span></a><span class="p">})</span> </span><span id="L-168"><a href="#L-168"><span class="linenos" data-line="168"></span></a><span class="kd">local</span> <span class="n">article</span> <span class="o">=</span> <span class="n">pagetype</span><span class="o">==</span><span class="s1">'article'</span> <span class="ow">or</span> <span class="n">pagetype</span><span class="o">==</span><span class="s1">'set index article'</span> </span><span id="L-169"><a href="#L-169"><span class="linenos" data-line="169"></span></a><span class="kd">local</span> <span class="n">rows</span><span class="p">,</span> <span class="n">nested_ratings</span><span class="p">,</span> <span class="n">task_forces</span><span class="p">,</span> <span class="n">notes</span><span class="p">,</span> <span class="n">categories</span><span class="p">,</span> <span class="n">taskforce_categories</span> <span class="o">=</span> <span class="p">{},</span> <span class="p">{},</span> <span class="p">{},</span> <span class="p">{},</span> <span class="p">{},</span> <span class="p">{}</span> </span><span id="L-170"><a href="#L-170"><span class="linenos" data-line="170"></span></a><span class="kd">local</span> <span class="n">add_category</span> <span class="o">=</span> <span class="kr">function</span><span class="p">(</span><span class="n">category</span><span class="p">,</span> <span class="n">key</span><span class="p">)</span> </span><span id="L-171"><a href="#L-171"><span class="linenos" data-line="171"></span></a> <span class="kr">if</span> <span class="n">category</span> <span class="ow">and</span> <span class="n">category</span><span class="o">~=</span><span class="s1">'none'</span> <span class="kr">then</span> </span><span id="L-172"><a href="#L-172"><span class="linenos" data-line="172"></span></a> <span class="nb">table.insert</span><span class="p">(</span><span class="n">categories</span><span class="p">,</span> <span class="p">{</span><span class="n">category</span> <span class="o">=</span> <span class="n">category</span><span class="p">,</span> <span class="n">key</span> <span class="o">=</span> <span class="n">key</span><span class="p">})</span> </span><span id="L-173"><a href="#L-173"><span class="linenos" data-line="173"></span></a> <span class="kr">end</span> </span><span id="L-174"><a href="#L-174"><span class="linenos" data-line="174"></span></a><span class="kr">end</span> </span><span id="L-175"><a href="#L-175"><span class="linenos" data-line="175"></span></a><span class="kd">local</span> <span class="n">parse_pt</span> <span class="o">=</span> <span class="kr">function</span><span class="p">(</span><span class="n">text</span><span class="p">)</span> <span class="c1">-- function to replace _PAGETYPE_ with the actual page type</span> </span><span id="L-176"><a href="#L-176"><span class="linenos" data-line="176"></span></a> <span class="kd">local</span> <span class="n">ptype</span> <span class="o">=</span> <span class="n">article</span> <span class="ow">and</span> <span class="s1">'article'</span> <span class="ow">or</span> <span class="n">pagetype</span> <span class="c1">-- display "article" for articles otherwise page type</span> </span><span id="L-177"><a href="#L-177"><span class="linenos" data-line="177"></span></a> <span class="kr">return</span> <span class="n">text</span> <span class="ow">and</span> <span class="n">text</span><span class="p">:</span><span class="n">gsub</span><span class="p">(</span><span class="s1">'_PAGETYPE_'</span><span class="p">,</span> <span class="n">ptype</span><span class="p">)</span> </span><span id="L-178"><a href="#L-178"><span class="linenos" data-line="178"></span></a><span class="kr">end</span> </span><span id="L-179"><a href="#L-179"><span class="linenos" data-line="179"></span></a><span class="kr">for</span> <span class="n">arg_name</span><span class="p">,</span> <span class="n">arg_value</span> <span class="kr">in</span> <span class="nb">pairs</span><span class="p">(</span><span class="n">args</span><span class="p">)</span> <span class="kr">do</span> </span><span id="L-180"><a href="#L-180"><span class="linenos" data-line="180"></span></a> <span class="kd">local</span> <span class="n">tf_match</span> <span class="o">=</span> <span class="n">mw</span><span class="p">.</span><span class="n">ustring</span><span class="p">.</span><span class="n">match</span><span class="p">(</span><span class="n">arg_name</span><span class="p">,</span><span class="s1">'^tf (%d+)$'</span><span class="p">)</span> </span><span id="L-181"><a href="#L-181"><span class="linenos" data-line="181"></span></a> <span class="kd">local</span> <span class="n">note_match</span> <span class="o">=</span> <span class="n">mw</span><span class="p">.</span><span class="n">ustring</span><span class="p">.</span><span class="n">match</span><span class="p">(</span><span class="n">arg_name</span><span class="p">,</span><span class="s1">'^note (%d+)$'</span><span class="p">)</span> </span><span id="L-182"><a href="#L-182"><span class="linenos" data-line="182"></span></a> <span class="kr">if</span> <span class="n">tf_match</span> <span class="ow">and</span> <span class="n">yesno</span><span class="p">(</span><span class="n">arg_value</span><span class="p">,</span> <span class="kc">true</span><span class="p">)</span> <span class="kr">then</span> </span><span id="L-183"><a href="#L-183"><span class="linenos" data-line="183"></span></a> <span class="nb">table.insert</span><span class="p">(</span><span class="n">task_forces</span><span class="p">,</span> <span class="n">tf_match</span><span class="p">)</span> </span><span id="L-184"><a href="#L-184"><span class="linenos" data-line="184"></span></a> <span class="kr">elseif</span> <span class="n">note_match</span> <span class="ow">and</span> <span class="n">yesno</span><span class="p">(</span><span class="n">arg_value</span><span class="p">,</span> <span class="kc">true</span><span class="p">)</span> <span class="kr">then</span> </span><span id="L-185"><a href="#L-185"><span class="linenos" data-line="185"></span></a> <span class="nb">table.insert</span><span class="p">(</span><span class="n">notes</span><span class="p">,</span> <span class="n">note_match</span><span class="p">)</span> </span><span id="L-186"><a href="#L-186"><span class="linenos" data-line="186"></span></a> <span class="kr">else</span> </span><span id="L-187"><a href="#L-187"><span class="linenos" data-line="187"></span></a> <span class="kd">local</span> <span class="n">tf</span><span class="p">,</span> <span class="n">cat</span> <span class="o">=</span> <span class="n">mw</span><span class="p">.</span><span class="n">ustring</span><span class="p">.</span><span class="n">match</span><span class="p">(</span><span class="n">arg_name</span><span class="p">,</span><span class="s1">'^tf (%d+) cat (%d+)$'</span><span class="p">)</span> </span><span id="L-188"><a href="#L-188"><span class="linenos" data-line="188"></span></a> <span class="kr">if</span> <span class="n">tf</span> <span class="ow">and</span> <span class="n">yesno</span><span class="p">(</span><span class="n">arg_value</span><span class="p">,</span> <span class="kc">true</span><span class="p">)</span> <span class="kr">then</span> </span><span id="L-189"><a href="#L-189"><span class="linenos" data-line="189"></span></a> <span class="kr">if</span> <span class="ow">not</span> <span class="n">taskforce_categories</span><span class="p">[</span><span class="n">tf</span><span class="p">]</span> <span class="kr">then</span> <span class="c1">-- initialise table</span> </span><span id="L-190"><a href="#L-190"><span class="linenos" data-line="190"></span></a> <span class="n">taskforce_categories</span><span class="p">[</span><span class="n">tf</span><span class="p">]</span> <span class="o">=</span> <span class="p">{}</span> </span><span id="L-191"><a href="#L-191"><span class="linenos" data-line="191"></span></a> <span class="kr">end</span> </span><span id="L-192"><a href="#L-192"><span class="linenos" data-line="192"></span></a> <span class="nb">table.insert</span><span class="p">(</span><span class="n">taskforce_categories</span><span class="p">[</span><span class="n">tf</span><span class="p">],</span> <span class="n">cat</span><span class="p">)</span> </span><span id="L-193"><a href="#L-193"><span class="linenos" data-line="193"></span></a> <span class="kr">end</span> </span><span id="L-194"><a href="#L-194"><span class="linenos" data-line="194"></span></a> <span class="kr">end</span> </span><span id="L-195"><a href="#L-195"><span class="linenos" data-line="195"></span></a><span class="kr">end</span> </span><span id="L-196"><a href="#L-196"><span class="linenos" data-line="196"></span></a><span class="nb">table.sort</span><span class="p">(</span><span class="n">task_forces</span><span class="p">,</span> <span class="kr">function</span> <span class="p">(</span><span class="n">x</span><span class="p">,</span> <span class="n">y</span><span class="p">)</span> <span class="kr">return</span> <span class="nb">tonumber</span><span class="p">(</span><span class="n">x</span><span class="p">)</span> <span class="o"><</span> <span class="nb">tonumber</span><span class="p">(</span><span class="n">y</span><span class="p">)</span> <span class="kr">end</span><span class="p">)</span> </span><span id="L-197"><a href="#L-197"><span class="linenos" data-line="197"></span></a><span class="nb">table.sort</span><span class="p">(</span><span class="n">notes</span><span class="p">,</span> <span class="kr">function</span> <span class="p">(</span><span class="n">x</span><span class="p">,</span> <span class="n">y</span><span class="p">)</span> <span class="kr">return</span> <span class="nb">tonumber</span><span class="p">(</span><span class="n">x</span><span class="p">)</span> <span class="o"><</span> <span class="nb">tonumber</span><span class="p">(</span><span class="n">y</span><span class="p">)</span> <span class="kr">end</span><span class="p">)</span> </span><span id="L-198"><a href="#L-198"><span class="linenos" data-line="198"></span></a><span class="c1">---------------------------</span> </span><span id="L-199"><a href="#L-199"><span class="linenos" data-line="199"></span></a><span class="c1">-- Location warning -------</span> </span><span id="L-200"><a href="#L-200"><span class="linenos" data-line="200"></span></a><span class="c1">---------------------------</span> </span><span id="L-201"><a href="#L-201"><span class="linenos" data-line="201"></span></a><span class="kd">local</span> <span class="n">warning</span> <span class="o">=</span> <span class="s1">''</span> </span><span id="L-202"><a href="#L-202"><span class="linenos" data-line="202"></span></a><span class="kd">local</span> <span class="n">show_namespace_warning</span> <span class="o">=</span> <span class="ow">not</span> <span class="p">(</span><span class="n">current_title</span><span class="p">.</span><span class="n">isTalkPage</span> <span class="ow">or</span> <span class="n">demo_page</span><span class="p">)</span> </span><span id="L-203"><a href="#L-203"><span class="linenos" data-line="203"></span></a><span class="kr">if</span> <span class="n">show_namespace_warning</span> <span class="kr">then</span> </span><span id="L-204"><a href="#L-204"><span class="linenos" data-line="204"></span></a> <span class="kd">local</span> <span class="n">text</span> <span class="o">=</span> <span class="n">cfg</span><span class="p">.</span><span class="n">namespace_warning</span><span class="p">.</span><span class="n">text</span><span class="p">:</span><span class="n">format</span><span class="p">(</span> </span><span id="L-205"><a href="#L-205"><span class="linenos" data-line="205"></span></a> <span class="n">current_title</span><span class="p">.</span><span class="n">talkPageTitle</span><span class="p">.</span><span class="n">fullText</span><span class="p">,</span> </span><span id="L-206"><a href="#L-206"><span class="linenos" data-line="206"></span></a> <span class="n">parameter_format</span><span class="p">(</span><span class="s1">'category'</span><span class="p">,</span> <span class="s1">'no'</span><span class="p">)</span> </span><span id="L-207"><a href="#L-207"><span class="linenos" data-line="207"></span></a> <span class="p">)</span> </span><span id="L-208"><a href="#L-208"><span class="linenos" data-line="208"></span></a> <span class="kd">local</span> <span class="n">sortkey</span> <span class="o">=</span> <span class="n">current_title</span><span class="p">.</span><span class="n">namespace</span><span class="o">==</span><span class="mi">10</span> <span class="ow">and</span> <span class="n">cfg</span><span class="p">.</span><span class="n">namespace_warning</span><span class="p">.</span><span class="n">sortkey_on_template_page</span> <span class="ow">or</span> <span class="n">cfg</span><span class="p">.</span><span class="n">namespace_warning</span><span class="p">.</span><span class="n">sortkey</span> </span><span id="L-209"><a href="#L-209"><span class="linenos" data-line="209"></span></a> <span class="kr">if</span> <span class="n">current_title</span><span class="p">.</span><span class="n">namespace</span><span class="o">==</span><span class="mi">10</span> <span class="kr">then</span> <span class="c1">-- on the Template namespace</span> </span><span id="L-210"><a href="#L-210"><span class="linenos" data-line="210"></span></a> <span class="n">text</span> <span class="o">=</span> <span class="n">text</span> <span class="o">..</span> <span class="s1">' '</span> <span class="o">..</span> <span class="n">cfg</span><span class="p">.</span><span class="n">namespace_warning</span><span class="p">.</span><span class="n">on_template_page</span><span class="p">:</span><span class="n">format</span><span class="p">(</span> </span><span id="L-211"><a href="#L-211"><span class="linenos" data-line="211"></span></a> <span class="n">parameter_format</span><span class="p">(</span><span class="s1">'BANNER_NAME'</span><span class="p">),</span> </span><span id="L-212"><a href="#L-212"><span class="linenos" data-line="212"></span></a> <span class="n">current_title</span><span class="p">.</span><span class="n">prefixedText</span> </span><span id="L-213"><a href="#L-213"><span class="linenos" data-line="213"></span></a> <span class="p">)</span> </span><span id="L-214"><a href="#L-214"><span class="linenos" data-line="214"></span></a> <span class="kr">end</span> </span><span id="L-215"><a href="#L-215"><span class="linenos" data-line="215"></span></a> <span class="n">warning</span> <span class="o">=</span> <span class="n">mbox</span><span class="p">(</span><span class="s1">'ombox'</span><span class="p">,</span> <span class="p">{</span> </span><span id="L-216"><a href="#L-216"><span class="linenos" data-line="216"></span></a> <span class="n">image</span> <span class="o">=</span> <span class="s1">'[[File:'</span> <span class="o">..</span> <span class="n">cfg</span><span class="p">.</span><span class="n">namespace_warning</span><span class="p">.</span><span class="n">image</span> <span class="o">..</span> <span class="s1">'|40px]]'</span><span class="p">,</span> </span><span id="L-217"><a href="#L-217"><span class="linenos" data-line="217"></span></a> <span class="nb">type</span> <span class="o">=</span> <span class="n">cfg</span><span class="p">.</span><span class="n">namespace_warning</span><span class="p">.</span><span class="n">type_</span><span class="p">,</span> </span><span id="L-218"><a href="#L-218"><span class="linenos" data-line="218"></span></a> <span class="n">text</span> <span class="o">=</span> <span class="n">parse_pt</span><span class="p">(</span><span class="n">text</span><span class="p">)</span> </span><span id="L-219"><a href="#L-219"><span class="linenos" data-line="219"></span></a> <span class="p">})</span> </span><span id="L-220"><a href="#L-220"><span class="linenos" data-line="220"></span></a> <span class="kr">if</span> <span class="ow">not</span> <span class="n">current_title</span><span class="p">.</span><span class="n">subjectPageTitle</span><span class="p">:</span><span class="n">inNamespace</span><span class="p">(</span><span class="mi">2</span><span class="p">)</span> <span class="kr">then</span> </span><span id="L-221"><a href="#L-221"><span class="linenos" data-line="221"></span></a> <span class="n">add_category</span><span class="p">(</span><span class="n">cfg</span><span class="p">.</span><span class="n">namespace_warning</span><span class="p">.</span><span class="n">categories</span><span class="p">,</span> <span class="n">sortkey</span><span class="p">)</span> </span><span id="L-222"><a href="#L-222"><span class="linenos" data-line="222"></span></a> <span class="kr">end</span> </span><span id="L-223"><a href="#L-223"><span class="linenos" data-line="223"></span></a><span class="kr">end</span> </span><span id="L-224"><a href="#L-224"><span class="linenos" data-line="224"></span></a><span class="c1">---------------------------</span> </span><span id="L-225"><a href="#L-225"><span class="linenos" data-line="225"></span></a><span class="c1">-- Substitution warning ---</span> </span><span id="L-226"><a href="#L-226"><span class="linenos" data-line="226"></span></a><span class="c1">---------------------------</span> </span><span id="L-227"><a href="#L-227"><span class="linenos" data-line="227"></span></a><span class="kr">if</span> <span class="n">args</span><span class="p">.</span><span class="n">substcheck</span><span class="o">==</span><span class="s1">'SUBST'</span> <span class="kr">then</span> </span><span id="L-228"><a href="#L-228"><span class="linenos" data-line="228"></span></a> <span class="kd">local</span> <span class="n">text</span> <span class="o">=</span> <span class="n">cfg</span><span class="p">.</span><span class="n">subst_warning</span><span class="p">.</span><span class="n">text</span><span class="p">:</span><span class="n">format</span><span class="p">(</span> </span><span id="L-229"><a href="#L-229"><span class="linenos" data-line="229"></span></a> <span class="n">project_name</span><span class="p">,</span> </span><span id="L-230"><a href="#L-230"><span class="linenos" data-line="230"></span></a> <span class="s1">'<code>&#123;&#123;'</span><span class="o">..</span><span class="n">banner_name</span><span class="p">.</span><span class="n">prefixedText</span><span class="o">..</span><span class="s1">'&#125;&#125;</code>'</span> </span><span id="L-231"><a href="#L-231"><span class="linenos" data-line="231"></span></a> <span class="p">)</span> </span><span id="L-232"><a href="#L-232"><span class="linenos" data-line="232"></span></a> <span class="n">warning</span> <span class="o">=</span> <span class="n">warning</span> <span class="o">..</span> <span class="n">mbox</span><span class="p">(</span><span class="s1">'ombox'</span><span class="p">,</span> <span class="p">{</span> </span><span id="L-233"><a href="#L-233"><span class="linenos" data-line="233"></span></a> <span class="n">image</span> <span class="o">=</span> <span class="s1">'[[File:'</span> <span class="o">..</span> <span class="n">cfg</span><span class="p">.</span><span class="n">subst_warning</span><span class="p">.</span><span class="n">image</span> <span class="o">..</span> <span class="s1">'|40px]]'</span><span class="p">,</span> </span><span id="L-234"><a href="#L-234"><span class="linenos" data-line="234"></span></a> <span class="nb">type</span> <span class="o">=</span> <span class="n">cfg</span><span class="p">.</span><span class="n">subst_warning</span><span class="p">.</span><span class="n">type_</span><span class="p">,</span> </span><span id="L-235"><a href="#L-235"><span class="linenos" data-line="235"></span></a> <span class="n">text</span> <span class="o">=</span> <span class="n">text</span><span class="p">,</span> </span><span id="L-236"><a href="#L-236"><span class="linenos" data-line="236"></span></a> <span class="p">})</span> <span class="o">..</span> <span class="n">cfg</span><span class="p">.</span><span class="n">subst_warning</span><span class="p">.</span><span class="n">categories</span> </span><span id="L-237"><a href="#L-237"><span class="linenos" data-line="237"></span></a><span class="kr">end</span> </span><span id="L-238"><a href="#L-238"><span class="linenos" data-line="238"></span></a><span class="c1">---------------------------</span> </span><span id="L-239"><a href="#L-239"><span class="linenos" data-line="239"></span></a><span class="c1">-- Primary image/text -----</span> </span><span id="L-240"><a href="#L-240"><span class="linenos" data-line="240"></span></a><span class="c1">---------------------------</span> </span><span id="L-241"><a href="#L-241"><span class="linenos" data-line="241"></span></a><span class="kd">local</span> <span class="n">assessment_cat</span> <span class="o">=</span> <span class="n">args</span><span class="p">.</span><span class="n">ASSESSMENT_CAT</span> <span class="ow">or</span> <span class="n">project</span> <span class="o">..</span> <span class="s1">' articles'</span> </span><span id="L-242"><a href="#L-242"><span class="linenos" data-line="242"></span></a><span class="kd">local</span> <span class="n">primary_image</span> <span class="o">=</span> <span class="kr">function</span><span class="p">(</span><span class="n">image_name</span><span class="p">,</span> <span class="n">size</span><span class="p">)</span> </span><span id="L-243"><a href="#L-243"><span class="linenos" data-line="243"></span></a> <span class="kd">local</span> <span class="n">cell</span> <span class="o">=</span> <span class="n">mw</span><span class="p">.</span><span class="n">html</span><span class="p">.</span><span class="n">create</span><span class="p">(</span><span class="s1">'td'</span><span class="p">)</span> </span><span id="L-244"><a href="#L-244"><span class="linenos" data-line="244"></span></a> <span class="kr">if</span> <span class="n">image_name</span> <span class="ow">and</span> <span class="n">image_name</span><span class="o">~=</span><span class="s1">''</span> <span class="kr">then</span> </span><span id="L-245"><a href="#L-245"><span class="linenos" data-line="245"></span></a> <span class="n">cell</span><span class="p">:</span><span class="n">addClass</span><span class="p">(</span><span class="s1">'mbox-image wpb-image'</span><span class="p">)</span> </span><span id="L-246"><a href="#L-246"><span class="linenos" data-line="246"></span></a> <span class="p">:</span><span class="n">wikitext</span><span class="p">(</span><span class="n">image</span><span class="p">(</span><span class="n">image_name</span><span class="p">,</span> <span class="n">size</span><span class="p">,</span> <span class="n">cfg</span><span class="p">.</span><span class="n">image</span><span class="p">.</span><span class="n">alt</span><span class="p">))</span> </span><span id="L-247"><a href="#L-247"><span class="linenos" data-line="247"></span></a> <span class="kr">else</span> </span><span id="L-248"><a href="#L-248"><span class="linenos" data-line="248"></span></a> <span class="n">cell</span><span class="p">:</span><span class="n">addClass</span><span class="p">(</span><span class="s1">'mbox-empty-cell'</span><span class="p">)</span> </span><span id="L-249"><a href="#L-249"><span class="linenos" data-line="249"></span></a> <span class="kr">end</span> </span><span id="L-250"><a href="#L-250"><span class="linenos" data-line="250"></span></a> <span class="kr">return</span> <span class="n">cell</span> </span><span id="L-251"><a href="#L-251"><span class="linenos" data-line="251"></span></a><span class="kr">end</span> </span><span id="L-252"><a href="#L-252"><span class="linenos" data-line="252"></span></a><span class="kd">local</span> <span class="n">portal</span> <span class="o">=</span> <span class="n">args</span><span class="p">.</span><span class="n">PORTAL</span> </span><span id="L-253"><a href="#L-253"><span class="linenos" data-line="253"></span></a><span class="kd">local</span> <span class="n">portal_box</span> <span class="o">=</span> <span class="n">portal</span> <span class="ow">and</span> <span class="n">frame</span><span class="p">:</span><span class="n">expandTemplate</span><span class="p">{</span><span class="n">title</span><span class="o">=</span><span class="s1">'Portal'</span><span class="p">,</span> <span class="n">args</span><span class="o">=</span><span class="p">{</span><span class="n">portal</span><span class="p">}}</span> <span class="ow">or</span> <span class="s1">''</span> </span><span id="L-254"><a href="#L-254"><span class="linenos" data-line="254"></span></a><span class="kd">local</span> <span class="n">main_text</span> <span class="o">=</span> <span class="n">portal_box</span> <span class="o">..</span> <span class="n">parse_pt</span><span class="p">(</span><span class="n">args</span><span class="p">.</span><span class="n">MAIN_TEXT</span> <span class="ow">or</span> <span class="n">cfg</span><span class="p">.</span><span class="n">main_text</span><span class="p">:</span><span class="n">format</span><span class="p">(</span> </span><span id="L-255"><a href="#L-255"><span class="linenos" data-line="255"></span></a> <span class="n">project_link</span><span class="p">.</span><span class="n">prefixedText</span><span class="p">,</span> </span><span id="L-256"><a href="#L-256"><span class="linenos" data-line="256"></span></a> <span class="n">project_name</span><span class="p">,</span> </span><span id="L-257"><a href="#L-257"><span class="linenos" data-line="257"></span></a> <span class="n">args</span><span class="p">.</span><span class="n">MAIN_ARTICLE</span> <span class="ow">and</span> <span class="n">if_exists</span><span class="p">(</span><span class="n">args</span><span class="p">.</span><span class="n">MAIN_ARTICLE</span><span class="p">)</span> <span class="ow">or</span> <span class="n">if_exists</span><span class="p">(</span><span class="n">project</span><span class="p">,</span> <span class="n">project</span> <span class="o">..</span> <span class="s1">' articles'</span><span class="p">),</span> </span><span id="L-258"><a href="#L-258"><span class="linenos" data-line="258"></span></a> <span class="n">project_link</span><span class="p">.</span><span class="n">talkPageTitle</span><span class="p">.</span><span class="n">prefixedText</span> </span><span id="L-259"><a href="#L-259"><span class="linenos" data-line="259"></span></a><span class="p">))</span> </span><span id="L-260"><a href="#L-260"><span class="linenos" data-line="260"></span></a><span class="kd">local</span> <span class="n">image_left_size</span> <span class="o">=</span> <span class="n">args</span><span class="p">.</span><span class="n">IMAGE_LEFT_SIZE</span> <span class="ow">or</span> <span class="n">cfg</span><span class="p">.</span><span class="n">image</span><span class="p">.</span><span class="n">default_size</span> </span><span id="L-261"><a href="#L-261"><span class="linenos" data-line="261"></span></a><span class="kd">local</span> <span class="n">metadata</span> <span class="o">=</span> <span class="kr">function</span><span class="p">(</span><span class="n">class</span><span class="p">,</span> <span class="n">data</span><span class="p">)</span> </span><span id="L-262"><a href="#L-262"><span class="linenos" data-line="262"></span></a> <span class="kr">return</span> <span class="n">mw</span><span class="p">.</span><span class="n">html</span><span class="p">.</span><span class="n">create</span><span class="p">(</span><span class="s1">'span'</span><span class="p">)</span> </span><span id="L-263"><a href="#L-263"><span class="linenos" data-line="263"></span></a> <span class="p">:</span><span class="n">addClass</span><span class="p">(</span><span class="n">class</span><span class="p">)</span> </span><span id="L-264"><a href="#L-264"><span class="linenos" data-line="264"></span></a> <span class="p">:</span><span class="n">wikitext</span><span class="p">(</span><span class="n">data</span><span class="p">)</span> </span><span id="L-265"><a href="#L-265"><span class="linenos" data-line="265"></span></a><span class="kr">end</span> </span><span id="L-266"><a href="#L-266"><span class="linenos" data-line="266"></span></a><span class="kd">local</span> <span class="n">text_cell</span> <span class="o">=</span> <span class="n">mw</span><span class="p">.</span><span class="n">html</span><span class="p">.</span><span class="n">create</span><span class="p">(</span><span class="s1">'td'</span><span class="p">)</span> </span><span id="L-267"><a href="#L-267"><span class="linenos" data-line="267"></span></a> <span class="p">:</span><span class="n">addClass</span><span class="p">(</span><span class="s1">'mbox-text'</span><span class="p">)</span> </span><span id="L-268"><a href="#L-268"><span class="linenos" data-line="268"></span></a> <span class="p">:</span><span class="n">wikitext</span><span class="p">(</span><span class="n">main_text</span><span class="p">)</span> </span><span id="L-269"><a href="#L-269"><span class="linenos" data-line="269"></span></a> <span class="p">:</span><span class="n">tag</span><span class="p">(</span><span class="s1">'span'</span><span class="p">)</span> </span><span id="L-270"><a href="#L-270"><span class="linenos" data-line="270"></span></a> <span class="p">:</span><span class="n">addClass</span><span class="p">(</span><span class="s1">'metadata wpb-metadata'</span><span class="p">)</span> </span><span id="L-271"><a href="#L-271"><span class="linenos" data-line="271"></span></a> <span class="p">:</span><span class="n">node</span><span class="p">(</span><span class="n">metadata</span><span class="p">(</span><span class="s1">'wpb-project'</span><span class="p">,</span> <span class="n">project</span><span class="p">))</span> </span><span id="L-272"><a href="#L-272"><span class="linenos" data-line="272"></span></a> <span class="p">:</span><span class="n">node</span><span class="p">(</span><span class="n">metadata</span><span class="p">(</span><span class="s1">'wpb-project_link'</span><span class="p">,</span> <span class="n">project_link</span><span class="p">.</span><span class="n">prefixedText</span><span class="p">))</span> </span><span id="L-273"><a href="#L-273"><span class="linenos" data-line="273"></span></a> <span class="p">:</span><span class="n">node</span><span class="p">(</span><span class="n">metadata</span><span class="p">(</span><span class="s1">'wpb-banner_name'</span><span class="p">,</span> <span class="n">banner_name</span><span class="p">.</span><span class="n">prefixedText</span><span class="p">))</span> </span><span id="L-274"><a href="#L-274"><span class="linenos" data-line="274"></span></a> <span class="p">:</span><span class="n">node</span><span class="p">(</span><span class="n">metadata</span><span class="p">(</span><span class="s1">'wpb-assessment_cat'</span><span class="p">,</span> <span class="n">assessment_cat</span><span class="p">))</span> </span><span id="L-275"><a href="#L-275"><span class="linenos" data-line="275"></span></a> <span class="p">:</span><span class="n">done</span><span class="p">()</span> </span><span id="L-276"><a href="#L-276"><span class="linenos" data-line="276"></span></a><span class="kd">local</span> <span class="n">primary_row</span> <span class="o">=</span> <span class="n">mw</span><span class="p">.</span><span class="n">html</span><span class="p">.</span><span class="n">create</span><span class="p">(</span><span class="s1">'tr'</span><span class="p">)</span> </span><span id="L-277"><a href="#L-277"><span class="linenos" data-line="277"></span></a> <span class="p">:</span><span class="n">node</span><span class="p">(</span><span class="n">primary_image</span><span class="p">(</span><span class="n">args</span><span class="p">.</span><span class="n">IMAGE_LEFT</span><span class="p">,</span> <span class="n">image_left_size</span><span class="p">))</span> </span><span id="L-278"><a href="#L-278"><span class="linenos" data-line="278"></span></a> <span class="p">:</span><span class="n">node</span><span class="p">(</span><span class="n">text_cell</span><span class="p">)</span> </span><span id="L-279"><a href="#L-279"><span class="linenos" data-line="279"></span></a> <span class="p">:</span><span class="n">node</span><span class="p">(</span><span class="n">primary_image</span><span class="p">(</span><span class="n">args</span><span class="p">.</span><span class="n">IMAGE_RIGHT</span><span class="p">,</span> <span class="n">args</span><span class="p">.</span><span class="n">IMAGE_RIGHT_SIZE</span> <span class="ow">or</span> <span class="n">cfg</span><span class="p">.</span><span class="n">image</span><span class="p">.</span><span class="n">default_size</span><span class="p">))</span> </span><span id="L-280"><a href="#L-280"><span class="linenos" data-line="280"></span></a><span class="nb">table.insert</span><span class="p">(</span><span class="n">rows</span><span class="p">,</span> <span class="n">primary_row</span><span class="p">)</span> </span><span id="L-281"><a href="#L-281"><span class="linenos" data-line="281"></span></a><span class="c1">---------------------------</span> </span><span id="L-282"><a href="#L-282"><span class="linenos" data-line="282"></span></a><span class="c1">-- Banner shell checks ----</span> </span><span id="L-283"><a href="#L-283"><span class="linenos" data-line="283"></span></a><span class="c1">---------------------------</span> </span><span id="L-284"><a href="#L-284"><span class="linenos" data-line="284"></span></a><span class="kd">local</span> <span class="n">title</span> <span class="o">=</span> <span class="n">demo_page</span> <span class="ow">and</span> <span class="n">demo_page</span><span class="o">~=</span><span class="kc">true</span> <span class="ow">and</span> <span class="n">mw</span><span class="p">.</span><span class="n">title</span><span class="p">.</span><span class="n">new</span><span class="p">(</span><span class="n">demo_page</span><span class="p">)</span> <span class="ow">or</span> <span class="n">current_title</span> </span><span id="L-285"><a href="#L-285"><span class="linenos" data-line="285"></span></a><span class="kd">local</span> <span class="n">article_class</span> <span class="o">=</span> <span class="n">p</span><span class="p">.</span><span class="n">readarticleclass</span><span class="p">({</span><span class="n">ignore_subtemplates</span><span class="o">=</span><span class="kc">true</span><span class="p">},</span> <span class="n">title</span><span class="p">.</span><span class="n">prefixedText</span><span class="p">)</span> </span><span id="L-286"><a href="#L-286"><span class="linenos" data-line="286"></span></a><span class="kr">if</span> <span class="n">article_class</span> <span class="kr">then</span> <span class="c1">-- banner shell exists</span> </span><span id="L-287"><a href="#L-287"><span class="linenos" data-line="287"></span></a> <span class="kd">local</span> <span class="n">special_chars</span> <span class="o">=</span> <span class="s1">'([%%%(%)%.%+%-%*%?%[%]%^%$])'</span> </span><span id="L-288"><a href="#L-288"><span class="linenos" data-line="288"></span></a> <span class="kd">local</span> <span class="n">banner_name_escaped</span> <span class="o">=</span> <span class="n">banner_name</span><span class="p">.</span><span class="n">text</span> </span><span id="L-289"><a href="#L-289"><span class="linenos" data-line="289"></span></a> <span class="kd">local</span> <span class="n">page_content</span> <span class="o">=</span> <span class="nb">require</span><span class="p">(</span><span class="s1">'Module:Wikitext Parsing'</span><span class="p">).</span><span class="n">PrepareText</span><span class="p">(</span><span class="n">title</span><span class="p">:</span><span class="n">getContent</span><span class="p">())</span> <span class="c1">-- get content of current page</span> </span><span id="L-290"><a href="#L-290"><span class="linenos" data-line="290"></span></a> <span class="kd">local</span> <span class="n">content_without_shell</span> </span><span id="L-291"><a href="#L-291"><span class="linenos" data-line="291"></span></a> <span class="kr">for</span> <span class="n">capture</span> <span class="kr">in</span> <span class="n">mw</span><span class="p">.</span><span class="n">ustring</span><span class="p">.</span><span class="n">gmatch</span><span class="p">(</span><span class="n">page_content</span><span class="p">,</span> <span class="s1">'%b{}'</span><span class="p">)</span> <span class="kr">do</span> <span class="c1">-- look for possible templates on page</span> </span><span id="L-292"><a href="#L-292"><span class="linenos" data-line="292"></span></a> <span class="kr">for</span> <span class="n">_</span><span class="p">,</span> <span class="n">redirect</span> <span class="kr">in</span> <span class="nb">ipairs</span><span class="p">(</span><span class="n">cfg</span><span class="p">.</span><span class="n">banner_shell</span><span class="p">.</span><span class="n">redirects</span><span class="p">)</span> <span class="kr">do</span> </span><span id="L-293"><a href="#L-293"><span class="linenos" data-line="293"></span></a> <span class="kr">if</span> <span class="n">mw</span><span class="p">.</span><span class="n">ustring</span><span class="p">.</span><span class="n">find</span><span class="p">(</span><span class="n">capture</span><span class="p">,</span> <span class="s1">'^{{%s*'</span> <span class="o">..</span> <span class="n">redirect</span> <span class="o">..</span> <span class="s1">'%s*[|}].*}}$'</span><span class="p">)</span> <span class="kr">then</span> <span class="c1">-- found a banner shell</span> </span><span id="L-294"><a href="#L-294"><span class="linenos" data-line="294"></span></a> <span class="n">banner_name_escaped</span> <span class="o">=</span> <span class="n">banner_name_escaped</span><span class="p">:</span><span class="n">gsub</span><span class="p">(</span><span class="n">special_chars</span><span class="p">,</span> <span class="s1">'%%%1'</span><span class="p">)</span> <span class="c1">-- escape each special character</span> </span><span id="L-295"><a href="#L-295"><span class="linenos" data-line="295"></span></a> <span class="n">capture</span> <span class="o">=</span> <span class="n">capture</span><span class="p">:</span><span class="n">gsub</span><span class="p">(</span><span class="n">special_chars</span><span class="p">,</span> <span class="s1">'%%%1'</span><span class="p">)</span> </span><span id="L-296"><a href="#L-296"><span class="linenos" data-line="296"></span></a> <span class="n">content_without_shell</span> <span class="o">=</span> <span class="n">mw</span><span class="p">.</span><span class="n">ustring</span><span class="p">.</span><span class="n">gsub</span><span class="p">(</span><span class="n">page_content</span><span class="p">,</span> <span class="n">capture</span><span class="p">,</span> <span class="s1">''</span><span class="p">)</span> <span class="c1">-- remove banner shell content from page content</span> </span><span id="L-297"><a href="#L-297"><span class="linenos" data-line="297"></span></a> <span class="kr">end</span> </span><span id="L-298"><a href="#L-298"><span class="linenos" data-line="298"></span></a> <span class="kr">if</span> <span class="n">content_without_shell</span> <span class="kr">then</span> <span class="kr">break</span> <span class="kr">end</span> </span><span id="L-299"><a href="#L-299"><span class="linenos" data-line="299"></span></a> <span class="kr">end</span> </span><span id="L-300"><a href="#L-300"><span class="linenos" data-line="300"></span></a> <span class="kr">if</span> <span class="n">content_without_shell</span> <span class="kr">then</span> <span class="kr">break</span> <span class="kr">end</span> </span><span id="L-301"><a href="#L-301"><span class="linenos" data-line="301"></span></a> <span class="kr">end</span> </span><span id="L-302"><a href="#L-302"><span class="linenos" data-line="302"></span></a> <span class="kd">local</span> <span class="n">template_outside_shell</span> </span><span id="L-303"><a href="#L-303"><span class="linenos" data-line="303"></span></a> <span class="kr">if</span> <span class="n">content_without_shell</span> <span class="ow">and</span> <span class="n">mw</span><span class="p">.</span><span class="n">ustring</span><span class="p">.</span><span class="n">find</span><span class="p">(</span><span class="n">content_without_shell</span><span class="p">,</span> <span class="s1">'{{%s*'</span> <span class="o">..</span> <span class="n">banner_name_escaped</span> <span class="o">..</span> <span class="s1">'%s*[|}]'</span><span class="p">)</span> <span class="kr">then</span> <span class="c1">-- found banner template outside of the shell</span> </span><span id="L-304"><a href="#L-304"><span class="linenos" data-line="304"></span></a> <span class="n">add_category</span><span class="p">(</span><span class="n">cfg</span><span class="p">.</span><span class="n">banner_shell</span><span class="p">.</span><span class="n">category</span><span class="p">.</span><span class="n">outside_shell</span><span class="p">)</span> </span><span id="L-305"><a href="#L-305"><span class="linenos" data-line="305"></span></a> <span class="kr">end</span> </span><span id="L-306"><a href="#L-306"><span class="linenos" data-line="306"></span></a><span class="kr">else</span> <span class="c1">-- no banner shell on page</span> </span><span id="L-307"><a href="#L-307"><span class="linenos" data-line="307"></span></a> <span class="kr">if</span> <span class="n">article</span> <span class="kr">then</span> </span><span id="L-308"><a href="#L-308"><span class="linenos" data-line="308"></span></a> <span class="n">add_category</span><span class="p">(</span><span class="n">cfg</span><span class="p">.</span><span class="n">banner_shell</span><span class="p">.</span><span class="n">category</span><span class="p">.</span><span class="n">no_banner_shell_articles</span><span class="p">)</span> </span><span id="L-309"><a href="#L-309"><span class="linenos" data-line="309"></span></a> <span class="kr">elseif</span> <span class="n">title</span><span class="p">.</span><span class="n">namespace</span><span class="o">==</span><span class="mi">3</span> <span class="kr">then</span> <span class="c1">--User talk namespace</span> </span><span id="L-310"><a href="#L-310"><span class="linenos" data-line="310"></span></a> <span class="kr">for</span> <span class="n">_</span><span class="p">,</span> <span class="n">user</span> <span class="kr">in</span> <span class="nb">ipairs</span><span class="p">(</span><span class="n">cfg</span><span class="p">.</span><span class="n">banner_shell</span><span class="p">.</span><span class="n">valid_users</span><span class="p">)</span> <span class="kr">do</span> </span><span id="L-311"><a href="#L-311"><span class="linenos" data-line="311"></span></a> <span class="kr">if</span> <span class="nb">string.find</span><span class="p">(</span><span class="n">title</span><span class="p">.</span><span class="n">rootText</span><span class="p">,</span> <span class="n">user</span><span class="p">)</span> <span class="kr">then</span> </span><span id="L-312"><a href="#L-312"><span class="linenos" data-line="312"></span></a> <span class="n">add_category</span><span class="p">(</span><span class="n">cfg</span><span class="p">.</span><span class="n">banner_shell</span><span class="p">.</span><span class="n">category</span><span class="p">.</span><span class="n">no_banner_shell</span><span class="p">)</span> </span><span id="L-313"><a href="#L-313"><span class="linenos" data-line="313"></span></a> <span class="kr">end</span> </span><span id="L-314"><a href="#L-314"><span class="linenos" data-line="314"></span></a> <span class="kr">end</span> </span><span id="L-315"><a href="#L-315"><span class="linenos" data-line="315"></span></a> <span class="kr">elseif</span> <span class="n">title</span><span class="p">.</span><span class="n">namespace</span><span class="o">~=</span><span class="mi">2</span> <span class="kr">then</span> <span class="c1">--User namespace</span> </span><span id="L-316"><a href="#L-316"><span class="linenos" data-line="316"></span></a> <span class="n">add_category</span><span class="p">(</span><span class="n">cfg</span><span class="p">.</span><span class="n">banner_shell</span><span class="p">.</span><span class="n">category</span><span class="p">.</span><span class="n">no_banner_shell</span><span class="p">)</span> </span><span id="L-317"><a href="#L-317"><span class="linenos" data-line="317"></span></a> <span class="kr">end</span> </span><span id="L-318"><a href="#L-318"><span class="linenos" data-line="318"></span></a><span class="kr">end</span> </span><span id="L-319"><a href="#L-319"><span class="linenos" data-line="319"></span></a><span class="c1">---------------------------</span> </span><span id="L-320"><a href="#L-320"><span class="linenos" data-line="320"></span></a><span class="c1">-- Quality assessment -----</span> </span><span id="L-321"><a href="#L-321"><span class="linenos" data-line="321"></span></a><span class="c1">---------------------------</span> </span><span id="L-322"><a href="#L-322"><span class="linenos" data-line="322"></span></a><span class="kd">local</span> <span class="n">assessment_link</span> <span class="o">=</span> <span class="n">args</span><span class="p">.</span><span class="n">ASSESSMENT_LINK</span> </span><span id="L-323"><a href="#L-323"><span class="linenos" data-line="323"></span></a><span class="kr">if</span> <span class="ow">not</span> <span class="n">assessment_link</span> <span class="kr">then</span> </span><span id="L-324"><a href="#L-324"><span class="linenos" data-line="324"></span></a> <span class="kd">local</span> <span class="n">fallback</span> <span class="o">=</span> <span class="n">mw</span><span class="p">.</span><span class="n">title</span><span class="p">.</span><span class="n">new</span><span class="p">(</span><span class="n">project_link</span><span class="p">.</span><span class="n">prefixedText</span> <span class="o">..</span> <span class="s1">'/Assessment'</span><span class="p">)</span> </span><span id="L-325"><a href="#L-325"><span class="linenos" data-line="325"></span></a> <span class="n">assessment_link</span> <span class="o">=</span> <span class="n">fallback</span><span class="p">.</span><span class="n">exists</span> <span class="ow">and</span> <span class="n">fallback</span><span class="p">.</span><span class="n">prefixedText</span> </span><span id="L-326"><a href="#L-326"><span class="linenos" data-line="326"></span></a><span class="kr">elseif</span> <span class="n">assessment_link</span><span class="o">==</span><span class="s1">'no'</span> <span class="kr">then</span> </span><span id="L-327"><a href="#L-327"><span class="linenos" data-line="327"></span></a> <span class="n">assessment_link</span> <span class="o">=</span> <span class="kc">nil</span> </span><span id="L-328"><a href="#L-328"><span class="linenos" data-line="328"></span></a><span class="kr">end</span> </span><span id="L-329"><a href="#L-329"><span class="linenos" data-line="329"></span></a><span class="kd">local</span> <span class="n">check_exists</span> <span class="o">=</span> <span class="kr">function</span><span class="p">(</span><span class="n">class</span><span class="p">,</span> <span class="n">assessment_cat</span><span class="p">)</span> <span class="c1">-- check if category exists and is not blank</span> </span><span id="L-330"><a href="#L-330"><span class="linenos" data-line="330"></span></a> <span class="kr">if</span> <span class="ow">not</span> <span class="n">isarticle</span><span class="p">(</span><span class="n">class</span><span class="p">)</span> <span class="kr">then</span> </span><span id="L-331"><a href="#L-331"><span class="linenos" data-line="331"></span></a> <span class="kd">local</span> <span class="n">cat</span> <span class="o">=</span> <span class="n">mw</span><span class="p">.</span><span class="n">title</span><span class="p">.</span><span class="n">new</span><span class="p">(</span><span class="s1">'Category:'</span> <span class="o">..</span> <span class="n">class</span> <span class="o">..</span> <span class="s1">'-Class'</span> <span class="o">..</span> <span class="s1">' '</span> <span class="o">..</span> <span class="n">assessment_cat</span><span class="p">)</span> </span><span id="L-332"><a href="#L-332"><span class="linenos" data-line="332"></span></a> <span class="kr">return</span> <span class="p">(</span><span class="n">cat</span><span class="p">.</span><span class="n">exists</span> <span class="ow">and</span> <span class="o">#</span><span class="n">cat</span><span class="p">:</span><span class="n">getContent</span><span class="p">()</span><span class="o">></span><span class="mi">0</span><span class="p">)</span> <span class="ow">and</span> <span class="n">class</span> <span class="ow">or</span> <span class="s1">'NA'</span> <span class="c1">-- automatically use NA for non-article pages if category does not exist</span> </span><span id="L-333"><a href="#L-333"><span class="linenos" data-line="333"></span></a> <span class="kr">else</span> </span><span id="L-334"><a href="#L-334"><span class="linenos" data-line="334"></span></a> <span class="kr">return</span> <span class="n">class</span> </span><span id="L-335"><a href="#L-335"><span class="linenos" data-line="335"></span></a> <span class="kr">end</span> </span><span id="L-336"><a href="#L-336"><span class="linenos" data-line="336"></span></a><span class="kr">end</span> </span><span id="L-337"><a href="#L-337"><span class="linenos" data-line="337"></span></a><span class="kd">local</span> <span class="n">class</span> <span class="o">=</span> <span class="n">raw_args</span><span class="p">.</span><span class="n">class</span> </span><span id="L-338"><a href="#L-338"><span class="linenos" data-line="338"></span></a><span class="kr">if</span> <span class="n">class</span> <span class="kr">then</span> <span class="c1">-- banner gives quality ratings</span> </span><span id="L-339"><a href="#L-339"><span class="linenos" data-line="339"></span></a> <span class="n">article_class</span> <span class="o">=</span> <span class="n">article_class</span> <span class="ow">and</span> <span class="n">p</span><span class="p">.</span><span class="n">class_mask</span><span class="p">(</span><span class="n">article_class</span><span class="p">,</span> <span class="n">title</span><span class="p">,</span> <span class="kc">false</span><span class="p">,</span> <span class="n">pagetype</span><span class="p">,</span> <span class="n">article</span><span class="p">)</span> </span><span id="L-340"><a href="#L-340"><span class="linenos" data-line="340"></span></a> <span class="kd">local</span> <span class="n">show_quality</span><span class="p">,</span> <span class="n">conflict</span> <span class="o">=</span> <span class="kc">false</span><span class="p">,</span> <span class="kc">false</span> </span><span id="L-341"><a href="#L-341"><span class="linenos" data-line="341"></span></a> <span class="kr">if</span> <span class="n">args</span><span class="p">.</span><span class="n">QUALITY_CRITERIA</span><span class="o">==</span><span class="s1">'custom'</span> <span class="kr">then</span> <span class="c1">-- project has opted out of standard assessment scale and uses a custom mask</span> </span><span id="L-342"><a href="#L-342"><span class="linenos" data-line="342"></span></a> <span class="kd">local</span> <span class="n">custom_mask</span> <span class="o">=</span> <span class="n">banner_name</span><span class="p">:</span><span class="n">subPageTitle</span><span class="p">(</span><span class="s1">'class'</span><span class="p">)</span> </span><span id="L-343"><a href="#L-343"><span class="linenos" data-line="343"></span></a> <span class="kr">if</span> <span class="n">custom_mask</span><span class="p">.</span><span class="n">exists</span> <span class="ow">and</span> <span class="o">#</span><span class="n">custom_mask</span><span class="p">:</span><span class="n">getContent</span><span class="p">()</span><span class="o">></span><span class="mi">1</span> <span class="kr">then</span> </span><span id="L-344"><a href="#L-344"><span class="linenos" data-line="344"></span></a> <span class="n">raw_args</span><span class="p">.</span><span class="n">demo_page</span> <span class="o">=</span> <span class="n">demo_page</span> <span class="c1">-- send demo_page to custom mask</span> </span><span id="L-345"><a href="#L-345"><span class="linenos" data-line="345"></span></a> <span class="n">class</span> <span class="o">=</span> <span class="n">mw</span><span class="p">.</span><span class="n">text</span><span class="p">.</span><span class="n">trim</span><span class="p">(</span><span class="n">frame</span><span class="p">:</span><span class="n">expandTemplate</span><span class="p">{</span> </span><span id="L-346"><a href="#L-346"><span class="linenos" data-line="346"></span></a> <span class="n">title</span> <span class="o">=</span> <span class="n">custom_mask</span><span class="p">.</span><span class="n">prefixedText</span><span class="p">,</span> </span><span id="L-347"><a href="#L-347"><span class="linenos" data-line="347"></span></a> <span class="n">args</span> <span class="o">=</span> <span class="n">raw_args</span> </span><span id="L-348"><a href="#L-348"><span class="linenos" data-line="348"></span></a> <span class="p">})</span> </span><span id="L-349"><a href="#L-349"><span class="linenos" data-line="349"></span></a> <span class="kr">if</span> <span class="n">class</span><span class="o">==</span><span class="s1">''</span> <span class="ow">and</span> <span class="n">article_class</span> <span class="ow">and</span> <span class="n">article_class</span><span class="o">~=</span><span class="s1">''</span> <span class="kr">then</span> <span class="c1">-- if unassessed and article class exists, check if it can be inherited</span> </span><span id="L-350"><a href="#L-350"><span class="linenos" data-line="350"></span></a> <span class="kd">local</span> <span class="n">new_arg_table</span> <span class="o">=</span> <span class="p">{}</span> </span><span id="L-351"><a href="#L-351"><span class="linenos" data-line="351"></span></a> <span class="kr">for</span> <span class="n">arg</span><span class="p">,</span> <span class="n">val</span> <span class="kr">in</span> <span class="nb">pairs</span><span class="p">(</span><span class="n">raw_args</span><span class="p">)</span> <span class="kr">do</span> <span class="c1">-- construct new argument table to send to custom mask</span> </span><span id="L-352"><a href="#L-352"><span class="linenos" data-line="352"></span></a> <span class="n">new_arg_table</span><span class="p">[</span><span class="n">arg</span><span class="p">]</span> <span class="o">=</span> <span class="n">val</span> </span><span id="L-353"><a href="#L-353"><span class="linenos" data-line="353"></span></a> <span class="kr">end</span> </span><span id="L-354"><a href="#L-354"><span class="linenos" data-line="354"></span></a> <span class="n">new_arg_table</span><span class="p">.</span><span class="n">class</span> <span class="o">=</span> <span class="n">article_class</span> <span class="c1">-- replace class with inherited class</span> </span><span id="L-355"><a href="#L-355"><span class="linenos" data-line="355"></span></a> <span class="kd">local</span> <span class="n">article_class_normalised</span> <span class="o">=</span> <span class="n">mw</span><span class="p">.</span><span class="n">text</span><span class="p">.</span><span class="n">trim</span><span class="p">(</span><span class="n">frame</span><span class="p">:</span><span class="n">expandTemplate</span><span class="p">{</span> </span><span id="L-356"><a href="#L-356"><span class="linenos" data-line="356"></span></a> <span class="n">title</span> <span class="o">=</span> <span class="n">custom_mask</span><span class="p">.</span><span class="n">prefixedText</span><span class="p">,</span> </span><span id="L-357"><a href="#L-357"><span class="linenos" data-line="357"></span></a> <span class="n">args</span> <span class="o">=</span> <span class="n">new_arg_table</span> </span><span id="L-358"><a href="#L-358"><span class="linenos" data-line="358"></span></a> <span class="p">})</span> </span><span id="L-359"><a href="#L-359"><span class="linenos" data-line="359"></span></a> <span class="kr">if</span> <span class="n">article_class_normalised</span> <span class="ow">and</span> <span class="n">article_class_normalised</span><span class="o">~=</span><span class="s1">''</span> <span class="kr">then</span> </span><span id="L-360"><a href="#L-360"><span class="linenos" data-line="360"></span></a> <span class="n">class</span> <span class="o">=</span> <span class="n">article_class_normalised</span> <span class="c1">-- inherit class from article_class normalised by custom mask</span> </span><span id="L-361"><a href="#L-361"><span class="linenos" data-line="361"></span></a> <span class="kr">else</span> </span><span id="L-362"><a href="#L-362"><span class="linenos" data-line="362"></span></a> <span class="n">article_class</span> <span class="o">=</span> <span class="kc">nil</span> <span class="c1">-- effectively no article_class for this banner</span> </span><span id="L-363"><a href="#L-363"><span class="linenos" data-line="363"></span></a> <span class="kr">end</span> </span><span id="L-364"><a href="#L-364"><span class="linenos" data-line="364"></span></a> <span class="kr">end</span> </span><span id="L-365"><a href="#L-365"><span class="linenos" data-line="365"></span></a> <span class="kr">end</span> </span><span id="L-366"><a href="#L-366"><span class="linenos" data-line="366"></span></a> <span class="kr">else</span> </span><span id="L-367"><a href="#L-367"><span class="linenos" data-line="367"></span></a> <span class="n">class</span> <span class="o">=</span> <span class="n">p</span><span class="p">.</span><span class="n">class_mask</span><span class="p">(</span><span class="n">class</span><span class="p">,</span> <span class="n">title</span><span class="p">,</span> <span class="kc">true</span><span class="p">,</span> <span class="n">pagetype</span><span class="p">,</span> <span class="n">article</span><span class="p">)</span> </span><span id="L-368"><a href="#L-368"><span class="linenos" data-line="368"></span></a> <span class="kr">end</span> </span><span id="L-369"><a href="#L-369"><span class="linenos" data-line="369"></span></a> <span class="kr">if</span> <span class="ow">not</span> <span class="n">isarticle</span><span class="p">(</span><span class="n">class</span><span class="p">)</span> <span class="kr">then</span> <span class="c1">-- check fallbacks for non-article classes</span> </span><span id="L-370"><a href="#L-370"><span class="linenos" data-line="370"></span></a> <span class="kd">local</span> <span class="n">category_exists</span> <span class="o">=</span> <span class="kr">function</span><span class="p">(</span><span class="n">class</span><span class="p">)</span> </span><span id="L-371"><a href="#L-371"><span class="linenos" data-line="371"></span></a> <span class="kd">local</span> <span class="n">cat</span> <span class="o">=</span> <span class="n">mw</span><span class="p">.</span><span class="n">title</span><span class="p">.</span><span class="n">new</span><span class="p">(</span><span class="n">cfg</span><span class="p">.</span><span class="n">quality</span><span class="p">.</span><span class="n">assessment_category</span><span class="p">:</span><span class="n">format</span><span class="p">(</span><span class="n">class</span><span class="p">,</span> <span class="n">assessment_cat</span><span class="p">))</span> </span><span id="L-372"><a href="#L-372"><span class="linenos" data-line="372"></span></a> <span class="kr">return</span> <span class="n">cat</span><span class="p">.</span><span class="n">exists</span> <span class="ow">and</span> <span class="o">#</span><span class="n">cat</span><span class="p">:</span><span class="n">getContent</span><span class="p">()</span><span class="o">></span><span class="mi">0</span> <span class="c1">-- check if category exists and is not blank</span> </span><span id="L-373"><a href="#L-373"><span class="linenos" data-line="373"></span></a> <span class="kr">end</span> </span><span id="L-374"><a href="#L-374"><span class="linenos" data-line="374"></span></a> <span class="kr">if</span> <span class="n">class</span><span class="o">==</span><span class="s1">'FM'</span> <span class="ow">and</span> <span class="ow">not</span> <span class="n">category_exists</span><span class="p">(</span><span class="s1">'FM'</span><span class="p">)</span> <span class="kr">then</span> </span><span id="L-375"><a href="#L-375"><span class="linenos" data-line="375"></span></a> <span class="n">class</span> <span class="o">=</span> <span class="s1">'File'</span> <span class="c1">-- fall back to File-class if FM category does not exist</span> </span><span id="L-376"><a href="#L-376"><span class="linenos" data-line="376"></span></a> <span class="kr">end</span> </span><span id="L-377"><a href="#L-377"><span class="linenos" data-line="377"></span></a> <span class="kr">if</span> <span class="ow">not</span> <span class="n">category_exists</span><span class="p">(</span><span class="n">class</span><span class="p">)</span> <span class="kr">then</span> </span><span id="L-378"><a href="#L-378"><span class="linenos" data-line="378"></span></a> <span class="n">class</span> <span class="o">=</span> <span class="s1">'NA'</span> <span class="c1">-- automatically use NA for non-article pages if category does not exist</span> </span><span id="L-379"><a href="#L-379"><span class="linenos" data-line="379"></span></a> <span class="kr">end</span> </span><span id="L-380"><a href="#L-380"><span class="linenos" data-line="380"></span></a> <span class="kr">end</span> </span><span id="L-381"><a href="#L-381"><span class="linenos" data-line="381"></span></a> <span class="kd">local</span> <span class="n">show</span> <span class="o">=</span> <span class="kc">false</span> </span><span id="L-382"><a href="#L-382"><span class="linenos" data-line="382"></span></a> <span class="kd">local</span> <span class="n">check_redundant</span> <span class="o">=</span> <span class="kr">function</span><span class="p">()</span> </span><span id="L-383"><a href="#L-383"><span class="linenos" data-line="383"></span></a> <span class="kr">if</span> <span class="n">raw_args</span><span class="p">.</span><span class="n">class</span><span class="o">~=</span><span class="s1">''</span> <span class="ow">and</span> <span class="n">args</span><span class="p">.</span><span class="n">QUALITY_CRITERIA</span><span class="o">~=</span><span class="s1">'custom'</span> <span class="kr">then</span> <span class="c1">-- banner has a non-blank class value which is ignored</span> </span><span id="L-384"><a href="#L-384"><span class="linenos" data-line="384"></span></a> <span class="kr">return</span> <span class="n">add_category</span><span class="p">(</span><span class="n">cfg</span><span class="p">.</span><span class="n">banner_shell</span><span class="p">.</span><span class="n">category</span><span class="p">.</span><span class="n">redundant_class</span><span class="p">)</span> </span><span id="L-385"><a href="#L-385"><span class="linenos" data-line="385"></span></a> <span class="kr">end</span> </span><span id="L-386"><a href="#L-386"><span class="linenos" data-line="386"></span></a> <span class="kr">end</span> </span><span id="L-387"><a href="#L-387"><span class="linenos" data-line="387"></span></a> <span class="kr">if</span> <span class="n">article_class</span> <span class="kr">then</span> <span class="c1">-- banner shell exists</span> </span><span id="L-388"><a href="#L-388"><span class="linenos" data-line="388"></span></a> <span class="kr">if</span> <span class="n">class</span><span class="o">==</span><span class="s1">''</span> <span class="ow">or</span> <span class="n">class</span><span class="o">==</span><span class="n">article_class</span> <span class="kr">then</span> <span class="c1">-- local class matches article class or is blank</span> </span><span id="L-389"><a href="#L-389"><span class="linenos" data-line="389"></span></a> <span class="n">class</span> <span class="o">=</span> <span class="n">article_class</span> </span><span id="L-390"><a href="#L-390"><span class="linenos" data-line="390"></span></a> <span class="n">check_redundant</span><span class="p">()</span> </span><span id="L-391"><a href="#L-391"><span class="linenos" data-line="391"></span></a> <span class="kr">elseif</span> <span class="n">article_class</span><span class="o">==</span><span class="s1">''</span> <span class="kr">then</span> <span class="c1">-- local class defined and no article class defined</span> </span><span id="L-392"><a href="#L-392"><span class="linenos" data-line="392"></span></a> <span class="n">add_category</span><span class="p">(</span><span class="n">cfg</span><span class="p">.</span><span class="n">banner_shell</span><span class="p">.</span><span class="n">category</span><span class="p">.</span><span class="n">no_quality_rating</span><span class="p">)</span> </span><span id="L-393"><a href="#L-393"><span class="linenos" data-line="393"></span></a> <span class="kr">if</span> <span class="n">args</span><span class="p">.</span><span class="n">QUALITY_CRITERIA</span><span class="o">~=</span><span class="s1">'custom'</span> <span class="kr">then</span> </span><span id="L-394"><a href="#L-394"><span class="linenos" data-line="394"></span></a> <span class="n">warning</span> <span class="o">=</span> <span class="n">warning</span> <span class="o">..</span> <span class="n">display_error</span><span class="p">(</span><span class="n">cfg</span><span class="p">.</span><span class="n">banner_shell</span><span class="p">.</span><span class="n">piqa_warning</span><span class="p">)</span> </span><span id="L-395"><a href="#L-395"><span class="linenos" data-line="395"></span></a> <span class="kr">end</span> </span><span id="L-396"><a href="#L-396"><span class="linenos" data-line="396"></span></a> <span class="kr">elseif</span> <span class="ow">not</span> <span class="n">article</span> <span class="ow">and</span> <span class="ow">not</span> <span class="n">isarticle</span><span class="p">(</span><span class="n">class</span><span class="p">)</span> <span class="ow">and</span> <span class="n">class</span><span class="o">~=</span><span class="s1">'FM'</span> <span class="kr">then</span> <span class="c1">-- article class and local class are both non-article classes</span> </span><span id="L-397"><a href="#L-397"><span class="linenos" data-line="397"></span></a> <span class="n">check_redundant</span><span class="p">()</span> </span><span id="L-398"><a href="#L-398"><span class="linenos" data-line="398"></span></a> <span class="kr">elseif</span> <span class="n">args</span><span class="p">.</span><span class="n">QUALITY_CRITERIA</span><span class="o">==</span><span class="s1">'custom'</span> <span class="kr">then</span> <span class="c1">-- project uses custom criteria and class differs</span> </span><span id="L-399"><a href="#L-399"><span class="linenos" data-line="399"></span></a> <span class="n">show</span> <span class="o">=</span> <span class="kc">true</span> <span class="c1">-- show quality class in project banner</span> </span><span id="L-400"><a href="#L-400"><span class="linenos" data-line="400"></span></a> <span class="kr">else</span> <span class="c1">-- article class exists and differs from local class</span> </span><span id="L-401"><a href="#L-401"><span class="linenos" data-line="401"></span></a> <span class="n">show</span> <span class="o">=</span> <span class="s1">'conflict'</span> </span><span id="L-402"><a href="#L-402"><span class="linenos" data-line="402"></span></a> <span class="n">add_category</span><span class="p">(</span><span class="n">class</span> <span class="o">..</span> <span class="n">cfg</span><span class="p">.</span><span class="n">banner_shell</span><span class="p">.</span><span class="n">conflict</span><span class="p">.</span><span class="n">category</span><span class="p">)</span> </span><span id="L-403"><a href="#L-403"><span class="linenos" data-line="403"></span></a> <span class="kr">end</span> </span><span id="L-404"><a href="#L-404"><span class="linenos" data-line="404"></span></a> <span class="kr">else</span> </span><span id="L-405"><a href="#L-405"><span class="linenos" data-line="405"></span></a> <span class="n">show</span> <span class="o">=</span> <span class="kc">true</span> </span><span id="L-406"><a href="#L-406"><span class="linenos" data-line="406"></span></a> <span class="kr">end</span> </span><span id="L-407"><a href="#L-407"><span class="linenos" data-line="407"></span></a> <span class="kd">local</span> <span class="n">category</span> <span class="o">=</span> <span class="p">(</span><span class="n">class</span><span class="o">==</span><span class="s1">''</span> <span class="ow">and</span> <span class="s1">'Unassessed'</span> <span class="ow">or</span> <span class="n">class</span><span class="o">..</span><span class="s1">'-Class'</span><span class="p">)</span> <span class="o">..</span> <span class="s1">' '</span> <span class="o">..</span> <span class="n">assessment_cat</span> </span><span id="L-408"><a href="#L-408"><span class="linenos" data-line="408"></span></a> <span class="kr">if</span> <span class="n">show</span> <span class="kr">then</span> <span class="c1">-- quality rating shown in banner</span> </span><span id="L-409"><a href="#L-409"><span class="linenos" data-line="409"></span></a> <span class="kd">local</span> <span class="n">rating</span> </span><span id="L-410"><a href="#L-410"><span class="linenos" data-line="410"></span></a> <span class="kr">if</span> <span class="n">article</span> <span class="kr">then</span> </span><span id="L-411"><a href="#L-411"><span class="linenos" data-line="411"></span></a> <span class="n">rating</span> <span class="o">=</span> <span class="n">class</span><span class="o">==</span><span class="s1">''</span> <span class="ow">and</span> <span class="n">cfg</span><span class="p">.</span><span class="n">quality</span><span class="p">.</span><span class="n">not_yet</span> <span class="ow">or</span> <span class="n">cfg</span><span class="p">.</span><span class="n">quality</span><span class="p">.</span><span class="n">rated</span><span class="p">:</span><span class="n">format</span><span class="p">(</span><span class="n">class</span><span class="p">)</span> </span><span id="L-412"><a href="#L-412"><span class="linenos" data-line="412"></span></a> <span class="kr">else</span> </span><span id="L-413"><a href="#L-413"><span class="linenos" data-line="413"></span></a> <span class="n">rating</span> <span class="o">=</span> <span class="n">cfg</span><span class="p">.</span><span class="n">quality</span><span class="p">.</span><span class="n">not_required</span> </span><span id="L-414"><a href="#L-414"><span class="linenos" data-line="414"></span></a> <span class="kr">end</span> </span><span id="L-415"><a href="#L-415"><span class="linenos" data-line="415"></span></a> <span class="kd">local</span> <span class="n">scale</span> <span class="o">=</span> <span class="n">args</span><span class="p">.</span><span class="n">QUALITY_CRITERIA</span><span class="o">==</span><span class="s1">'custom'</span> </span><span id="L-416"><a href="#L-416"><span class="linenos" data-line="416"></span></a> <span class="ow">and</span> <span class="n">assessment_link</span> </span><span id="L-417"><a href="#L-417"><span class="linenos" data-line="417"></span></a> <span class="ow">and</span> <span class="n">cfg</span><span class="p">.</span><span class="n">quality</span><span class="p">.</span><span class="n">project_scale</span><span class="p">:</span><span class="n">format</span><span class="p">(</span><span class="n">wikilink</span><span class="p">(</span><span class="n">assessment_link</span><span class="o">..</span><span class="s1">'#'</span><span class="o">..</span><span class="n">lang</span><span class="p">:</span><span class="n">ucfirst</span><span class="p">(</span><span class="n">cfg</span><span class="p">.</span><span class="n">quality</span><span class="p">.</span><span class="n">name</span><span class="p">),</span> <span class="n">cfg</span><span class="p">.</span><span class="n">quality</span><span class="p">.</span><span class="n">name</span><span class="p">))</span> </span><span id="L-418"><a href="#L-418"><span class="linenos" data-line="418"></span></a> <span class="ow">or</span> <span class="n">cfg</span><span class="p">.</span><span class="n">quality</span><span class="p">.</span><span class="n">default_scale</span> </span><span id="L-419"><a href="#L-419"><span class="linenos" data-line="419"></span></a> <span class="kd">local</span> <span class="n">quality_rating</span> <span class="o">=</span> <span class="n">show</span><span class="o">==</span><span class="s1">'conflict'</span> </span><span id="L-420"><a href="#L-420"><span class="linenos" data-line="420"></span></a> <span class="ow">and</span> <span class="n">cfg</span><span class="p">.</span><span class="n">banner_shell</span><span class="p">.</span><span class="n">conflict</span><span class="p">.</span><span class="n">text</span> </span><span id="L-421"><a href="#L-421"><span class="linenos" data-line="421"></span></a> <span class="ow">or</span> <span class="n">cfg</span><span class="p">.</span><span class="n">quality</span><span class="p">.</span><span class="n">rating</span><span class="p">:</span><span class="n">format</span><span class="p">(</span><span class="n">rating</span><span class="p">,</span> <span class="n">scale</span><span class="p">)</span> </span><span id="L-422"><a href="#L-422"><span class="linenos" data-line="422"></span></a> <span class="kd">local</span> <span class="n">cssClass</span> <span class="o">=</span> <span class="s1">'class-'</span> <span class="o">..</span> <span class="p">(</span><span class="n">class</span><span class="o">==</span><span class="s1">''</span> <span class="ow">and</span> <span class="s1">'unassessed'</span> <span class="ow">or</span> <span class="n">class</span><span class="p">:</span><span class="n">lower</span><span class="p">())</span> </span><span id="L-423"><a href="#L-423"><span class="linenos" data-line="423"></span></a> <span class="kd">local</span> <span class="n">class_row</span> <span class="o">=</span> <span class="n">mw</span><span class="p">.</span><span class="n">html</span><span class="p">.</span><span class="n">create</span><span class="p">(</span><span class="s1">'tr'</span><span class="p">)</span> </span><span id="L-424"><a href="#L-424"><span class="linenos" data-line="424"></span></a> <span class="p">:</span><span class="n">tag</span><span class="p">(</span><span class="s1">'td'</span><span class="p">)</span> </span><span id="L-425"><a href="#L-425"><span class="linenos" data-line="425"></span></a> <span class="p">:</span><span class="n">addClass</span><span class="p">(</span><span class="s1">'assess'</span><span class="p">)</span> </span><span id="L-426"><a href="#L-426"><span class="linenos" data-line="426"></span></a> <span class="p">:</span><span class="n">addClass</span><span class="p">(</span><span class="n">cssClass</span><span class="p">)</span> </span><span id="L-427"><a href="#L-427"><span class="linenos" data-line="427"></span></a> <span class="p">:</span><span class="n">addClass</span><span class="p">(</span><span class="n">show</span><span class="o">==</span><span class="s1">'conflict'</span> <span class="ow">and</span> <span class="s1">'conflict'</span> <span class="ow">or</span> <span class="kc">nil</span><span class="p">)</span> </span><span id="L-428"><a href="#L-428"><span class="linenos" data-line="428"></span></a> <span class="p">:</span><span class="n">wikitext</span><span class="p">(</span><span class="n">wikilink</span><span class="p">(</span><span class="s1">':Category:'</span> <span class="o">..</span> <span class="n">category</span><span class="p">,</span> <span class="n">class</span><span class="o">==</span><span class="s1">''</span> <span class="ow">and</span> <span class="s1">'???'</span> <span class="ow">or</span> <span class="n">class</span><span class="p">))</span> </span><span id="L-429"><a href="#L-429"><span class="linenos" data-line="429"></span></a> <span class="p">:</span><span class="n">done</span><span class="p">()</span> </span><span id="L-430"><a href="#L-430"><span class="linenos" data-line="430"></span></a> <span class="p">:</span><span class="n">tag</span><span class="p">(</span><span class="s1">'td'</span><span class="p">)</span> </span><span id="L-431"><a href="#L-431"><span class="linenos" data-line="431"></span></a> <span class="p">:</span><span class="n">addClass</span><span class="p">(</span><span class="s1">'mbox-text'</span><span class="p">)</span> </span><span id="L-432"><a href="#L-432"><span class="linenos" data-line="432"></span></a> <span class="p">:</span><span class="n">attr</span><span class="p">(</span><span class="s1">'colspan'</span><span class="p">,</span> <span class="s1">'2'</span><span class="p">)</span> </span><span id="L-433"><a href="#L-433"><span class="linenos" data-line="433"></span></a> <span class="p">:</span><span class="n">wikitext</span><span class="p">(</span><span class="n">parse_pt</span><span class="p">(</span><span class="n">quality_rating</span><span class="p">))</span> </span><span id="L-434"><a href="#L-434"><span class="linenos" data-line="434"></span></a> <span class="p">:</span><span class="n">done</span><span class="p">()</span> </span><span id="L-435"><a href="#L-435"><span class="linenos" data-line="435"></span></a> <span class="nb">table.insert</span><span class="p">(</span><span class="n">rows</span><span class="p">,</span> <span class="n">class_row</span><span class="p">)</span> </span><span id="L-436"><a href="#L-436"><span class="linenos" data-line="436"></span></a> <span class="nb">table.insert</span><span class="p">(</span> </span><span id="L-437"><a href="#L-437"><span class="linenos" data-line="437"></span></a> <span class="n">nested_ratings</span><span class="p">,</span> </span><span id="L-438"><a href="#L-438"><span class="linenos" data-line="438"></span></a> <span class="mi">1</span><span class="p">,</span> </span><span id="L-439"><a href="#L-439"><span class="linenos" data-line="439"></span></a> <span class="n">bubble</span><span class="p">(</span><span class="n">class</span><span class="o">==</span><span class="s1">''</span> <span class="ow">and</span> <span class="s1">'Unassessed'</span> <span class="ow">or</span> <span class="p">(</span><span class="n">class</span><span class="o">..</span><span class="s1">'‑class'</span><span class="p">),</span> <span class="n">show</span><span class="o">==</span><span class="s1">'conflict'</span><span class="p">,</span> <span class="n">cssClass</span><span class="p">)</span> </span><span id="L-440"><a href="#L-440"><span class="linenos" data-line="440"></span></a> <span class="p">)</span> </span><span id="L-441"><a href="#L-441"><span class="linenos" data-line="441"></span></a> <span class="kr">end</span> </span><span id="L-442"><a href="#L-442"><span class="linenos" data-line="442"></span></a> <span class="n">add_category</span><span class="p">(</span><span class="n">category</span><span class="p">)</span> </span><span id="L-443"><a href="#L-443"><span class="linenos" data-line="443"></span></a><span class="kr">end</span> </span><span id="L-444"><a href="#L-444"><span class="linenos" data-line="444"></span></a><span class="kr">if</span> <span class="n">args</span><span class="p">.</span><span class="n">HOOK_ASSESS</span> <span class="kr">then</span> </span><span id="L-445"><a href="#L-445"><span class="linenos" data-line="445"></span></a> <span class="nb">table.insert</span><span class="p">(</span><span class="n">rows</span><span class="p">,</span> <span class="n">args</span><span class="p">.</span><span class="n">HOOK_ASSESS</span><span class="p">)</span> </span><span id="L-446"><a href="#L-446"><span class="linenos" data-line="446"></span></a><span class="kr">end</span> </span><span id="L-447"><a href="#L-447"><span class="linenos" data-line="447"></span></a><span class="kr">if</span> <span class="n">raw_args</span><span class="p">.</span><span class="n">b1</span> <span class="ow">or</span> <span class="n">raw_args</span><span class="p">.</span><span class="n">b2</span> <span class="ow">or</span> <span class="n">raw_args</span><span class="p">.</span><span class="n">b3</span> <span class="ow">or</span> <span class="n">raw_args</span><span class="p">.</span><span class="n">b4</span> <span class="ow">or</span> <span class="n">raw_args</span><span class="p">.</span><span class="n">b5</span> <span class="ow">or</span> <span class="n">raw_args</span><span class="p">.</span><span class="n">b6</span> <span class="kr">then</span> </span><span id="L-448"><a href="#L-448"><span class="linenos" data-line="448"></span></a> <span class="kd">local</span> <span class="n">b_checklist</span> <span class="o">=</span> <span class="nb">require</span><span class="p">(</span><span class="n">auxiliary</span><span class="p">).</span><span class="n">b_checklist</span><span class="p">(</span><span class="n">args</span><span class="p">,</span> <span class="n">raw_args</span><span class="p">,</span> <span class="n">class</span><span class="p">,</span> <span class="n">demo_page</span><span class="p">,</span> <span class="n">assessment_link</span><span class="p">)</span> </span><span id="L-449"><a href="#L-449"><span class="linenos" data-line="449"></span></a> <span class="nb">table.insert</span><span class="p">(</span><span class="n">rows</span><span class="p">,</span> <span class="n">b_checklist</span><span class="p">)</span> </span><span id="L-450"><a href="#L-450"><span class="linenos" data-line="450"></span></a><span class="kr">end</span> </span><span id="L-451"><a href="#L-451"><span class="linenos" data-line="451"></span></a><span class="c1">---------------------------</span> </span><span id="L-452"><a href="#L-452"><span class="linenos" data-line="452"></span></a><span class="c1">-- Importance assessment --</span> </span><span id="L-453"><a href="#L-453"><span class="linenos" data-line="453"></span></a><span class="c1">---------------------------</span> </span><span id="L-454"><a href="#L-454"><span class="linenos" data-line="454"></span></a><span class="kd">local</span> <span class="n">importance</span> <span class="o">=</span> <span class="n">importance_mask</span><span class="p">(</span><span class="n">raw_args</span><span class="p">.</span><span class="n">importance</span> <span class="ow">or</span> <span class="n">raw_args</span><span class="p">.</span><span class="n">priority</span><span class="p">,</span> <span class="n">args</span><span class="p">.</span><span class="n">IMPORTANCE_SCALE</span><span class="p">,</span> <span class="n">banner_name</span><span class="p">,</span> <span class="n">pagetype</span><span class="p">,</span> <span class="n">class</span><span class="p">)</span> </span><span id="L-455"><a href="#L-455"><span class="linenos" data-line="455"></span></a><span class="kd">local</span> <span class="n">importance_name</span> <span class="o">=</span> <span class="n">args</span><span class="p">.</span><span class="n">IMPN</span> <span class="ow">or</span> <span class="p">(</span><span class="n">raw_args</span><span class="p">.</span><span class="n">priority</span> <span class="ow">and</span> <span class="s1">'priority'</span> <span class="ow">or</span> <span class="n">cfg</span><span class="p">.</span><span class="n">importance</span><span class="p">.</span><span class="n">default_name</span><span class="p">)</span> </span><span id="L-456"><a href="#L-456"><span class="linenos" data-line="456"></span></a><span class="kr">if</span> <span class="n">importance</span> <span class="kr">then</span> <span class="c1">-- banner gives importance ratings</span> </span><span id="L-457"><a href="#L-457"><span class="linenos" data-line="457"></span></a> <span class="kd">local</span> <span class="n">category</span> <span class="o">=</span> <span class="n">importance</span> <span class="o">..</span> <span class="s1">'-'</span> <span class="o">..</span> <span class="n">importance_name</span> <span class="o">..</span> <span class="s1">' '</span> <span class="o">..</span> <span class="n">assessment_cat</span> </span><span id="L-458"><a href="#L-458"><span class="linenos" data-line="458"></span></a> <span class="kr">if</span> <span class="n">importance</span><span class="o">~=</span><span class="s1">'NA'</span> <span class="kr">then</span> <span class="c1">-- display importance rating</span> </span><span id="L-459"><a href="#L-459"><span class="linenos" data-line="459"></span></a> <span class="kd">local</span> <span class="n">rating</span> <span class="o">=</span> <span class="n">importance</span><span class="o">==</span><span class="s1">'Unknown'</span> <span class="ow">and</span> <span class="n">cfg</span><span class="p">.</span><span class="n">importance</span><span class="p">.</span><span class="n">not_yet</span> <span class="ow">or</span> <span class="n">cfg</span><span class="p">.</span><span class="n">importance</span><span class="p">.</span><span class="n">rated</span><span class="p">:</span><span class="n">format</span><span class="p">(</span><span class="n">importance</span><span class="p">,</span> <span class="n">importance_name</span><span class="p">)</span> </span><span id="L-460"><a href="#L-460"><span class="linenos" data-line="460"></span></a> <span class="kd">local</span> <span class="n">scale_name</span> <span class="o">=</span> <span class="n">cfg</span><span class="p">.</span><span class="n">importance</span><span class="p">.</span><span class="n">scale</span><span class="p">:</span><span class="n">format</span><span class="p">(</span><span class="n">importance_name</span><span class="p">)</span> </span><span id="L-461"><a href="#L-461"><span class="linenos" data-line="461"></span></a> <span class="kd">local</span> <span class="n">scale</span> <span class="o">=</span> <span class="n">assessment_link</span> </span><span id="L-462"><a href="#L-462"><span class="linenos" data-line="462"></span></a> <span class="ow">and</span> <span class="n">cfg</span><span class="p">.</span><span class="n">importance</span><span class="p">.</span><span class="n">project_scale</span><span class="p">:</span><span class="n">format</span><span class="p">(</span><span class="n">assessment_link</span><span class="o">..</span><span class="s1">'#'</span><span class="o">..</span><span class="n">lang</span><span class="p">:</span><span class="n">ucfirst</span><span class="p">(</span><span class="n">scale_name</span><span class="p">),</span> <span class="n">scale_name</span><span class="p">)</span> </span><span id="L-463"><a href="#L-463"><span class="linenos" data-line="463"></span></a> <span class="ow">or</span> <span class="n">cfg</span><span class="p">.</span><span class="n">importance</span><span class="p">.</span><span class="n">default_scale</span> </span><span id="L-464"><a href="#L-464"><span class="linenos" data-line="464"></span></a> <span class="kd">local</span> <span class="n">importance_rating</span> <span class="o">=</span> <span class="n">parse_pt</span><span class="p">(</span><span class="n">cfg</span><span class="p">.</span><span class="n">importance</span><span class="p">.</span><span class="n">rating</span><span class="p">:</span><span class="n">format</span><span class="p">(</span><span class="n">rating</span><span class="p">,</span> <span class="n">scale</span><span class="p">))</span> </span><span id="L-465"><a href="#L-465"><span class="linenos" data-line="465"></span></a> <span class="kd">local</span> <span class="n">cssClass</span> <span class="o">=</span> <span class="s1">'import-'</span> <span class="o">..</span> <span class="n">importance</span><span class="p">:</span><span class="n">lower</span><span class="p">()</span> </span><span id="L-466"><a href="#L-466"><span class="linenos" data-line="466"></span></a> <span class="kd">local</span> <span class="n">importance_row</span> <span class="o">=</span> <span class="n">mw</span><span class="p">.</span><span class="n">html</span><span class="p">.</span><span class="n">create</span><span class="p">(</span><span class="s1">'tr'</span><span class="p">)</span> </span><span id="L-467"><a href="#L-467"><span class="linenos" data-line="467"></span></a> <span class="p">:</span><span class="n">tag</span><span class="p">(</span><span class="s1">'td'</span><span class="p">)</span> </span><span id="L-468"><a href="#L-468"><span class="linenos" data-line="468"></span></a> <span class="p">:</span><span class="n">addClass</span><span class="p">(</span><span class="s1">'assess'</span><span class="p">)</span> </span><span id="L-469"><a href="#L-469"><span class="linenos" data-line="469"></span></a> <span class="p">:</span><span class="n">addClass</span><span class="p">(</span><span class="n">cssClass</span><span class="p">)</span> </span><span id="L-470"><a href="#L-470"><span class="linenos" data-line="470"></span></a> <span class="p">:</span><span class="n">wikitext</span><span class="p">(</span><span class="n">wikilink</span><span class="p">(</span><span class="s1">':Category:'</span> <span class="o">..</span> <span class="n">category</span><span class="p">,</span> <span class="n">importance</span><span class="o">==</span><span class="s1">'Unknown'</span> <span class="ow">and</span> <span class="s1">'???'</span> <span class="ow">or</span> <span class="n">importance</span><span class="p">))</span> </span><span id="L-471"><a href="#L-471"><span class="linenos" data-line="471"></span></a> <span class="p">:</span><span class="n">done</span><span class="p">()</span> </span><span id="L-472"><a href="#L-472"><span class="linenos" data-line="472"></span></a> <span class="p">:</span><span class="n">tag</span><span class="p">(</span><span class="s1">'td'</span><span class="p">)</span> </span><span id="L-473"><a href="#L-473"><span class="linenos" data-line="473"></span></a> <span class="p">:</span><span class="n">addClass</span><span class="p">(</span><span class="s1">'mbox-text'</span><span class="p">)</span> </span><span id="L-474"><a href="#L-474"><span class="linenos" data-line="474"></span></a> <span class="p">:</span><span class="n">attr</span><span class="p">(</span><span class="s1">'colspan'</span><span class="p">,</span> <span class="s1">'2'</span><span class="p">)</span> </span><span id="L-475"><a href="#L-475"><span class="linenos" data-line="475"></span></a> <span class="p">:</span><span class="n">wikitext</span><span class="p">(</span><span class="n">importance_rating</span><span class="p">)</span> </span><span id="L-476"><a href="#L-476"><span class="linenos" data-line="476"></span></a> <span class="p">:</span><span class="n">done</span><span class="p">()</span> </span><span id="L-477"><a href="#L-477"><span class="linenos" data-line="477"></span></a> <span class="nb">table.insert</span><span class="p">(</span><span class="n">rows</span><span class="p">,</span> <span class="n">importance_row</span><span class="p">)</span> </span><span id="L-478"><a href="#L-478"><span class="linenos" data-line="478"></span></a> <span class="kr">if</span> <span class="n">importance</span><span class="o">~=</span><span class="s1">'Unknown'</span> <span class="kr">then</span> <span class="c1">-- importance is not NA or Unknown</span> </span><span id="L-479"><a href="#L-479"><span class="linenos" data-line="479"></span></a> <span class="nb">table.insert</span><span class="p">(</span> </span><span id="L-480"><a href="#L-480"><span class="linenos" data-line="480"></span></a> <span class="n">nested_ratings</span><span class="p">,</span> </span><span id="L-481"><a href="#L-481"><span class="linenos" data-line="481"></span></a> <span class="n">bubble</span><span class="p">(</span><span class="n">importance</span> <span class="o">..</span> <span class="s1">'‑'</span> <span class="o">..</span> <span class="n">importance_name</span><span class="p">,</span> <span class="kc">false</span><span class="p">,</span> <span class="n">cssClass</span><span class="p">)</span> </span><span id="L-482"><a href="#L-482"><span class="linenos" data-line="482"></span></a> <span class="p">)</span> </span><span id="L-483"><a href="#L-483"><span class="linenos" data-line="483"></span></a> <span class="kr">end</span> </span><span id="L-484"><a href="#L-484"><span class="linenos" data-line="484"></span></a> <span class="kr">end</span> </span><span id="L-485"><a href="#L-485"><span class="linenos" data-line="485"></span></a> <span class="n">add_category</span><span class="p">(</span><span class="n">category</span><span class="p">)</span> </span><span id="L-486"><a href="#L-486"><span class="linenos" data-line="486"></span></a><span class="kr">end</span> </span><span id="L-487"><a href="#L-487"><span class="linenos" data-line="487"></span></a><span class="n">page_assessment</span><span class="p">(</span><span class="n">project</span><span class="p">,</span> <span class="n">class</span><span class="p">,</span> <span class="n">importance</span><span class="p">)</span> </span><span id="L-488"><a href="#L-488"><span class="linenos" data-line="488"></span></a><span class="kr">if</span> <span class="n">args</span><span class="p">.</span><span class="n">HOOK_IMPORTANCE</span> <span class="kr">then</span> </span><span id="L-489"><a href="#L-489"><span class="linenos" data-line="489"></span></a> <span class="nb">table.insert</span><span class="p">(</span><span class="n">rows</span><span class="p">,</span> <span class="n">args</span><span class="p">.</span><span class="n">HOOK_IMPORTANCE</span><span class="p">)</span> </span><span id="L-490"><a href="#L-490"><span class="linenos" data-line="490"></span></a><span class="kr">end</span> </span><span id="L-491"><a href="#L-491"><span class="linenos" data-line="491"></span></a><span class="kr">if</span> <span class="n">args</span><span class="p">.</span><span class="n">QII_FORMAT</span> <span class="kr">then</span> </span><span id="L-492"><a href="#L-492"><span class="linenos" data-line="492"></span></a> <span class="n">add_category</span><span class="p">(</span><span class="nb">require</span><span class="p">(</span><span class="n">auxiliary</span><span class="p">).</span><span class="n">quality_importance_insection</span><span class="p">(</span><span class="n">args</span><span class="p">,</span> <span class="n">class</span><span class="p">,</span> <span class="n">importance</span><span class="p">,</span> <span class="n">importance_name</span><span class="p">))</span> </span><span id="L-493"><a href="#L-493"><span class="linenos" data-line="493"></span></a><span class="kr">end</span> </span><span id="L-494"><a href="#L-494"><span class="linenos" data-line="494"></span></a><span class="c1">---------------------------</span> </span><span id="L-495"><a href="#L-495"><span class="linenos" data-line="495"></span></a><span class="c1">-- Collapsing sections ----</span> </span><span id="L-496"><a href="#L-496"><span class="linenos" data-line="496"></span></a><span class="c1">---------------------------</span> </span><span id="L-497"><a href="#L-497"><span class="linenos" data-line="497"></span></a><span class="kd">local</span> <span class="n">collapse_section</span> <span class="o">=</span> <span class="kr">function</span><span class="p">(</span><span class="n">collapse</span><span class="p">,</span> <span class="n">new_rows</span><span class="p">,</span> <span class="n">header</span><span class="p">)</span> </span><span id="L-498"><a href="#L-498"><span class="linenos" data-line="498"></span></a> <span class="kr">if</span> <span class="n">collapse</span> <span class="kr">then</span> </span><span id="L-499"><a href="#L-499"><span class="linenos" data-line="499"></span></a> <span class="kd">local</span> <span class="n">header_row</span> <span class="o">=</span> <span class="n">mw</span><span class="p">.</span><span class="n">html</span><span class="p">.</span><span class="n">create</span><span class="p">(</span><span class="s1">'tr'</span><span class="p">)</span> </span><span id="L-500"><a href="#L-500"><span class="linenos" data-line="500"></span></a> <span class="p">:</span><span class="n">tag</span><span class="p">(</span><span class="s1">'th'</span><span class="p">)</span> </span><span id="L-501"><a href="#L-501"><span class="linenos" data-line="501"></span></a> <span class="p">:</span><span class="n">attr</span><span class="p">(</span><span class="s1">'colspan'</span><span class="p">,</span><span class="s1">'3'</span><span class="p">)</span> </span><span id="L-502"><a href="#L-502"><span class="linenos" data-line="502"></span></a> <span class="p">:</span><span class="n">addClass</span><span class="p">(</span><span class="s1">'wpb-collapsed-head'</span><span class="p">)</span> </span><span id="L-503"><a href="#L-503"><span class="linenos" data-line="503"></span></a> <span class="p">:</span><span class="n">wikitext</span><span class="p">(</span><span class="n">header</span><span class="p">)</span> </span><span id="L-504"><a href="#L-504"><span class="linenos" data-line="504"></span></a> <span class="p">:</span><span class="n">done</span><span class="p">()</span> </span><span id="L-505"><a href="#L-505"><span class="linenos" data-line="505"></span></a> <span class="kd">local</span> <span class="n">blank_row</span> <span class="o">=</span> <span class="n">mw</span><span class="p">.</span><span class="n">html</span><span class="p">.</span><span class="n">create</span><span class="p">(</span><span class="s1">'tr'</span><span class="p">)</span> </span><span id="L-506"><a href="#L-506"><span class="linenos" data-line="506"></span></a> <span class="p">:</span><span class="n">tag</span><span class="p">(</span><span class="s1">'td'</span><span class="p">)</span> </span><span id="L-507"><a href="#L-507"><span class="linenos" data-line="507"></span></a> <span class="p">:</span><span class="n">addClass</span><span class="p">(</span><span class="s1">'mbox-image wpb-gutter'</span><span class="p">)</span> </span><span id="L-508"><a href="#L-508"><span class="linenos" data-line="508"></span></a> <span class="p">:</span><span class="n">css</span><span class="p">(</span><span class="s1">'min-width'</span><span class="p">,</span> <span class="n">image_left_size</span><span class="p">)</span> </span><span id="L-509"><a href="#L-509"><span class="linenos" data-line="509"></span></a> <span class="p">:</span><span class="n">tag</span><span class="p">(</span><span class="s1">'span'</span><span class="p">)</span> </span><span id="L-510"><a href="#L-510"><span class="linenos" data-line="510"></span></a> <span class="p">:</span><span class="n">addClass</span><span class="p">(</span><span class="s1">'wpb-iefix'</span><span class="p">)</span> </span><span id="L-511"><a href="#L-511"><span class="linenos" data-line="511"></span></a> <span class="p">:</span><span class="n">wikitext</span><span class="p">(</span><span class="s1">'/&nbsp;'</span><span class="p">)</span> </span><span id="L-512"><a href="#L-512"><span class="linenos" data-line="512"></span></a> <span class="p">:</span><span class="n">done</span><span class="p">()</span> <span class="c1">--TO FIX IE</span> </span><span id="L-513"><a href="#L-513"><span class="linenos" data-line="513"></span></a> <span class="p">:</span><span class="n">done</span><span class="p">()</span> </span><span id="L-514"><a href="#L-514"><span class="linenos" data-line="514"></span></a> <span class="p">:</span><span class="n">tag</span><span class="p">(</span><span class="s1">'td'</span><span class="p">):</span><span class="n">done</span><span class="p">()</span> </span><span id="L-515"><a href="#L-515"><span class="linenos" data-line="515"></span></a> <span class="p">:</span><span class="n">tag</span><span class="p">(</span><span class="s1">'td'</span><span class="p">):</span><span class="n">done</span><span class="p">()</span> </span><span id="L-516"><a href="#L-516"><span class="linenos" data-line="516"></span></a> <span class="kd">local</span> <span class="n">collapsed_rows</span> <span class="o">=</span> <span class="n">mw</span><span class="p">.</span><span class="n">html</span><span class="p">.</span><span class="n">create</span><span class="p">(</span><span class="s1">'table'</span><span class="p">)</span> </span><span id="L-517"><a href="#L-517"><span class="linenos" data-line="517"></span></a> <span class="p">:</span><span class="n">addClass</span><span class="p">(</span><span class="s1">'mw-collapsible mw-collapsed'</span><span class="p">)</span> </span><span id="L-518"><a href="#L-518"><span class="linenos" data-line="518"></span></a> <span class="p">:</span><span class="n">node</span><span class="p">(</span><span class="n">header_row</span><span class="p">)</span> </span><span id="L-519"><a href="#L-519"><span class="linenos" data-line="519"></span></a> <span class="p">:</span><span class="n">node</span><span class="p">(</span><span class="n">blank_row</span><span class="p">)</span> </span><span id="L-520"><a href="#L-520"><span class="linenos" data-line="520"></span></a> <span class="kr">for</span> <span class="n">_</span><span class="p">,</span> <span class="n">row</span> <span class="kr">in</span> <span class="nb">ipairs</span><span class="p">(</span><span class="n">new_rows</span><span class="p">)</span> <span class="kr">do</span> </span><span id="L-521"><a href="#L-521"><span class="linenos" data-line="521"></span></a> <span class="n">collapsed_rows</span><span class="p">:</span><span class="n">node</span><span class="p">(</span><span class="n">row</span><span class="p">)</span> </span><span id="L-522"><a href="#L-522"><span class="linenos" data-line="522"></span></a> <span class="kr">end</span> </span><span id="L-523"><a href="#L-523"><span class="linenos" data-line="523"></span></a> <span class="kd">local</span> <span class="n">collapsed_section</span> <span class="o">=</span> <span class="n">mw</span><span class="p">.</span><span class="n">html</span><span class="p">.</span><span class="n">create</span><span class="p">(</span><span class="s1">'tr'</span><span class="p">)</span> </span><span id="L-524"><a href="#L-524"><span class="linenos" data-line="524"></span></a> <span class="p">:</span><span class="n">tag</span><span class="p">(</span><span class="s1">'td'</span><span class="p">)</span> </span><span id="L-525"><a href="#L-525"><span class="linenos" data-line="525"></span></a> <span class="p">:</span><span class="n">attr</span><span class="p">(</span><span class="s1">'colspan'</span><span class="p">,</span><span class="s1">'3'</span><span class="p">)</span> </span><span id="L-526"><a href="#L-526"><span class="linenos" data-line="526"></span></a> <span class="p">:</span><span class="n">addClass</span><span class="p">(</span><span class="s1">'wpb-collapsed-notes'</span><span class="p">)</span> </span><span id="L-527"><a href="#L-527"><span class="linenos" data-line="527"></span></a> <span class="p">:</span><span class="n">node</span><span class="p">(</span><span class="n">collapsed_rows</span><span class="p">)</span> </span><span id="L-528"><a href="#L-528"><span class="linenos" data-line="528"></span></a> <span class="p">:</span><span class="n">done</span><span class="p">()</span> </span><span id="L-529"><a href="#L-529"><span class="linenos" data-line="529"></span></a> <span class="nb">table.insert</span><span class="p">(</span><span class="n">rows</span><span class="p">,</span> <span class="n">collapsed_section</span><span class="p">)</span> </span><span id="L-530"><a href="#L-530"><span class="linenos" data-line="530"></span></a> <span class="kr">else</span> </span><span id="L-531"><a href="#L-531"><span class="linenos" data-line="531"></span></a> <span class="kr">for</span> <span class="n">_</span><span class="p">,</span> <span class="n">row</span> <span class="kr">in</span> <span class="nb">ipairs</span><span class="p">(</span><span class="n">new_rows</span><span class="p">)</span> <span class="kr">do</span> </span><span id="L-532"><a href="#L-532"><span class="linenos" data-line="532"></span></a> <span class="nb">table.insert</span><span class="p">(</span><span class="n">rows</span><span class="p">,</span> <span class="n">row</span><span class="p">)</span> </span><span id="L-533"><a href="#L-533"><span class="linenos" data-line="533"></span></a> <span class="kr">end</span> </span><span id="L-534"><a href="#L-534"><span class="linenos" data-line="534"></span></a> <span class="kr">end</span> </span><span id="L-535"><a href="#L-535"><span class="linenos" data-line="535"></span></a><span class="kr">end</span> </span><span id="L-536"><a href="#L-536"><span class="linenos" data-line="536"></span></a><span class="c1">---------------------------</span> </span><span id="L-537"><a href="#L-537"><span class="linenos" data-line="537"></span></a><span class="c1">-- Task forces ------------</span> </span><span id="L-538"><a href="#L-538"><span class="linenos" data-line="538"></span></a><span class="c1">---------------------------</span> </span><span id="L-539"><a href="#L-539"><span class="linenos" data-line="539"></span></a><span class="kd">local</span> <span class="n">nested_tf</span><span class="p">,</span> <span class="n">taskforce_output</span> <span class="o">=</span> <span class="p">{},</span> <span class="p">{}</span> </span><span id="L-540"><a href="#L-540"><span class="linenos" data-line="540"></span></a><span class="kd">local</span> <span class="n">tf_default_size</span> <span class="o">=</span> <span class="n">args</span><span class="p">.</span><span class="n">TF_SIZE</span> <span class="ow">or</span> <span class="n">cfg</span><span class="p">.</span><span class="n">task_force</span><span class="p">.</span><span class="n">default_size</span> </span><span id="L-541"><a href="#L-541"><span class="linenos" data-line="541"></span></a><span class="kr">for</span> <span class="n">_</span><span class="p">,</span> <span class="n">k</span> <span class="kr">in</span> <span class="nb">ipairs</span><span class="p">(</span><span class="n">task_forces</span><span class="p">)</span> <span class="kr">do</span> </span><span id="L-542"><a href="#L-542"><span class="linenos" data-line="542"></span></a> <span class="kd">local</span> <span class="n">tf_prefix</span> <span class="o">=</span> <span class="s1">'TF_'</span> <span class="o">..</span> <span class="n">k</span> <span class="o">..</span> <span class="s1">'_'</span> </span><span id="L-543"><a href="#L-543"><span class="linenos" data-line="543"></span></a> <span class="kd">local</span> <span class="n">tf_assessment_cat</span> <span class="o">=</span> <span class="n">args</span><span class="p">[</span><span class="n">tf_prefix</span><span class="o">..</span><span class="s1">'ASSESSMENT_CAT'</span><span class="p">]</span> <span class="ow">or</span> <span class="p">(</span><span class="n">args</span><span class="p">[</span><span class="n">tf_prefix</span><span class="o">..</span><span class="s1">'NAME'</span><span class="p">]</span> <span class="ow">or</span> <span class="s1">''</span><span class="p">)</span><span class="o">..</span><span class="s1">' articles'</span> </span><span id="L-544"><a href="#L-544"><span class="linenos" data-line="544"></span></a> <span class="kd">local</span> <span class="n">tf_importance</span> </span><span id="L-545"><a href="#L-545"><span class="linenos" data-line="545"></span></a> <span class="kr">if</span> <span class="n">raw_args</span><span class="p">[</span><span class="s1">'tf '</span><span class="o">..</span><span class="n">k</span><span class="o">..</span><span class="s1">' importance'</span><span class="p">]</span> <span class="kr">then</span> </span><span id="L-546"><a href="#L-546"><span class="linenos" data-line="546"></span></a> <span class="n">tf_importance</span> <span class="o">=</span> <span class="n">importance_mask</span><span class="p">(</span><span class="n">raw_args</span><span class="p">[</span><span class="s1">'tf '</span><span class="o">..</span><span class="n">k</span><span class="o">..</span><span class="s1">' importance'</span><span class="p">],</span> <span class="n">args</span><span class="p">.</span><span class="n">IMPORTANCE_SCALE</span><span class="p">,</span> <span class="n">banner_name</span><span class="p">,</span> <span class="n">pagetype</span><span class="p">,</span> <span class="n">class</span><span class="p">)</span> </span><span id="L-547"><a href="#L-547"><span class="linenos" data-line="547"></span></a> <span class="kr">if</span> <span class="n">tf_importance</span><span class="o">==</span><span class="s1">'Unknown'</span> <span class="ow">and</span> <span class="n">yesno</span><span class="p">(</span><span class="n">args</span><span class="p">.</span><span class="n">INHERIT_IMPORTANCE</span><span class="p">)</span> <span class="kr">then</span> </span><span id="L-548"><a href="#L-548"><span class="linenos" data-line="548"></span></a> <span class="n">tf_importance</span> <span class="o">=</span> <span class="n">importance</span> </span><span id="L-549"><a href="#L-549"><span class="linenos" data-line="549"></span></a> <span class="kr">end</span> </span><span id="L-550"><a href="#L-550"><span class="linenos" data-line="550"></span></a> <span class="kr">end</span> </span><span id="L-551"><a href="#L-551"><span class="linenos" data-line="551"></span></a> <span class="kr">if</span> <span class="n">args</span><span class="p">[</span><span class="n">tf_prefix</span> <span class="o">..</span> <span class="s1">'TEXT'</span><span class="p">]</span><span class="o">~=</span><span class="s1">'none'</span> <span class="kr">then</span> </span><span id="L-552"><a href="#L-552"><span class="linenos" data-line="552"></span></a> <span class="kd">local</span> <span class="n">portal</span> <span class="o">=</span> <span class="n">args</span><span class="p">[</span><span class="n">tf_prefix</span><span class="o">..</span><span class="s1">'PORTAL'</span><span class="p">]</span> <span class="ow">and</span> <span class="n">frame</span><span class="p">:</span><span class="n">expandTemplate</span><span class="p">{</span> </span><span id="L-553"><a href="#L-553"><span class="linenos" data-line="553"></span></a> <span class="n">title</span><span class="o">=</span><span class="s1">'Portal'</span><span class="p">,</span> </span><span id="L-554"><a href="#L-554"><span class="linenos" data-line="554"></span></a> <span class="n">args</span><span class="o">=</span><span class="p">{</span><span class="n">args</span><span class="p">[</span><span class="n">tf_prefix</span> <span class="o">..</span> <span class="s1">'PORTAL'</span><span class="p">],</span> <span class="n">height</span><span class="o">=</span><span class="s1">'15'</span><span class="p">,</span> <span class="n">margin</span><span class="o">=</span><span class="s1">'0'</span><span class="p">}</span> </span><span id="L-555"><a href="#L-555"><span class="linenos" data-line="555"></span></a> <span class="p">}</span> <span class="ow">or</span> <span class="s1">''</span> </span><span id="L-556"><a href="#L-556"><span class="linenos" data-line="556"></span></a> <span class="kd">local</span> <span class="n">text</span> <span class="o">=</span> <span class="s1">''</span> </span><span id="L-557"><a href="#L-557"><span class="linenos" data-line="557"></span></a> <span class="kd">local</span> <span class="n">tf_text</span> <span class="o">=</span> <span class="n">args</span><span class="p">[</span><span class="n">tf_prefix</span><span class="o">..</span><span class="s1">'TEXT'</span><span class="p">]</span> <span class="ow">or</span> <span class="n">args</span><span class="p">.</span><span class="n">TF_TEXT</span> </span><span id="L-558"><a href="#L-558"><span class="linenos" data-line="558"></span></a> <span class="kr">if</span> <span class="n">tf_text</span> <span class="kr">then</span> </span><span id="L-559"><a href="#L-559"><span class="linenos" data-line="559"></span></a> <span class="n">text</span> <span class="o">=</span> <span class="n">portal</span> <span class="o">..</span> <span class="n">tf_text</span> </span><span id="L-560"><a href="#L-560"><span class="linenos" data-line="560"></span></a> <span class="p">:</span><span class="n">gsub</span><span class="p">(</span><span class="s1">'_NAME_'</span><span class="p">,</span> <span class="n">args</span><span class="p">[</span><span class="n">tf_prefix</span> <span class="o">..</span> <span class="s1">'NAME'</span><span class="p">]</span> <span class="ow">or</span> <span class="s1">''</span><span class="p">)</span> </span><span id="L-561"><a href="#L-561"><span class="linenos" data-line="561"></span></a> <span class="p">:</span><span class="n">gsub</span><span class="p">(</span><span class="s1">'_LINK_'</span><span class="p">,</span> <span class="n">args</span><span class="p">[</span><span class="n">tf_prefix</span> <span class="o">..</span> <span class="s1">'LINK'</span><span class="p">]</span> <span class="ow">or</span> <span class="s1">''</span><span class="p">)</span> </span><span id="L-562"><a href="#L-562"><span class="linenos" data-line="562"></span></a> <span class="p">:</span><span class="n">gsub</span><span class="p">(</span><span class="s1">'_IMPORTANCE_'</span><span class="p">,</span> <span class="n">tf_importance</span> <span class="ow">or</span> <span class="s1">''</span><span class="p">)</span> </span><span id="L-563"><a href="#L-563"><span class="linenos" data-line="563"></span></a> <span class="kr">else</span> </span><span id="L-564"><a href="#L-564"><span class="linenos" data-line="564"></span></a> <span class="kd">local</span> <span class="n">tf_importance_text</span> <span class="o">=</span> <span class="n">tf_importance</span> </span><span id="L-565"><a href="#L-565"><span class="linenos" data-line="565"></span></a> <span class="ow">and</span> <span class="n">tf_importance</span><span class="o">~=</span><span class="s1">'NA'</span> </span><span id="L-566"><a href="#L-566"><span class="linenos" data-line="566"></span></a> <span class="ow">and</span> <span class="n">tf_importance</span><span class="o">~=</span><span class="s1">'Unknown'</span> </span><span id="L-567"><a href="#L-567"><span class="linenos" data-line="567"></span></a> <span class="ow">and</span> <span class="s1">' '</span> <span class="o">..</span> <span class="n">cfg</span><span class="p">.</span><span class="n">task_force</span><span class="p">.</span><span class="n">importance</span><span class="p">:</span><span class="n">format</span><span class="p">(</span> </span><span id="L-568"><a href="#L-568"><span class="linenos" data-line="568"></span></a> <span class="n">wikilink</span><span class="p">(</span><span class="s1">':Category:'</span> <span class="o">..</span> <span class="n">tf_importance</span> <span class="o">..</span> <span class="s1">'-'</span> <span class="o">..</span> <span class="n">importance_name</span> <span class="o">..</span> <span class="s1">' '</span> <span class="o">..</span> <span class="n">tf_assessment_cat</span><span class="p">,</span> <span class="n">tf_importance</span> <span class="o">..</span> <span class="s1">'-'</span> <span class="o">..</span> <span class="n">importance_name</span><span class="p">)</span> </span><span id="L-569"><a href="#L-569"><span class="linenos" data-line="569"></span></a> <span class="p">)</span> <span class="ow">or</span> <span class="s1">''</span> </span><span id="L-570"><a href="#L-570"><span class="linenos" data-line="570"></span></a> <span class="n">text</span> <span class="o">=</span> <span class="n">portal</span> <span class="o">..</span> <span class="n">cfg</span><span class="p">.</span><span class="n">task_force</span><span class="p">.</span><span class="n">text</span><span class="p">:</span><span class="n">format</span><span class="p">(</span> </span><span id="L-571"><a href="#L-571"><span class="linenos" data-line="571"></span></a> <span class="n">wikilink</span><span class="p">(</span><span class="n">args</span><span class="p">[</span><span class="n">tf_prefix</span> <span class="o">..</span> <span class="s1">'LINK'</span><span class="p">],</span> <span class="n">args</span><span class="p">[</span><span class="n">tf_prefix</span> <span class="o">..</span> <span class="s1">'NAME'</span><span class="p">]),</span> </span><span id="L-572"><a href="#L-572"><span class="linenos" data-line="572"></span></a> <span class="n">tf_importance_text</span> </span><span id="L-573"><a href="#L-573"><span class="linenos" data-line="573"></span></a> <span class="p">)</span> </span><span id="L-574"><a href="#L-574"><span class="linenos" data-line="574"></span></a> <span class="kr">end</span> </span><span id="L-575"><a href="#L-575"><span class="linenos" data-line="575"></span></a> <span class="kd">local</span> <span class="n">tf_size</span> <span class="o">=</span> <span class="n">args</span><span class="p">[</span><span class="n">tf_prefix</span> <span class="o">..</span> <span class="s1">'SIZE'</span><span class="p">]</span> <span class="ow">or</span> <span class="n">tf_default_size</span> </span><span id="L-576"><a href="#L-576"><span class="linenos" data-line="576"></span></a> <span class="kd">local</span> <span class="n">tf_image</span> <span class="o">=</span> <span class="s1">''</span> </span><span id="L-577"><a href="#L-577"><span class="linenos" data-line="577"></span></a> <span class="kr">if</span> <span class="n">args</span><span class="p">[</span><span class="n">tf_prefix</span> <span class="o">..</span> <span class="s1">'IMAGE'</span><span class="p">]</span> <span class="kr">then</span> </span><span id="L-578"><a href="#L-578"><span class="linenos" data-line="578"></span></a> <span class="n">tf_image</span> <span class="o">=</span> <span class="n">image</span><span class="p">(</span><span class="n">args</span><span class="p">[</span><span class="n">tf_prefix</span> <span class="o">..</span> <span class="s1">'IMAGE'</span><span class="p">],</span> <span class="n">tf_size</span><span class="p">,</span> <span class="n">cfg</span><span class="p">.</span><span class="n">task_force</span><span class="p">.</span><span class="n">icon_alt</span><span class="p">,</span> <span class="s1">'center'</span><span class="p">)</span> </span><span id="L-579"><a href="#L-579"><span class="linenos" data-line="579"></span></a> <span class="kr">end</span> </span><span id="L-580"><a href="#L-580"><span class="linenos" data-line="580"></span></a> <span class="kd">local</span> <span class="n">taskforce</span> <span class="o">=</span> <span class="n">mw</span><span class="p">.</span><span class="n">html</span><span class="p">.</span><span class="n">create</span><span class="p">(</span><span class="s1">'tr'</span><span class="p">)</span> </span><span id="L-581"><a href="#L-581"><span class="linenos" data-line="581"></span></a> <span class="p">:</span><span class="n">tag</span><span class="p">(</span><span class="s1">'td'</span><span class="p">)</span> </span><span id="L-582"><a href="#L-582"><span class="linenos" data-line="582"></span></a> <span class="p">:</span><span class="n">wikitext</span><span class="p">(</span><span class="n">tf_image</span><span class="p">)</span> </span><span id="L-583"><a href="#L-583"><span class="linenos" data-line="583"></span></a> <span class="p">:</span><span class="n">done</span><span class="p">()</span> </span><span id="L-584"><a href="#L-584"><span class="linenos" data-line="584"></span></a> <span class="p">:</span><span class="n">tag</span><span class="p">(</span><span class="s1">'td'</span><span class="p">)</span> </span><span id="L-585"><a href="#L-585"><span class="linenos" data-line="585"></span></a> <span class="p">:</span><span class="n">addClass</span><span class="p">(</span><span class="s1">'mbox-text'</span><span class="p">)</span> </span><span id="L-586"><a href="#L-586"><span class="linenos" data-line="586"></span></a> <span class="p">:</span><span class="n">attr</span><span class="p">(</span><span class="s1">'colspan'</span><span class="p">,</span><span class="s1">'2'</span><span class="p">)</span> </span><span id="L-587"><a href="#L-587"><span class="linenos" data-line="587"></span></a> <span class="p">:</span><span class="n">wikitext</span><span class="p">(</span><span class="n">parse_pt</span><span class="p">(</span><span class="n">text</span><span class="p">))</span> </span><span id="L-588"><a href="#L-588"><span class="linenos" data-line="588"></span></a> <span class="p">:</span><span class="n">done</span><span class="p">()</span> </span><span id="L-589"><a href="#L-589"><span class="linenos" data-line="589"></span></a> <span class="nb">table.insert</span><span class="p">(</span><span class="n">taskforce_output</span><span class="p">,</span> <span class="n">taskforce</span><span class="p">)</span> </span><span id="L-590"><a href="#L-590"><span class="linenos" data-line="590"></span></a> <span class="kr">end</span> </span><span id="L-591"><a href="#L-591"><span class="linenos" data-line="591"></span></a> <span class="kr">if</span> <span class="n">args</span><span class="p">[</span><span class="n">tf_prefix</span><span class="o">..</span><span class="s1">'HOOK'</span><span class="p">]</span> <span class="kr">then</span> </span><span id="L-592"><a href="#L-592"><span class="linenos" data-line="592"></span></a> <span class="nb">table.insert</span><span class="p">(</span><span class="n">taskforce_output</span><span class="p">,</span> <span class="n">args</span><span class="p">[</span><span class="n">tf_prefix</span><span class="o">..</span><span class="s1">'HOOK'</span><span class="p">])</span> </span><span id="L-593"><a href="#L-593"><span class="linenos" data-line="593"></span></a> <span class="kr">end</span> </span><span id="L-594"><a href="#L-594"><span class="linenos" data-line="594"></span></a> <span class="kr">if</span> <span class="n">yesno</span><span class="p">(</span><span class="n">args</span><span class="p">[</span><span class="n">tf_prefix</span><span class="o">..</span><span class="s1">'QUALITY'</span><span class="p">])</span> <span class="ow">and</span> <span class="n">class</span> <span class="kr">then</span> </span><span id="L-595"><a href="#L-595"><span class="linenos" data-line="595"></span></a> <span class="kd">local</span> <span class="n">tf_class</span> <span class="o">=</span> <span class="n">check_exists</span><span class="p">(</span><span class="n">class</span><span class="p">,</span> <span class="n">tf_assessment_cat</span><span class="p">)</span> </span><span id="L-596"><a href="#L-596"><span class="linenos" data-line="596"></span></a> <span class="n">add_category</span><span class="p">((</span><span class="n">tf_class</span><span class="o">==</span><span class="s1">''</span> <span class="ow">and</span> <span class="s1">'Unassessed'</span> <span class="ow">or</span> <span class="n">tf_class</span><span class="o">..</span><span class="s1">'-Class'</span><span class="p">)</span> <span class="o">..</span> <span class="s1">' '</span> <span class="o">..</span> <span class="n">tf_assessment_cat</span><span class="p">)</span> </span><span id="L-597"><a href="#L-597"><span class="linenos" data-line="597"></span></a> <span class="kr">end</span> </span><span id="L-598"><a href="#L-598"><span class="linenos" data-line="598"></span></a> <span class="kr">if</span> <span class="n">tf_importance</span> <span class="kr">then</span> </span><span id="L-599"><a href="#L-599"><span class="linenos" data-line="599"></span></a> <span class="n">add_category</span><span class="p">(</span><span class="n">tf_importance</span> <span class="o">..</span> <span class="s1">'-'</span> <span class="o">..</span> <span class="n">importance_name</span> <span class="o">..</span> <span class="s1">' '</span> <span class="o">..</span> <span class="n">tf_assessment_cat</span><span class="p">)</span> </span><span id="L-600"><a href="#L-600"><span class="linenos" data-line="600"></span></a> <span class="kr">end</span> </span><span id="L-601"><a href="#L-601"><span class="linenos" data-line="601"></span></a> <span class="kr">if</span> <span class="n">args</span><span class="p">[</span><span class="n">tf_prefix</span><span class="o">..</span><span class="s1">'QII_FORMAT'</span><span class="p">]</span> <span class="kr">then</span> </span><span id="L-602"><a href="#L-602"><span class="linenos" data-line="602"></span></a> <span class="n">add_category</span><span class="p">(</span><span class="nb">require</span><span class="p">(</span><span class="n">auxiliary</span><span class="p">).</span><span class="n">quality_importance_insection</span><span class="p">(</span><span class="n">args</span><span class="p">,</span> <span class="n">class</span><span class="p">,</span> <span class="n">tf_importance</span><span class="p">,</span> <span class="n">importance_name</span><span class="p">,</span> <span class="n">tf_prefix</span><span class="p">))</span> </span><span id="L-603"><a href="#L-603"><span class="linenos" data-line="603"></span></a> <span class="kr">end</span> </span><span id="L-604"><a href="#L-604"><span class="linenos" data-line="604"></span></a> <span class="kr">if</span> <span class="n">args</span><span class="p">[</span><span class="n">tf_prefix</span><span class="o">..</span><span class="s1">'NAME'</span><span class="p">]</span> <span class="kr">then</span> </span><span id="L-605"><a href="#L-605"><span class="linenos" data-line="605"></span></a> <span class="n">page_assessment</span><span class="p">(</span><span class="n">project</span><span class="o">..</span><span class="s1">'/'</span><span class="o">..</span><span class="n">args</span><span class="p">[</span><span class="n">tf_prefix</span><span class="o">..</span><span class="s1">'NAME'</span><span class="p">],</span> <span class="n">class</span><span class="p">,</span> <span class="n">tf_importance</span><span class="p">)</span> </span><span id="L-606"><a href="#L-606"><span class="linenos" data-line="606"></span></a> <span class="kr">end</span> </span><span id="L-607"><a href="#L-607"><span class="linenos" data-line="607"></span></a> <span class="kr">if</span> <span class="n">args</span><span class="p">[</span><span class="n">tf_prefix</span><span class="o">..</span><span class="s1">'MAIN_CAT'</span><span class="p">]</span> <span class="kr">then</span> </span><span id="L-608"><a href="#L-608"><span class="linenos" data-line="608"></span></a> <span class="n">add_category</span><span class="p">(</span><span class="n">args</span><span class="p">[</span><span class="n">tf_prefix</span><span class="o">..</span><span class="s1">'MAIN_CAT'</span><span class="p">])</span> </span><span id="L-609"><a href="#L-609"><span class="linenos" data-line="609"></span></a> <span class="kr">end</span> </span><span id="L-610"><a href="#L-610"><span class="linenos" data-line="610"></span></a> <span class="kr">if</span> <span class="n">args</span><span class="p">[</span><span class="n">tf_prefix</span><span class="o">..</span><span class="s1">'NESTED'</span><span class="p">]</span> <span class="kr">then</span> </span><span id="L-611"><a href="#L-611"><span class="linenos" data-line="611"></span></a> <span class="nb">table.insert</span><span class="p">(</span><span class="n">nested_tf</span><span class="p">,</span> <span class="n">wikilink</span><span class="p">(</span><span class="n">args</span><span class="p">[</span><span class="n">tf_prefix</span><span class="o">..</span><span class="s1">'LINK'</span><span class="p">],</span> <span class="n">args</span><span class="p">[</span><span class="n">tf_prefix</span><span class="o">..</span><span class="s1">'NESTED'</span><span class="p">]))</span> </span><span id="L-612"><a href="#L-612"><span class="linenos" data-line="612"></span></a> <span class="kr">end</span> </span><span id="L-613"><a href="#L-613"><span class="linenos" data-line="613"></span></a> <span class="kr">for</span> <span class="n">_</span><span class="p">,</span> <span class="n">c</span> <span class="kr">in</span> <span class="nb">ipairs</span><span class="p">(</span><span class="n">taskforce_categories</span><span class="p">[</span><span class="n">k</span><span class="p">]</span> <span class="ow">or</span> <span class="p">{})</span> <span class="kr">do</span><span class="c1">-- add additional taskforce categories</span> </span><span id="L-614"><a href="#L-614"><span class="linenos" data-line="614"></span></a> <span class="n">add_category</span><span class="p">(</span><span class="n">args</span><span class="p">[</span><span class="n">tf_prefix</span><span class="o">..</span><span class="s1">'CAT_'</span><span class="o">..</span><span class="n">c</span><span class="p">])</span> </span><span id="L-615"><a href="#L-615"><span class="linenos" data-line="615"></span></a> <span class="kr">end</span> </span><span id="L-616"><a href="#L-616"><span class="linenos" data-line="616"></span></a><span class="kr">end</span> </span><span id="L-617"><a href="#L-617"><span class="linenos" data-line="617"></span></a><span class="kr">if</span> <span class="n">args</span><span class="p">.</span><span class="n">HOOK_TF</span> <span class="kr">then</span> </span><span id="L-618"><a href="#L-618"><span class="linenos" data-line="618"></span></a> <span class="nb">table.insert</span><span class="p">(</span><span class="n">taskforce_output</span><span class="p">,</span> <span class="n">args</span><span class="p">.</span><span class="n">HOOK_TF</span><span class="p">)</span> </span><span id="L-619"><a href="#L-619"><span class="linenos" data-line="619"></span></a><span class="kr">end</span> </span><span id="L-620"><a href="#L-620"><span class="linenos" data-line="620"></span></a><span class="kd">local</span> <span class="n">threshold</span> <span class="o">=</span> <span class="nb">tonumber</span><span class="p">(</span><span class="n">args</span><span class="p">.</span><span class="n">TF_COLLAPSE</span><span class="p">)</span> <span class="ow">or</span> <span class="p">(</span><span class="n">args</span><span class="p">.</span><span class="n">TF_HEADER</span> <span class="ow">and</span> <span class="n">cfg</span><span class="p">.</span><span class="n">task_force</span><span class="p">.</span><span class="n">lower_threshold</span><span class="p">)</span> <span class="ow">or</span> <span class="n">cfg</span><span class="p">.</span><span class="n">task_force</span><span class="p">.</span><span class="n">upper_threshold</span> </span><span id="L-621"><a href="#L-621"><span class="linenos" data-line="621"></span></a><span class="n">collapse_section</span><span class="p">(</span> </span><span id="L-622"><a href="#L-622"><span class="linenos" data-line="622"></span></a> <span class="o">#</span><span class="n">taskforce_output</span> <span class="o">></span> <span class="n">threshold</span><span class="p">,</span> </span><span id="L-623"><a href="#L-623"><span class="linenos" data-line="623"></span></a> <span class="n">taskforce_output</span><span class="p">,</span> </span><span id="L-624"><a href="#L-624"><span class="linenos" data-line="624"></span></a> <span class="n">args</span><span class="p">.</span><span class="n">TF_HEADER</span> <span class="ow">or</span> <span class="n">cfg</span><span class="p">.</span><span class="n">task_force</span><span class="p">.</span><span class="n">header</span> </span><span id="L-625"><a href="#L-625"><span class="linenos" data-line="625"></span></a><span class="p">)</span> </span><span id="L-626"><a href="#L-626"><span class="linenos" data-line="626"></span></a><span class="c1">---------------------------</span> </span><span id="L-627"><a href="#L-627"><span class="linenos" data-line="627"></span></a><span class="c1">-- Notes ------------------</span> </span><span id="L-628"><a href="#L-628"><span class="linenos" data-line="628"></span></a><span class="c1">---------------------------</span> </span><span id="L-629"><a href="#L-629"><span class="linenos" data-line="629"></span></a><span class="kd">local</span> <span class="n">note_output</span> <span class="o">=</span> <span class="p">{}</span> </span><span id="L-630"><a href="#L-630"><span class="linenos" data-line="630"></span></a><span class="kd">local</span> <span class="n">note_default_size</span> <span class="o">=</span> <span class="n">args</span><span class="p">.</span><span class="n">NOTE_SIZE</span> <span class="ow">or</span> <span class="n">args</span><span class="p">.</span><span class="n">NOTE_1_SIZE</span> <span class="ow">or</span> <span class="n">cfg</span><span class="p">.</span><span class="n">note</span><span class="p">.</span><span class="n">default_size</span> </span><span id="L-631"><a href="#L-631"><span class="linenos" data-line="631"></span></a><span class="kd">local</span> <span class="n">render_note</span> <span class="o">=</span> <span class="kr">function</span><span class="p">(</span><span class="n">note_args</span><span class="p">)</span><span class="c1">--text, image_name, size, category, sort_prefix</span> </span><span id="L-632"><a href="#L-632"><span class="linenos" data-line="632"></span></a> <span class="kd">local</span> <span class="n">sort</span> <span class="o">=</span> <span class="n">note_args</span><span class="p">.</span><span class="n">sort_prefix</span> <span class="ow">and</span> <span class="n">note_args</span><span class="p">.</span><span class="n">sort_prefix</span> <span class="o">..</span> <span class="n">current_title</span><span class="p">.</span><span class="n">text</span> </span><span id="L-633"><a href="#L-633"><span class="linenos" data-line="633"></span></a> <span class="n">add_category</span><span class="p">(</span><span class="n">note_args</span><span class="p">.</span><span class="n">category</span><span class="p">,</span> <span class="n">sort</span><span class="p">)</span> </span><span id="L-634"><a href="#L-634"><span class="linenos" data-line="634"></span></a> <span class="n">add_category</span><span class="p">(</span><span class="n">note_args</span><span class="p">.</span><span class="n">category2</span><span class="p">,</span> <span class="n">sort</span><span class="p">)</span> </span><span id="L-635"><a href="#L-635"><span class="linenos" data-line="635"></span></a> <span class="kr">if</span> <span class="n">note_args</span><span class="p">.</span><span class="n">text</span> <span class="kr">then</span> </span><span id="L-636"><a href="#L-636"><span class="linenos" data-line="636"></span></a> <span class="kd">local</span> <span class="n">note_image</span> <span class="o">=</span> <span class="n">image</span><span class="p">(</span> </span><span id="L-637"><a href="#L-637"><span class="linenos" data-line="637"></span></a> <span class="n">note_args</span><span class="p">.</span><span class="n">image_name</span><span class="p">,</span> </span><span id="L-638"><a href="#L-638"><span class="linenos" data-line="638"></span></a> <span class="n">note_args</span><span class="p">.</span><span class="n">size</span> <span class="ow">or</span> <span class="n">note_default_size</span><span class="p">,</span> </span><span id="L-639"><a href="#L-639"><span class="linenos" data-line="639"></span></a> <span class="n">cfg</span><span class="p">.</span><span class="n">note</span><span class="p">.</span><span class="n">icon_alt</span><span class="p">,</span> </span><span id="L-640"><a href="#L-640"><span class="linenos" data-line="640"></span></a> <span class="s1">'center'</span> </span><span id="L-641"><a href="#L-641"><span class="linenos" data-line="641"></span></a> <span class="p">)</span> </span><span id="L-642"><a href="#L-642"><span class="linenos" data-line="642"></span></a> <span class="kd">local</span> <span class="n">new_note</span> <span class="o">=</span> <span class="n">mw</span><span class="p">.</span><span class="n">html</span><span class="p">.</span><span class="n">create</span><span class="p">(</span><span class="s1">'tr'</span><span class="p">)</span> </span><span id="L-643"><a href="#L-643"><span class="linenos" data-line="643"></span></a> <span class="p">:</span><span class="n">tag</span><span class="p">(</span><span class="s1">'td'</span><span class="p">)</span> </span><span id="L-644"><a href="#L-644"><span class="linenos" data-line="644"></span></a> <span class="p">:</span><span class="n">css</span><span class="p">(</span><span class="s1">'background'</span><span class="p">,</span> <span class="n">note_args</span><span class="p">.</span><span class="n">background</span><span class="p">)</span> </span><span id="L-645"><a href="#L-645"><span class="linenos" data-line="645"></span></a> <span class="p">:</span><span class="n">wikitext</span><span class="p">(</span><span class="n">note_image</span><span class="p">)</span> </span><span id="L-646"><a href="#L-646"><span class="linenos" data-line="646"></span></a> <span class="p">:</span><span class="n">done</span><span class="p">()</span> </span><span id="L-647"><a href="#L-647"><span class="linenos" data-line="647"></span></a> <span class="p">:</span><span class="n">tag</span><span class="p">(</span><span class="s1">'td'</span><span class="p">)</span> </span><span id="L-648"><a href="#L-648"><span class="linenos" data-line="648"></span></a> <span class="p">:</span><span class="n">addClass</span><span class="p">(</span><span class="s1">'mbox-text'</span><span class="p">)</span> </span><span id="L-649"><a href="#L-649"><span class="linenos" data-line="649"></span></a> <span class="p">:</span><span class="n">attr</span><span class="p">(</span><span class="s1">'colspan'</span><span class="p">,</span> <span class="s1">'2'</span><span class="p">)</span> </span><span id="L-650"><a href="#L-650"><span class="linenos" data-line="650"></span></a> <span class="p">:</span><span class="n">wikitext</span><span class="p">(</span><span class="n">parse_pt</span><span class="p">(</span><span class="n">note_args</span><span class="p">.</span><span class="n">text</span><span class="p">))</span> </span><span id="L-651"><a href="#L-651"><span class="linenos" data-line="651"></span></a> <span class="p">:</span><span class="n">done</span><span class="p">()</span> </span><span id="L-652"><a href="#L-652"><span class="linenos" data-line="652"></span></a> <span class="nb">table.insert</span><span class="p">(</span><span class="n">note_output</span><span class="p">,</span> <span class="n">new_note</span><span class="p">)</span> </span><span id="L-653"><a href="#L-653"><span class="linenos" data-line="653"></span></a> <span class="kr">if</span> <span class="n">note_image</span> <span class="kr">then</span> </span><span id="L-654"><a href="#L-654"><span class="linenos" data-line="654"></span></a> <span class="kd">local</span> <span class="n">icon</span> <span class="o">=</span> <span class="n">mw</span><span class="p">.</span><span class="n">html</span><span class="p">.</span><span class="n">create</span><span class="p">(</span><span class="s1">'span'</span><span class="p">)</span> </span><span id="L-655"><a href="#L-655"><span class="linenos" data-line="655"></span></a> <span class="p">:</span><span class="n">addClass</span><span class="p">(</span><span class="s1">'wpb-header-bubbles'</span><span class="p">)</span> </span><span id="L-656"><a href="#L-656"><span class="linenos" data-line="656"></span></a> <span class="p">:</span><span class="n">wikitext</span><span class="p">(</span><span class="s1">'[[File:'</span> <span class="o">..</span> <span class="n">note_args</span><span class="p">.</span><span class="n">image_name</span> <span class="o">..</span> <span class="s1">'|'</span> <span class="o">..</span> <span class="n">cfg</span><span class="p">.</span><span class="n">note</span><span class="p">.</span><span class="n">header_icon</span> <span class="o">..</span> <span class="s1">'|'</span> <span class="o">..</span> <span class="n">parse_pt</span><span class="p">(</span><span class="n">note_args</span><span class="p">.</span><span class="n">text</span><span class="p">)</span> <span class="o">..</span> <span class="s1">'|link=|alt=]]'</span><span class="p">)</span> </span><span id="L-657"><a href="#L-657"><span class="linenos" data-line="657"></span></a> <span class="nb">table.insert</span><span class="p">(</span><span class="n">nested_ratings</span><span class="p">,</span> <span class="nb">tostring</span><span class="p">(</span><span class="n">icon</span><span class="p">))</span> </span><span id="L-658"><a href="#L-658"><span class="linenos" data-line="658"></span></a> <span class="kr">end</span> </span><span id="L-659"><a href="#L-659"><span class="linenos" data-line="659"></span></a> <span class="kr">end</span> </span><span id="L-660"><a href="#L-660"><span class="linenos" data-line="660"></span></a><span class="kr">end</span> </span><span id="L-661"><a href="#L-661"><span class="linenos" data-line="661"></span></a><span class="kd">local</span> <span class="n">auto</span> <span class="o">=</span> <span class="kc">false</span> </span><span id="L-662"><a href="#L-662"><span class="linenos" data-line="662"></span></a><span class="kd">local</span> <span class="n">auto_arg</span> <span class="o">=</span> <span class="n">args</span><span class="p">.</span><span class="n">auto</span> <span class="ow">and</span> <span class="n">args</span><span class="p">.</span><span class="n">auto</span><span class="p">:</span><span class="n">lower</span><span class="p">()</span> </span><span id="L-663"><a href="#L-663"><span class="linenos" data-line="663"></span></a><span class="kr">if</span> <span class="p">(</span><span class="n">auto_arg</span><span class="o">==</span><span class="s1">'yes'</span> <span class="ow">or</span> <span class="n">auto_arg</span><span class="o">==</span><span class="s1">'stub'</span><span class="p">)</span> <span class="ow">and</span> <span class="n">class</span><span class="o">==</span><span class="s1">'Stub'</span> <span class="kr">then</span> </span><span id="L-664"><a href="#L-664"><span class="linenos" data-line="664"></span></a> <span class="n">auto</span> <span class="o">=</span> <span class="s1">'stub'</span> </span><span id="L-665"><a href="#L-665"><span class="linenos" data-line="665"></span></a><span class="kr">elseif</span> <span class="p">(</span><span class="n">auto_arg</span><span class="o">==</span><span class="s1">'inherit'</span> <span class="ow">or</span> <span class="n">auto_arg</span><span class="o">==</span><span class="s1">'length'</span><span class="p">)</span> <span class="ow">and</span> <span class="n">class</span> <span class="ow">and</span> <span class="n">class</span><span class="o">~=</span><span class="s1">''</span> <span class="kr">then</span> </span><span id="L-666"><a href="#L-666"><span class="linenos" data-line="666"></span></a> <span class="n">auto</span> <span class="o">=</span> <span class="n">auto_arg</span> </span><span id="L-667"><a href="#L-667"><span class="linenos" data-line="667"></span></a><span class="kr">end</span> </span><span id="L-668"><a href="#L-668"><span class="linenos" data-line="668"></span></a><span class="kr">if</span> <span class="n">auto</span> <span class="kr">then</span> </span><span id="L-669"><a href="#L-669"><span class="linenos" data-line="669"></span></a> <span class="kd">local</span> <span class="n">auto_cat</span> <span class="o">=</span> <span class="n">args</span><span class="p">.</span><span class="n">AUTO_ASSESS_CAT</span> <span class="ow">or</span> <span class="n">cfg</span><span class="p">.</span><span class="n">auto</span><span class="p">.</span><span class="n">default_cat</span><span class="p">:</span><span class="n">format</span><span class="p">(</span><span class="n">project</span><span class="p">)</span> </span><span id="L-670"><a href="#L-670"><span class="linenos" data-line="670"></span></a> <span class="kd">local</span> <span class="n">auto_text</span> <span class="o">=</span> <span class="n">cfg</span><span class="p">.</span><span class="n">auto</span><span class="p">.</span><span class="n">assessed</span><span class="p">:</span><span class="n">format</span><span class="p">(</span> </span><span id="L-671"><a href="#L-671"><span class="linenos" data-line="671"></span></a> <span class="n">cfg</span><span class="p">.</span><span class="n">auto</span><span class="p">[</span><span class="n">auto</span><span class="p">],</span> <span class="c1">-- method of automatic assessment</span> </span><span id="L-672"><a href="#L-672"><span class="linenos" data-line="672"></span></a> <span class="n">parameter_format</span><span class="p">(</span><span class="s1">'auto'</span><span class="p">)</span> </span><span id="L-673"><a href="#L-673"><span class="linenos" data-line="673"></span></a> <span class="p">)</span> </span><span id="L-674"><a href="#L-674"><span class="linenos" data-line="674"></span></a> <span class="kd">local</span> <span class="n">sort_prefix</span> </span><span id="L-675"><a href="#L-675"><span class="linenos" data-line="675"></span></a> <span class="kr">if</span> <span class="n">auto</span><span class="o">==</span><span class="s1">'stub'</span> <span class="kr">then</span> </span><span id="L-676"><a href="#L-676"><span class="linenos" data-line="676"></span></a> <span class="n">sort_prefix</span> <span class="o">=</span> <span class="s1">'S'</span> </span><span id="L-677"><a href="#L-677"><span class="linenos" data-line="677"></span></a> <span class="kr">elseif</span> <span class="n">auto</span><span class="o">==</span><span class="s1">'length'</span> <span class="kr">then</span> </span><span id="L-678"><a href="#L-678"><span class="linenos" data-line="678"></span></a> <span class="n">sort_prefix</span> <span class="o">=</span> <span class="s1">'L'</span> </span><span id="L-679"><a href="#L-679"><span class="linenos" data-line="679"></span></a> <span class="kr">elseif</span> <span class="n">auto</span><span class="o">==</span><span class="s1">'inherit'</span> <span class="kr">then</span> </span><span id="L-680"><a href="#L-680"><span class="linenos" data-line="680"></span></a> <span class="kd">local</span> <span class="n">sort_codes</span> <span class="o">=</span> <span class="n">cfg</span><span class="p">.</span><span class="n">auto</span><span class="p">.</span><span class="n">sort_codes</span> </span><span id="L-681"><a href="#L-681"><span class="linenos" data-line="681"></span></a> <span class="n">sort_prefix</span> <span class="o">=</span> <span class="n">sort_codes</span><span class="p">[</span><span class="n">class</span><span class="p">]</span> <span class="ow">or</span> <span class="n">cfg</span><span class="p">.</span><span class="n">auto</span><span class="p">.</span><span class="n">default_sort_code</span> </span><span id="L-682"><a href="#L-682"><span class="linenos" data-line="682"></span></a> <span class="kr">end</span> </span><span id="L-683"><a href="#L-683"><span class="linenos" data-line="683"></span></a> <span class="n">render_note</span><span class="p">{</span> </span><span id="L-684"><a href="#L-684"><span class="linenos" data-line="684"></span></a> <span class="n">text</span> <span class="o">=</span> <span class="n">auto_text</span><span class="p">,</span> </span><span id="L-685"><a href="#L-685"><span class="linenos" data-line="685"></span></a> <span class="n">image_name</span> <span class="o">=</span> <span class="n">cfg</span><span class="p">.</span><span class="n">auto</span><span class="p">.</span><span class="n">icon</span><span class="p">,</span> </span><span id="L-686"><a href="#L-686"><span class="linenos" data-line="686"></span></a> <span class="n">category</span> <span class="o">=</span> <span class="n">auto_cat</span><span class="p">,</span> </span><span id="L-687"><a href="#L-687"><span class="linenos" data-line="687"></span></a> <span class="n">sort_prefix</span> <span class="o">=</span> <span class="n">sort_prefix</span> </span><span id="L-688"><a href="#L-688"><span class="linenos" data-line="688"></span></a> <span class="p">}</span> </span><span id="L-689"><a href="#L-689"><span class="linenos" data-line="689"></span></a><span class="kr">end</span> </span><span id="L-690"><a href="#L-690"><span class="linenos" data-line="690"></span></a><span class="kr">if</span> <span class="n">yesno</span><span class="p">(</span><span class="n">args</span><span class="p">.</span><span class="n">attention</span><span class="p">,</span> <span class="kc">true</span><span class="p">)</span> <span class="kr">then</span> </span><span id="L-691"><a href="#L-691"><span class="linenos" data-line="691"></span></a> <span class="kd">local</span> <span class="n">attention_cat</span> <span class="o">=</span> <span class="n">args</span><span class="p">.</span><span class="n">ATTENTION_CAT</span> <span class="ow">or</span> <span class="n">cfg</span><span class="p">.</span><span class="n">attention</span><span class="p">.</span><span class="n">default_cat</span><span class="p">:</span><span class="n">format</span><span class="p">(</span><span class="n">project</span><span class="p">)</span> </span><span id="L-692"><a href="#L-692"><span class="linenos" data-line="692"></span></a> <span class="n">render_note</span><span class="p">{</span> </span><span id="L-693"><a href="#L-693"><span class="linenos" data-line="693"></span></a> <span class="n">text</span> <span class="o">=</span> <span class="n">cfg</span><span class="p">.</span><span class="n">attention</span><span class="p">.</span><span class="n">text</span><span class="p">,</span> </span><span id="L-694"><a href="#L-694"><span class="linenos" data-line="694"></span></a> <span class="n">image_name</span> <span class="o">=</span> <span class="n">cfg</span><span class="p">.</span><span class="n">attention</span><span class="p">.</span><span class="n">icon</span><span class="p">,</span> </span><span id="L-695"><a href="#L-695"><span class="linenos" data-line="695"></span></a> <span class="n">category</span> <span class="o">=</span> <span class="n">attention_cat</span> </span><span id="L-696"><a href="#L-696"><span class="linenos" data-line="696"></span></a> <span class="p">}</span> </span><span id="L-697"><a href="#L-697"><span class="linenos" data-line="697"></span></a><span class="kr">end</span> </span><span id="L-698"><a href="#L-698"><span class="linenos" data-line="698"></span></a><span class="kr">if</span> <span class="n">yesno</span><span class="p">(</span><span class="n">args</span><span class="p">.</span><span class="n">infobox</span><span class="p">,</span> <span class="kc">true</span><span class="p">)</span> <span class="kr">then</span> </span><span id="L-699"><a href="#L-699"><span class="linenos" data-line="699"></span></a> <span class="kd">local</span> <span class="n">infobox_cat</span> <span class="o">=</span> <span class="n">args</span><span class="p">.</span><span class="n">INFOBOX_CAT</span> <span class="ow">or</span> <span class="n">cfg</span><span class="p">.</span><span class="n">infobox</span><span class="p">.</span><span class="n">default_cat</span><span class="p">:</span><span class="n">format</span><span class="p">(</span><span class="n">project</span><span class="p">)</span> </span><span id="L-700"><a href="#L-700"><span class="linenos" data-line="700"></span></a> <span class="n">render_note</span><span class="p">{</span> </span><span id="L-701"><a href="#L-701"><span class="linenos" data-line="701"></span></a> <span class="n">text</span> <span class="o">=</span> <span class="n">cfg</span><span class="p">.</span><span class="n">infobox</span><span class="p">.</span><span class="n">text</span><span class="p">,</span> </span><span id="L-702"><a href="#L-702"><span class="linenos" data-line="702"></span></a> <span class="n">image_name</span> <span class="o">=</span> <span class="n">cfg</span><span class="p">.</span><span class="n">infobox</span><span class="p">.</span><span class="n">icon</span><span class="p">,</span> </span><span id="L-703"><a href="#L-703"><span class="linenos" data-line="703"></span></a> <span class="n">category</span> <span class="o">=</span> <span class="n">infobox_cat</span> </span><span id="L-704"><a href="#L-704"><span class="linenos" data-line="704"></span></a> <span class="p">}</span> </span><span id="L-705"><a href="#L-705"><span class="linenos" data-line="705"></span></a><span class="kr">end</span> </span><span id="L-706"><a href="#L-706"><span class="linenos" data-line="706"></span></a><span class="kr">for</span> <span class="n">_</span><span class="p">,</span> <span class="n">k</span> <span class="kr">in</span> <span class="nb">ipairs</span><span class="p">(</span><span class="n">notes</span><span class="p">)</span> <span class="kr">do</span> </span><span id="L-707"><a href="#L-707"><span class="linenos" data-line="707"></span></a> <span class="kd">local</span> <span class="n">note_prefix</span> <span class="o">=</span> <span class="s1">'NOTE_'</span> <span class="o">..</span> <span class="n">k</span> <span class="o">..</span> <span class="s1">'_'</span> </span><span id="L-708"><a href="#L-708"><span class="linenos" data-line="708"></span></a> <span class="n">render_note</span><span class="p">{</span> </span><span id="L-709"><a href="#L-709"><span class="linenos" data-line="709"></span></a> <span class="n">text</span> <span class="o">=</span> <span class="n">parse_pt</span><span class="p">(</span><span class="n">args</span><span class="p">[</span><span class="n">note_prefix</span><span class="o">..</span><span class="s1">'TEXT'</span><span class="p">]),</span> </span><span id="L-710"><a href="#L-710"><span class="linenos" data-line="710"></span></a> <span class="n">image_name</span> <span class="o">=</span> <span class="n">args</span><span class="p">[</span><span class="n">note_prefix</span><span class="o">..</span><span class="s1">'IMAGE'</span><span class="p">],</span> </span><span id="L-711"><a href="#L-711"><span class="linenos" data-line="711"></span></a> <span class="n">size</span> <span class="o">=</span> <span class="n">args</span><span class="p">[</span><span class="n">note_prefix</span><span class="o">..</span><span class="s1">'SIZE'</span><span class="p">],</span> </span><span id="L-712"><a href="#L-712"><span class="linenos" data-line="712"></span></a> <span class="n">category</span> <span class="o">=</span> <span class="n">args</span><span class="p">[</span><span class="n">note_prefix</span><span class="o">..</span><span class="s1">'CAT'</span><span class="p">]</span> </span><span id="L-713"><a href="#L-713"><span class="linenos" data-line="713"></span></a> <span class="p">}</span> </span><span id="L-714"><a href="#L-714"><span class="linenos" data-line="714"></span></a><span class="kr">end</span> </span><span id="L-715"><a href="#L-715"><span class="linenos" data-line="715"></span></a><span class="kr">if</span> <span class="n">yesno</span><span class="p">(</span><span class="n">args</span><span class="p">[</span><span class="s1">'image-needed'</span><span class="p">],</span> <span class="kc">true</span><span class="p">)</span> <span class="kr">then</span> </span><span id="L-716"><a href="#L-716"><span class="linenos" data-line="716"></span></a> <span class="kd">local</span> <span class="n">image_needed_args</span> <span class="o">=</span> <span class="nb">require</span><span class="p">(</span><span class="n">auxiliary</span><span class="p">).</span><span class="n">image_needed</span><span class="p">(</span><span class="n">args</span><span class="p">)</span> </span><span id="L-717"><a href="#L-717"><span class="linenos" data-line="717"></span></a> <span class="n">render_note</span><span class="p">(</span><span class="n">image_needed_args</span><span class="p">)</span> </span><span id="L-718"><a href="#L-718"><span class="linenos" data-line="718"></span></a><span class="kr">end</span> </span><span id="L-719"><a href="#L-719"><span class="linenos" data-line="719"></span></a><span class="kr">if</span> <span class="n">yesno</span><span class="p">(</span><span class="n">args</span><span class="p">[</span><span class="s1">'collaboration-candidate'</span><span class="p">],</span> <span class="kc">true</span><span class="p">)</span> <span class="ow">or</span> <span class="n">yesno</span><span class="p">(</span><span class="n">args</span><span class="p">[</span><span class="s1">'collaboration-current'</span><span class="p">],</span> <span class="kc">true</span><span class="p">)</span> <span class="ow">or</span> <span class="n">yesno</span><span class="p">(</span><span class="n">args</span><span class="p">[</span><span class="s1">'collaboration-past'</span><span class="p">],</span> <span class="kc">true</span><span class="p">)</span> <span class="kr">then</span> </span><span id="L-720"><a href="#L-720"><span class="linenos" data-line="720"></span></a> <span class="kd">local</span> <span class="n">collaboration_args</span> <span class="o">=</span> <span class="nb">require</span><span class="p">(</span><span class="n">auxiliary</span><span class="p">).</span><span class="n">collaboration</span><span class="p">(</span><span class="n">args</span><span class="p">,</span> <span class="n">current_title</span><span class="p">)</span> </span><span id="L-721"><a href="#L-721"><span class="linenos" data-line="721"></span></a> <span class="n">render_note</span><span class="p">(</span><span class="n">collaboration_args</span><span class="p">.</span><span class="n">candidate</span><span class="p">)</span> </span><span id="L-722"><a href="#L-722"><span class="linenos" data-line="722"></span></a> <span class="n">render_note</span><span class="p">(</span><span class="n">collaboration_args</span><span class="p">.</span><span class="n">current</span><span class="p">)</span> </span><span id="L-723"><a href="#L-723"><span class="linenos" data-line="723"></span></a> <span class="n">render_note</span><span class="p">(</span><span class="n">collaboration_args</span><span class="p">.</span><span class="n">past</span><span class="p">)</span> </span><span id="L-724"><a href="#L-724"><span class="linenos" data-line="724"></span></a><span class="kr">end</span> </span><span id="L-725"><a href="#L-725"><span class="linenos" data-line="725"></span></a><span class="kr">if</span> <span class="n">yesno</span><span class="p">(</span><span class="n">args</span><span class="p">[</span><span class="s1">'a class'</span><span class="p">],</span> <span class="kc">true</span><span class="p">)</span> <span class="kr">then</span> </span><span id="L-726"><a href="#L-726"><span class="linenos" data-line="726"></span></a> <span class="kd">local</span> <span class="n">a_class_args</span> <span class="o">=</span> <span class="nb">require</span><span class="p">(</span><span class="n">auxiliary</span><span class="p">).</span><span class="n">a_class</span><span class="p">(</span><span class="n">args</span><span class="p">,</span> <span class="n">lang</span><span class="p">)</span> </span><span id="L-727"><a href="#L-727"><span class="linenos" data-line="727"></span></a> <span class="n">render_note</span><span class="p">(</span><span class="n">a_class_args</span><span class="p">)</span> </span><span id="L-728"><a href="#L-728"><span class="linenos" data-line="728"></span></a><span class="kr">end</span> </span><span id="L-729"><a href="#L-729"><span class="linenos" data-line="729"></span></a><span class="kr">if</span> <span class="n">yesno</span><span class="p">(</span><span class="n">args</span><span class="p">[</span><span class="s1">'peer review'</span><span class="p">],</span> <span class="kc">true</span><span class="p">)</span> <span class="ow">or</span> <span class="n">yesno</span><span class="p">(</span><span class="n">args</span><span class="p">[</span><span class="s1">'old peer review'</span><span class="p">],</span> <span class="kc">true</span><span class="p">)</span> <span class="kr">then</span> </span><span id="L-730"><a href="#L-730"><span class="linenos" data-line="730"></span></a> <span class="kd">local</span> <span class="n">peer_review_args</span> <span class="o">=</span> <span class="nb">require</span><span class="p">(</span><span class="n">auxiliary</span><span class="p">).</span><span class="n">peer_review</span><span class="p">(</span><span class="n">args</span><span class="p">,</span> <span class="n">current_title</span><span class="p">)</span> </span><span id="L-731"><a href="#L-731"><span class="linenos" data-line="731"></span></a> <span class="n">render_note</span><span class="p">(</span><span class="n">peer_review_args</span><span class="p">.</span><span class="n">current</span><span class="p">)</span> </span><span id="L-732"><a href="#L-732"><span class="linenos" data-line="732"></span></a> <span class="n">render_note</span><span class="p">(</span><span class="n">peer_review_args</span><span class="p">.</span><span class="n">past</span><span class="p">)</span> </span><span id="L-733"><a href="#L-733"><span class="linenos" data-line="733"></span></a><span class="kr">end</span> </span><span id="L-734"><a href="#L-734"><span class="linenos" data-line="734"></span></a> </span><span id="L-735"><a href="#L-735"><span class="linenos" data-line="735"></span></a><span class="kd">local</span> <span class="n">note_count</span> <span class="o">=</span> <span class="o">#</span><span class="n">note_output</span> </span><span id="L-736"><a href="#L-736"><span class="linenos" data-line="736"></span></a><span class="kr">if</span> <span class="n">args</span><span class="p">.</span><span class="n">HOOK_NOTE</span> <span class="kr">then</span> </span><span id="L-737"><a href="#L-737"><span class="linenos" data-line="737"></span></a> <span class="nb">table.insert</span><span class="p">(</span><span class="n">note_output</span><span class="p">,</span> <span class="n">args</span><span class="p">.</span><span class="n">HOOK_NOTE</span><span class="p">)</span> </span><span id="L-738"><a href="#L-738"><span class="linenos" data-line="738"></span></a> <span class="kd">local</span> <span class="n">hook_collapsed</span> <span class="o">=</span> <span class="mi">0</span> </span><span id="L-739"><a href="#L-739"><span class="linenos" data-line="739"></span></a> <span class="kr">if</span> <span class="n">args</span><span class="p">.</span><span class="n">HOOK_COLLAPSED</span> <span class="kr">then</span> </span><span id="L-740"><a href="#L-740"><span class="linenos" data-line="740"></span></a> <span class="kd">local</span> <span class="n">success</span><span class="p">,</span> <span class="n">result</span> <span class="o">=</span> <span class="nb">pcall</span><span class="p">(</span><span class="n">mw</span><span class="p">.</span><span class="n">ext</span><span class="p">.</span><span class="n">ParserFunctions</span><span class="p">.</span><span class="n">expr</span><span class="p">,</span> <span class="n">args</span><span class="p">.</span><span class="n">HOOK_COLLAPSED</span><span class="p">)</span> </span><span id="L-741"><a href="#L-741"><span class="linenos" data-line="741"></span></a> <span class="n">hook_collapsed</span> <span class="o">=</span> <span class="n">success</span> <span class="ow">and</span> <span class="nb">tonumber</span><span class="p">(</span><span class="n">result</span><span class="p">)</span> <span class="ow">or</span> <span class="mi">0</span> </span><span id="L-742"><a href="#L-742"><span class="linenos" data-line="742"></span></a> <span class="kr">if</span> <span class="n">args</span><span class="p">.</span><span class="n">HOOK_COLLAPSED</span><span class="o">==</span><span class="s1">'auto'</span> <span class="kr">then</span> </span><span id="L-743"><a href="#L-743"><span class="linenos" data-line="743"></span></a> <span class="n">hook_collapsed</span> <span class="o">=</span> <span class="mi">1</span> </span><span id="L-744"><a href="#L-744"><span class="linenos" data-line="744"></span></a> <span class="kr">end</span> </span><span id="L-745"><a href="#L-745"><span class="linenos" data-line="745"></span></a> <span class="kr">end</span> </span><span id="L-746"><a href="#L-746"><span class="linenos" data-line="746"></span></a> <span class="n">note_count</span> <span class="o">=</span> <span class="n">note_count</span> <span class="o">+</span> <span class="n">hook_collapsed</span> </span><span id="L-747"><a href="#L-747"><span class="linenos" data-line="747"></span></a><span class="kr">end</span> </span><span id="L-748"><a href="#L-748"><span class="linenos" data-line="748"></span></a><span class="n">collapse_section</span><span class="p">(</span> </span><span id="L-749"><a href="#L-749"><span class="linenos" data-line="749"></span></a> <span class="n">note_count</span> <span class="o">></span> <span class="p">(</span><span class="nb">tonumber</span><span class="p">(</span><span class="n">args</span><span class="p">.</span><span class="n">COLLAPSED</span><span class="p">)</span> <span class="ow">or</span> <span class="n">cfg</span><span class="p">.</span><span class="n">note</span><span class="p">.</span><span class="n">threshold</span><span class="p">),</span> </span><span id="L-750"><a href="#L-750"><span class="linenos" data-line="750"></span></a> <span class="n">note_output</span><span class="p">,</span> </span><span id="L-751"><a href="#L-751"><span class="linenos" data-line="751"></span></a> <span class="n">args</span><span class="p">.</span><span class="n">COLLAPSED_HEAD</span> <span class="ow">or</span> <span class="n">cfg</span><span class="p">.</span><span class="n">note</span><span class="p">.</span><span class="n">header</span> </span><span id="L-752"><a href="#L-752"><span class="linenos" data-line="752"></span></a><span class="p">)</span> </span><span id="L-753"><a href="#L-753"><span class="linenos" data-line="753"></span></a><span class="c1">---------------------------</span> </span><span id="L-754"><a href="#L-754"><span class="linenos" data-line="754"></span></a><span class="c1">-- Bottom text ------------</span> </span><span id="L-755"><a href="#L-755"><span class="linenos" data-line="755"></span></a><span class="c1">---------------------------</span> </span><span id="L-756"><a href="#L-756"><span class="linenos" data-line="756"></span></a><span class="kr">if</span> <span class="n">args</span><span class="p">.</span><span class="n">HOOK_BOTTOM</span> <span class="kr">then</span> </span><span id="L-757"><a href="#L-757"><span class="linenos" data-line="757"></span></a> <span class="nb">table.insert</span><span class="p">(</span><span class="n">rows</span><span class="p">,</span> <span class="n">args</span><span class="p">.</span><span class="n">HOOK_BOTTOM</span><span class="p">)</span> </span><span id="L-758"><a href="#L-758"><span class="linenos" data-line="758"></span></a><span class="kr">end</span> </span><span id="L-759"><a href="#L-759"><span class="linenos" data-line="759"></span></a><span class="kr">if</span> <span class="n">args</span><span class="p">.</span><span class="n">TODO_LINK</span> <span class="ow">or</span> <span class="n">args</span><span class="p">.</span><span class="n">TODO_TEXT</span> <span class="kr">then</span> </span><span id="L-760"><a href="#L-760"><span class="linenos" data-line="760"></span></a> <span class="kd">local</span> <span class="n">todolist</span> <span class="o">=</span> <span class="nb">require</span><span class="p">(</span><span class="n">auxiliary</span><span class="p">).</span><span class="n">todo_list</span><span class="p">(</span><span class="n">args</span><span class="p">,</span> <span class="n">frame</span><span class="p">)</span> </span><span id="L-761"><a href="#L-761"><span class="linenos" data-line="761"></span></a> <span class="nb">table.insert</span><span class="p">(</span><span class="n">rows</span><span class="p">,</span> <span class="n">todolist</span><span class="p">)</span> </span><span id="L-762"><a href="#L-762"><span class="linenos" data-line="762"></span></a><span class="kr">end</span> </span><span id="L-763"><a href="#L-763"><span class="linenos" data-line="763"></span></a><span class="kr">if</span> <span class="n">args</span><span class="p">.</span><span class="n">BOTTOM_TEXT</span> <span class="kr">then</span> </span><span id="L-764"><a href="#L-764"><span class="linenos" data-line="764"></span></a> <span class="kd">local</span> <span class="n">bottom_text</span> <span class="o">=</span> <span class="n">mw</span><span class="p">.</span><span class="n">html</span><span class="p">.</span><span class="n">create</span><span class="p">(</span><span class="s1">'tr'</span><span class="p">)</span> </span><span id="L-765"><a href="#L-765"><span class="linenos" data-line="765"></span></a> <span class="p">:</span><span class="n">tag</span><span class="p">(</span><span class="s1">'td'</span><span class="p">)</span> </span><span id="L-766"><a href="#L-766"><span class="linenos" data-line="766"></span></a> <span class="p">:</span><span class="n">attr</span><span class="p">(</span><span class="s1">'colspan'</span><span class="p">,</span><span class="s1">'3'</span><span class="p">)</span> </span><span id="L-767"><a href="#L-767"><span class="linenos" data-line="767"></span></a> <span class="p">:</span><span class="n">wikitext</span><span class="p">(</span><span class="n">parse_pt</span><span class="p">(</span><span class="n">args</span><span class="p">.</span><span class="n">BOTTOM_TEXT</span><span class="p">))</span> </span><span id="L-768"><a href="#L-768"><span class="linenos" data-line="768"></span></a> <span class="p">:</span><span class="n">done</span><span class="p">()</span> </span><span id="L-769"><a href="#L-769"><span class="linenos" data-line="769"></span></a> <span class="nb">table.insert</span><span class="p">(</span><span class="n">rows</span><span class="p">,</span> <span class="n">bottom_text</span><span class="p">)</span> </span><span id="L-770"><a href="#L-770"><span class="linenos" data-line="770"></span></a><span class="kr">end</span> </span><span id="L-771"><a href="#L-771"><span class="linenos" data-line="771"></span></a><span class="kr">if</span> <span class="n">args</span><span class="p">.</span><span class="n">MAIN_CAT</span> <span class="kr">then</span> </span><span id="L-772"><a href="#L-772"><span class="linenos" data-line="772"></span></a> <span class="n">add_category</span><span class="p">(</span><span class="n">args</span><span class="p">.</span><span class="n">MAIN_CAT</span><span class="p">)</span> </span><span id="L-773"><a href="#L-773"><span class="linenos" data-line="773"></span></a><span class="kr">end</span> </span><span id="L-774"><a href="#L-774"><span class="linenos" data-line="774"></span></a><span class="c1">---------------------------</span> </span><span id="L-775"><a href="#L-775"><span class="linenos" data-line="775"></span></a><span class="c1">-- Nested display ---------</span> </span><span id="L-776"><a href="#L-776"><span class="linenos" data-line="776"></span></a><span class="c1">---------------------------</span> </span><span id="L-777"><a href="#L-777"><span class="linenos" data-line="777"></span></a><span class="kr">if</span> <span class="n">args</span><span class="p">.</span><span class="n">HOOK_NESTED</span> <span class="kr">then</span> </span><span id="L-778"><a href="#L-778"><span class="linenos" data-line="778"></span></a> <span class="kd">local</span> <span class="n">hook_nested</span> <span class="o">=</span> <span class="n">args</span><span class="p">.</span><span class="n">HOOK_NESTED</span><span class="p">:</span><span class="n">gsub</span><span class="p">(</span><span class="s1">'^&#32;/ '</span><span class="p">,</span> <span class="s1">''</span><span class="p">)</span> <span class="c1">-- remove initial slash, will be added later</span> </span><span id="L-779"><a href="#L-779"><span class="linenos" data-line="779"></span></a> <span class="nb">table.insert</span><span class="p">(</span><span class="n">nested_tf</span><span class="p">,</span> <span class="n">hook_nested</span><span class="p">)</span> </span><span id="L-780"><a href="#L-780"><span class="linenos" data-line="780"></span></a><span class="kr">end</span> </span><span id="L-781"><a href="#L-781"><span class="linenos" data-line="781"></span></a><span class="kd">local</span> <span class="n">nested_tf_str</span> <span class="o">=</span> <span class="s1">''</span> </span><span id="L-782"><a href="#L-782"><span class="linenos" data-line="782"></span></a><span class="kr">if</span> <span class="o">#</span><span class="n">nested_tf</span><span class="o">></span><span class="mi">0</span> <span class="kr">then</span> </span><span id="L-783"><a href="#L-783"><span class="linenos" data-line="783"></span></a> <span class="n">nested_tf_str</span> <span class="o">=</span> <span class="nb">tostring</span><span class="p">(</span><span class="n">mw</span><span class="p">.</span><span class="n">html</span><span class="p">.</span><span class="n">create</span><span class="p">(</span><span class="s1">'span'</span><span class="p">)</span> </span><span id="L-784"><a href="#L-784"><span class="linenos" data-line="784"></span></a> <span class="p">:</span><span class="n">addClass</span><span class="p">(</span><span class="s1">'wpb-nested-task-force'</span><span class="p">)</span> </span><span id="L-785"><a href="#L-785"><span class="linenos" data-line="785"></span></a> <span class="p">:</span><span class="n">wikitext</span><span class="p">(</span><span class="s1">': '</span> <span class="o">..</span> <span class="nb">table.concat</span><span class="p">(</span><span class="n">nested_tf</span><span class="p">,</span> <span class="s1">' / '</span><span class="p">))</span> </span><span id="L-786"><a href="#L-786"><span class="linenos" data-line="786"></span></a> <span class="p">)</span> </span><span id="L-787"><a href="#L-787"><span class="linenos" data-line="787"></span></a><span class="kr">end</span> </span><span id="L-788"><a href="#L-788"><span class="linenos" data-line="788"></span></a><span class="kd">local</span> <span class="n">nested_ratings_str</span> <span class="o">=</span> <span class="o">#</span><span class="n">nested_ratings</span><span class="o">></span><span class="mi">0</span> <span class="ow">and</span> <span class="nb">table.concat</span><span class="p">(</span><span class="n">nested_ratings</span><span class="p">,</span> <span class="s1">' '</span><span class="p">)</span> <span class="ow">or</span> <span class="s1">''</span> </span><span id="L-789"><a href="#L-789"><span class="linenos" data-line="789"></span></a><span class="kr">if</span> <span class="n">args</span><span class="p">.</span><span class="n">HOOK_NESTED_ASSESS</span> <span class="kr">then</span> </span><span id="L-790"><a href="#L-790"><span class="linenos" data-line="790"></span></a> <span class="n">nested_ratings_str</span> <span class="o">=</span> <span class="n">nested_ratings_str</span> <span class="o">..</span> <span class="nb">tostring</span><span class="p">(</span><span class="n">mw</span><span class="p">.</span><span class="n">html</span><span class="p">.</span><span class="n">create</span><span class="p">(</span><span class="s1">'span'</span><span class="p">)</span> </span><span id="L-791"><a href="#L-791"><span class="linenos" data-line="791"></span></a> <span class="p">:</span><span class="n">addClass</span><span class="p">(</span><span class="s1">'wpb-header-bubbles'</span><span class="p">)</span> </span><span id="L-792"><a href="#L-792"><span class="linenos" data-line="792"></span></a> <span class="p">:</span><span class="n">wikitext</span><span class="p">(</span><span class="n">args</span><span class="p">.</span><span class="n">HOOK_NESTED_ASSESS</span><span class="p">)</span> </span><span id="L-793"><a href="#L-793"><span class="linenos" data-line="793"></span></a> <span class="p">)</span> </span><span id="L-794"><a href="#L-794"><span class="linenos" data-line="794"></span></a><span class="kr">end</span> </span><span id="L-795"><a href="#L-795"><span class="linenos" data-line="795"></span></a><span class="kd">local</span> <span class="n">header_row</span> <span class="o">=</span> <span class="n">mw</span><span class="p">.</span><span class="n">html</span><span class="p">.</span><span class="n">create</span><span class="p">(</span><span class="s1">'tr'</span><span class="p">)</span> </span><span id="L-796"><a href="#L-796"><span class="linenos" data-line="796"></span></a> <span class="p">:</span><span class="n">addClass</span><span class="p">(</span><span class="s1">'wpb-header'</span><span class="p">)</span> </span><span id="L-797"><a href="#L-797"><span class="linenos" data-line="797"></span></a> <span class="p">:</span><span class="n">tag</span><span class="p">(</span><span class="s1">'td'</span><span class="p">)</span> </span><span id="L-798"><a href="#L-798"><span class="linenos" data-line="798"></span></a> <span class="p">:</span><span class="n">addClass</span><span class="p">(</span><span class="s1">'wpb-header-icon'</span><span class="p">)</span> </span><span id="L-799"><a href="#L-799"><span class="linenos" data-line="799"></span></a> <span class="p">:</span><span class="n">wikitext</span><span class="p">(</span><span class="n">image</span><span class="p">(</span><span class="n">args</span><span class="p">.</span><span class="n">IMAGE_LEFT</span><span class="p">,</span> <span class="n">cfg</span><span class="p">.</span><span class="n">image</span><span class="p">.</span><span class="n">header_size</span><span class="p">,</span> <span class="n">cfg</span><span class="p">.</span><span class="n">image</span><span class="p">.</span><span class="n">alt</span><span class="p">))</span> </span><span id="L-800"><a href="#L-800"><span class="linenos" data-line="800"></span></a> <span class="p">:</span><span class="n">done</span><span class="p">()</span> </span><span id="L-801"><a href="#L-801"><span class="linenos" data-line="801"></span></a> <span class="p">:</span><span class="n">tag</span><span class="p">(</span><span class="s1">'td'</span><span class="p">)</span> </span><span id="L-802"><a href="#L-802"><span class="linenos" data-line="802"></span></a> <span class="p">:</span><span class="n">addClass</span><span class="p">(</span><span class="s1">'wpb-header-combined'</span><span class="p">)</span> </span><span id="L-803"><a href="#L-803"><span class="linenos" data-line="803"></span></a> <span class="p">:</span><span class="n">wikitext</span><span class="p">(</span><span class="n">wikilink</span><span class="p">(</span><span class="n">project_link</span><span class="p">.</span><span class="n">prefixedText</span><span class="p">,</span> <span class="n">project</span><span class="p">)</span> <span class="o">..</span> <span class="n">nested_tf_str</span> <span class="o">..</span> <span class="s1">' '</span> <span class="o">..</span> <span class="n">nested_ratings_str</span><span class="p">)</span> </span><span id="L-804"><a href="#L-804"><span class="linenos" data-line="804"></span></a> <span class="p">:</span><span class="n">done</span><span class="p">()</span> </span><span id="L-805"><a href="#L-805"><span class="linenos" data-line="805"></span></a><span class="c1">---------------------------</span> </span><span id="L-806"><a href="#L-806"><span class="linenos" data-line="806"></span></a><span class="c1">-- Default sort -----------</span> </span><span id="L-807"><a href="#L-807"><span class="linenos" data-line="807"></span></a><span class="c1">---------------------------</span> </span><span id="L-808"><a href="#L-808"><span class="linenos" data-line="808"></span></a><span class="kr">if</span> <span class="n">args</span><span class="p">.</span><span class="n">listas</span> <span class="kr">then</span> </span><span id="L-809"><a href="#L-809"><span class="linenos" data-line="809"></span></a> <span class="n">frame</span><span class="p">:</span><span class="n">preprocess</span><span class="p">(</span><span class="s1">'{{DEFAULTSORT:'</span> <span class="o">..</span> <span class="n">args</span><span class="p">.</span><span class="n">listas</span> <span class="o">..</span> <span class="s1">'}}'</span><span class="p">)</span> </span><span id="L-810"><a href="#L-810"><span class="linenos" data-line="810"></span></a> <span class="kr">if</span> <span class="n">title</span><span class="p">.</span><span class="n">namespace</span><span class="o">~=</span><span class="mi">3</span> <span class="kr">then</span> <span class="c1">-- exclude user talk namespace</span> </span><span id="L-811"><a href="#L-811"><span class="linenos" data-line="811"></span></a> <span class="kd">local</span> <span class="n">success</span><span class="p">,</span> <span class="n">shell_listas_value</span> <span class="o">=</span> <span class="nb">require</span><span class="p">(</span><span class="s1">'Module:Template parameter value'</span><span class="p">).</span><span class="n">getParameter</span><span class="p">(</span> </span><span id="L-812"><a href="#L-812"><span class="linenos" data-line="812"></span></a> <span class="n">title</span><span class="p">.</span><span class="n">prefixedText</span><span class="p">,</span> </span><span id="L-813"><a href="#L-813"><span class="linenos" data-line="813"></span></a> <span class="n">cfg</span><span class="p">.</span><span class="n">banner_shell</span><span class="p">.</span><span class="n">redirects</span><span class="p">,</span> </span><span id="L-814"><a href="#L-814"><span class="linenos" data-line="814"></span></a> <span class="s1">'listas'</span><span class="p">,</span> </span><span id="L-815"><a href="#L-815"><span class="linenos" data-line="815"></span></a> <span class="p">{</span><span class="n">ignore_subtemplates</span> <span class="o">=</span> <span class="kc">true</span><span class="p">,</span> <span class="n">ignore_blank</span> <span class="o">=</span> <span class="kc">true</span><span class="p">}</span> </span><span id="L-816"><a href="#L-816"><span class="linenos" data-line="816"></span></a> <span class="p">)</span> </span><span id="L-817"><a href="#L-817"><span class="linenos" data-line="817"></span></a> <span class="kr">if</span> <span class="n">success</span> <span class="ow">and</span> <span class="n">shell_listas_value</span><span class="o">~=</span><span class="s1">''</span> <span class="kr">then</span> </span><span id="L-818"><a href="#L-818"><span class="linenos" data-line="818"></span></a> <span class="kr">if</span> <span class="n">args</span><span class="p">.</span><span class="n">listas</span><span class="o">==</span><span class="n">shell_listas_value</span> <span class="kr">then</span> <span class="c1">-- same value in both (with spacing trimming)</span> </span><span id="L-819"><a href="#L-819"><span class="linenos" data-line="819"></span></a> <span class="n">add_category</span><span class="p">(</span><span class="n">cfg</span><span class="p">.</span><span class="n">banner_shell</span><span class="p">.</span><span class="n">category</span><span class="p">.</span><span class="n">redundant_listas</span><span class="p">)</span> </span><span id="L-820"><a href="#L-820"><span class="linenos" data-line="820"></span></a> <span class="kr">end</span> </span><span id="L-821"><a href="#L-821"><span class="linenos" data-line="821"></span></a> <span class="kr">else</span> <span class="c1">-- listas is blank or not defined in banner shell</span> </span><span id="L-822"><a href="#L-822"><span class="linenos" data-line="822"></span></a> <span class="n">add_category</span><span class="p">(</span><span class="n">cfg</span><span class="p">.</span><span class="n">banner_shell</span><span class="p">.</span><span class="n">category</span><span class="p">.</span><span class="n">move_listas</span><span class="p">)</span> </span><span id="L-823"><a href="#L-823"><span class="linenos" data-line="823"></span></a> <span class="kr">end</span> </span><span id="L-824"><a href="#L-824"><span class="linenos" data-line="824"></span></a> <span class="kr">end</span> </span><span id="L-825"><a href="#L-825"><span class="linenos" data-line="825"></span></a><span class="kr">end</span> </span><span id="L-826"><a href="#L-826"><span class="linenos" data-line="826"></span></a><span class="c1">---------------------------</span> </span><span id="L-827"><a href="#L-827"><span class="linenos" data-line="827"></span></a><span class="c1">-- Prepare categories -----</span> </span><span id="L-828"><a href="#L-828"><span class="linenos" data-line="828"></span></a><span class="c1">---------------------------</span> </span><span id="L-829"><a href="#L-829"><span class="linenos" data-line="829"></span></a><span class="kd">local</span> <span class="n">categories_formatted</span> <span class="o">=</span> <span class="s1">''</span> </span><span id="L-830"><a href="#L-830"><span class="linenos" data-line="830"></span></a><span class="kr">if</span> <span class="n">demo_page</span> <span class="ow">and</span> <span class="n">demo_page</span><span class="o">~=</span><span class="kc">true</span> <span class="kr">then</span> <span class="c1">-- for testing purposes</span> </span><span id="L-831"><a href="#L-831"><span class="linenos" data-line="831"></span></a> <span class="kd">local</span> <span class="n">category_list</span> <span class="o">=</span> <span class="n">mw</span><span class="p">.</span><span class="n">html</span><span class="p">.</span><span class="n">create</span><span class="p">(</span><span class="s1">'ul'</span><span class="p">)</span> </span><span id="L-832"><a href="#L-832"><span class="linenos" data-line="832"></span></a> <span class="kr">for</span> <span class="n">_</span><span class="p">,</span> <span class="n">cat</span> <span class="kr">in</span> <span class="nb">ipairs</span><span class="p">(</span><span class="n">categories</span><span class="p">)</span> <span class="kr">do</span> </span><span id="L-833"><a href="#L-833"><span class="linenos" data-line="833"></span></a> <span class="kd">local</span> <span class="n">item</span> <span class="o">=</span> <span class="n">mw</span><span class="p">.</span><span class="n">html</span><span class="p">.</span><span class="n">create</span><span class="p">(</span><span class="s1">'li'</span><span class="p">)</span> </span><span id="L-834"><a href="#L-834"><span class="linenos" data-line="834"></span></a> <span class="p">:</span><span class="n">wikitext</span><span class="p">(</span><span class="n">wikilink</span><span class="p">(</span><span class="s1">':Category:'</span> <span class="o">..</span> <span class="n">cat</span><span class="p">.</span><span class="n">category</span><span class="p">,</span> <span class="n">cat</span><span class="p">.</span><span class="n">category</span><span class="p">))</span> </span><span id="L-835"><a href="#L-835"><span class="linenos" data-line="835"></span></a> <span class="n">category_list</span><span class="p">:</span><span class="n">node</span><span class="p">(</span><span class="n">item</span><span class="p">)</span> </span><span id="L-836"><a href="#L-836"><span class="linenos" data-line="836"></span></a> <span class="kr">end</span> </span><span id="L-837"><a href="#L-837"><span class="linenos" data-line="837"></span></a> <span class="kd">local</span> <span class="n">category_box</span> <span class="o">=</span> <span class="n">mw</span><span class="p">.</span><span class="n">html</span><span class="p">.</span><span class="n">create</span><span class="p">(</span><span class="s1">'div'</span><span class="p">)</span> </span><span id="L-838"><a href="#L-838"><span class="linenos" data-line="838"></span></a> <span class="p">:</span><span class="n">addClass</span><span class="p">(</span><span class="s1">'wpb-category-box'</span><span class="p">)</span> </span><span id="L-839"><a href="#L-839"><span class="linenos" data-line="839"></span></a> <span class="p">:</span><span class="n">wikitext</span><span class="p">(</span><span class="s1">'Categories:'</span><span class="p">)</span> </span><span id="L-840"><a href="#L-840"><span class="linenos" data-line="840"></span></a> <span class="p">:</span><span class="n">node</span><span class="p">(</span><span class="n">category_list</span><span class="p">)</span> </span><span id="L-841"><a href="#L-841"><span class="linenos" data-line="841"></span></a> <span class="n">categories_formatted</span> <span class="o">=</span> <span class="nb">tostring</span><span class="p">(</span><span class="n">category_box</span><span class="p">)</span> </span><span id="L-842"><a href="#L-842"><span class="linenos" data-line="842"></span></a><span class="kr">elseif</span> <span class="ow">not</span> <span class="n">demo_page</span> <span class="kr">then</span> </span><span id="L-843"><a href="#L-843"><span class="linenos" data-line="843"></span></a> <span class="kd">local</span> <span class="n">categories_linked</span> <span class="o">=</span> <span class="p">{}</span> </span><span id="L-844"><a href="#L-844"><span class="linenos" data-line="844"></span></a> <span class="kr">for</span> <span class="n">_</span><span class="p">,</span> <span class="n">cat</span> <span class="kr">in</span> <span class="nb">ipairs</span><span class="p">(</span><span class="n">categories</span><span class="p">)</span> <span class="kr">do</span> </span><span id="L-845"><a href="#L-845"><span class="linenos" data-line="845"></span></a> <span class="kd">local</span> <span class="n">cat_link</span> <span class="o">=</span> <span class="n">wikilink</span><span class="p">(</span><span class="s1">'Category:'</span> <span class="o">..</span> <span class="n">cat</span><span class="p">.</span><span class="n">category</span><span class="p">,</span> <span class="n">cat</span><span class="p">.</span><span class="n">key</span><span class="p">)</span> </span><span id="L-846"><a href="#L-846"><span class="linenos" data-line="846"></span></a> <span class="nb">table.insert</span><span class="p">(</span><span class="n">categories_linked</span><span class="p">,</span> <span class="n">cat_link</span><span class="p">)</span> </span><span id="L-847"><a href="#L-847"><span class="linenos" data-line="847"></span></a> <span class="kr">end</span> </span><span id="L-848"><a href="#L-848"><span class="linenos" data-line="848"></span></a> <span class="n">categories_formatted</span> <span class="o">=</span> <span class="nb">table.concat</span><span class="p">(</span><span class="n">categories_linked</span><span class="p">)</span> </span><span id="L-849"><a href="#L-849"><span class="linenos" data-line="849"></span></a><span class="kr">end</span> </span><span id="L-850"><a href="#L-850"><span class="linenos" data-line="850"></span></a><span class="c1">---------------------------</span> </span><span id="L-851"><a href="#L-851"><span class="linenos" data-line="851"></span></a><span class="c1">-- Make banner ------------</span> </span><span id="L-852"><a href="#L-852"><span class="linenos" data-line="852"></span></a><span class="c1">---------------------------</span> </span><span id="L-853"><a href="#L-853"><span class="linenos" data-line="853"></span></a><span class="kd">local</span> <span class="n">banner_rows</span> <span class="o">=</span> <span class="n">mw</span><span class="p">.</span><span class="n">html</span><span class="p">.</span><span class="n">create</span><span class="p">(</span><span class="s1">'table'</span><span class="p">)</span> </span><span id="L-854"><a href="#L-854"><span class="linenos" data-line="854"></span></a><span class="kr">for</span> <span class="n">_</span><span class="p">,</span> <span class="n">row</span> <span class="kr">in</span> <span class="nb">ipairs</span><span class="p">(</span><span class="n">rows</span><span class="p">)</span> <span class="kr">do</span> </span><span id="L-855"><a href="#L-855"><span class="linenos" data-line="855"></span></a> <span class="n">banner_rows</span><span class="p">:</span><span class="n">node</span><span class="p">(</span><span class="n">row</span><span class="p">)</span> </span><span id="L-856"><a href="#L-856"><span class="linenos" data-line="856"></span></a><span class="kr">end</span> </span><span id="L-857"><a href="#L-857"><span class="linenos" data-line="857"></span></a><span class="kd">local</span> <span class="n">banner</span> <span class="o">=</span> <span class="n">mw</span><span class="p">.</span><span class="n">html</span><span class="p">.</span><span class="n">create</span><span class="p">(</span><span class="s1">'table'</span><span class="p">)</span> </span><span id="L-858"><a href="#L-858"><span class="linenos" data-line="858"></span></a> <span class="p">:</span><span class="n">addClass</span><span class="p">(</span><span class="s1">'tmbox tmbox-notice mw-collapsible innercollapse wpb wpb-table'</span><span class="p">)</span> </span><span id="L-859"><a href="#L-859"><span class="linenos" data-line="859"></span></a> <span class="p">:</span><span class="n">addClass</span><span class="p">(</span><span class="n">inactive</span> <span class="ow">and</span> <span class="n">cfg</span><span class="p">.</span><span class="n">inactive</span><span class="p">.</span><span class="n">class</span> <span class="ow">or</span> <span class="kc">nil</span><span class="p">)</span> </span><span id="L-860"><a href="#L-860"><span class="linenos" data-line="860"></span></a> <span class="p">:</span><span class="n">node</span><span class="p">(</span><span class="n">header_row</span><span class="p">)</span> </span><span id="L-861"><a href="#L-861"><span class="linenos" data-line="861"></span></a> <span class="p">:</span><span class="n">tag</span><span class="p">(</span><span class="s1">'tr'</span><span class="p">)</span> </span><span id="L-862"><a href="#L-862"><span class="linenos" data-line="862"></span></a> <span class="p">:</span><span class="n">tag</span><span class="p">(</span><span class="s1">'td'</span><span class="p">)</span> </span><span id="L-863"><a href="#L-863"><span class="linenos" data-line="863"></span></a> <span class="p">:</span><span class="n">addClass</span><span class="p">(</span><span class="s1">'mbox-text wpb-main'</span><span class="p">)</span> </span><span id="L-864"><a href="#L-864"><span class="linenos" data-line="864"></span></a> <span class="p">:</span><span class="n">attr</span><span class="p">(</span><span class="s1">'colspan'</span><span class="p">,</span><span class="s1">'2'</span><span class="p">)</span> </span><span id="L-865"><a href="#L-865"><span class="linenos" data-line="865"></span></a> <span class="p">:</span><span class="n">node</span><span class="p">(</span><span class="n">banner_rows</span><span class="p">)</span> </span><span id="L-866"><a href="#L-866"><span class="linenos" data-line="866"></span></a> <span class="p">:</span><span class="n">allDone</span><span class="p">()</span> </span><span id="L-867"><a href="#L-867"><span class="linenos" data-line="867"></span></a><span class="kd">local</span> <span class="n">tstyle</span> <span class="o">=</span> <span class="n">frame</span><span class="p">:</span><span class="n">extensionTag</span><span class="p">(</span><span class="s1">'templatestyles'</span><span class="p">,</span> <span class="s1">''</span><span class="p">,</span> <span class="p">{</span><span class="n">src</span><span class="o">=</span><span class="s1">'Module:Message box/tmbox.css'</span><span class="p">})</span> <span class="o">..</span> </span><span id="L-868"><a href="#L-868"><span class="linenos" data-line="868"></span></a> <span class="n">frame</span><span class="p">:</span><span class="n">extensionTag</span> <span class="p">(</span><span class="s1">'templatestyles'</span><span class="p">,</span> <span class="s1">''</span><span class="p">,</span> <span class="p">{</span><span class="n">src</span> <span class="o">=</span> <span class="s1">'Module:WikiProject banner'</span> <span class="o">..</span> <span class="p">(</span><span class="n">sandbox</span> <span class="ow">or</span> <span class="s1">''</span><span class="p">)</span> <span class="o">..</span> <span class="s1">'/styles.css'</span><span class="p">})</span> </span><span id="L-869"><a href="#L-869"><span class="linenos" data-line="869"></span></a><span class="kr">return</span> <span class="n">warning</span> <span class="o">..</span> <span class="n">tstyle</span> <span class="o">..</span> <span class="nb">tostring</span><span class="p">(</span><span class="n">banner</span><span class="p">)</span> <span class="o">..</span> <span class="n">categories_formatted</span><span class="p">,</span> <span class="n">note_count</span><span class="p">,</span> <span class="o">#</span><span class="n">taskforce_output</span><span class="p">,</span> <span class="n">assessment_link</span> </span><span id="L-870"><a href="#L-870"><span class="linenos" data-line="870"></span></a><span class="kr">end</span> </span><span id="L-871"><a href="#L-871"><span class="linenos" data-line="871"></span></a> </span><span id="L-872"><a href="#L-872"><span class="linenos" data-line="872"></span></a><span class="kd">local</span> <span class="n">initialise</span> <span class="o">=</span> <span class="kr">function</span><span class="p">(</span><span class="n">args</span><span class="p">,</span> <span class="n">raw_args</span><span class="p">,</span> <span class="n">inactive_status</span><span class="p">)</span> </span><span id="L-873"><a href="#L-873"><span class="linenos" data-line="873"></span></a><span class="c1">---------------------------</span> </span><span id="L-874"><a href="#L-874"><span class="linenos" data-line="874"></span></a><span class="c1">-- Initialise arguments ---</span> </span><span id="L-875"><a href="#L-875"><span class="linenos" data-line="875"></span></a><span class="c1">---------------------------</span> </span><span id="L-876"><a href="#L-876"><span class="linenos" data-line="876"></span></a><span class="kd">local</span> <span class="n">parent_args</span> <span class="o">=</span> <span class="n">args_module</span><span class="p">.</span><span class="n">getArgs</span><span class="p">(</span><span class="n">frame</span><span class="p">,</span> <span class="p">{</span><span class="n">parentOnly</span> <span class="o">=</span> <span class="kc">true</span><span class="p">})</span> </span><span id="L-877"><a href="#L-877"><span class="linenos" data-line="877"></span></a><span class="kd">local</span> <span class="n">category</span> <span class="o">=</span> <span class="n">parent_args</span><span class="p">.</span><span class="n">category</span> <span class="ow">or</span> <span class="n">args</span><span class="p">.</span><span class="n">category</span> <span class="ow">or</span> <span class="kc">true</span> </span><span id="L-878"><a href="#L-878"><span class="linenos" data-line="878"></span></a><span class="kd">local</span> <span class="n">demo_page</span> <span class="o">=</span> <span class="n">parent_args</span><span class="p">.</span><span class="n">demo_page</span> </span><span id="L-879"><a href="#L-879"><span class="linenos" data-line="879"></span></a><span class="kd">local</span> <span class="n">on_template_page</span> <span class="o">=</span> <span class="kc">false</span> </span><span id="L-880"><a href="#L-880"><span class="linenos" data-line="880"></span></a><span class="kd">local</span> <span class="n">banner_name</span> <span class="o">=</span> <span class="n">mw</span><span class="p">.</span><span class="n">title</span><span class="p">.</span><span class="n">new</span><span class="p">(</span><span class="n">args</span><span class="p">.</span><span class="n">BANNER_NAME</span> <span class="ow">or</span> <span class="s1">'Template:WikiProject '</span> <span class="o">..</span> <span class="p">(</span><span class="n">args</span><span class="p">.</span><span class="n">PROJECT</span> <span class="ow">or</span> <span class="s1">'PROJECT'</span><span class="p">))</span> </span><span id="L-881"><a href="#L-881"><span class="linenos" data-line="881"></span></a><span class="kr">if</span> <span class="ow">not</span> <span class="n">demo_page</span> <span class="kr">then</span> </span><span id="L-882"><a href="#L-882"><span class="linenos" data-line="882"></span></a> <span class="kr">if</span> <span class="n">yesno</span><span class="p">(</span><span class="n">category</span><span class="p">,</span> <span class="kc">true</span><span class="p">)</span> <span class="kr">then</span> </span><span id="L-883"><a href="#L-883"><span class="linenos" data-line="883"></span></a> <span class="n">on_template_page</span> <span class="o">=</span> <span class="n">current_title</span><span class="p">.</span><span class="n">rootPageTitle</span><span class="o">==</span><span class="n">banner_name</span><span class="p">.</span><span class="n">rootPageTitle</span> </span><span id="L-884"><a href="#L-884"><span class="linenos" data-line="884"></span></a> <span class="kr">else</span> </span><span id="L-885"><a href="#L-885"><span class="linenos" data-line="885"></span></a> <span class="n">demo_page</span> <span class="o">=</span> <span class="kc">true</span> </span><span id="L-886"><a href="#L-886"><span class="linenos" data-line="886"></span></a> <span class="kr">end</span> </span><span id="L-887"><a href="#L-887"><span class="linenos" data-line="887"></span></a><span class="kr">end</span> </span><span id="L-888"><a href="#L-888"><span class="linenos" data-line="888"></span></a><span class="kd">local</span> <span class="n">project_name</span> <span class="o">=</span> <span class="n">args</span><span class="p">.</span><span class="n">PROJECT_NAME</span> <span class="ow">or</span> <span class="s1">'WikiProject '</span> <span class="o">..</span> <span class="p">(</span><span class="n">args</span><span class="p">.</span><span class="n">PROJECT</span> <span class="ow">or</span> <span class="s1">'PROJECT'</span><span class="p">)</span> </span><span id="L-889"><a href="#L-889"><span class="linenos" data-line="889"></span></a><span class="kd">local</span> <span class="n">unknown_parameters</span> <span class="o">=</span> <span class="s1">''</span> </span><span id="L-890"><a href="#L-890"><span class="linenos" data-line="890"></span></a><span class="kr">if</span> <span class="n">banner_name</span><span class="p">.</span><span class="n">exists</span> <span class="ow">and</span> <span class="ow">not</span> <span class="n">demo_page</span> <span class="kr">then</span> <span class="c1">-- check for unknown parameters</span> </span><span id="L-891"><a href="#L-891"><span class="linenos" data-line="891"></span></a> <span class="kd">local</span> <span class="n">parameters</span> <span class="o">=</span> <span class="p">{}</span> </span><span id="L-892"><a href="#L-892"><span class="linenos" data-line="892"></span></a> <span class="kr">for</span> <span class="n">parameter</span> <span class="kr">in</span> <span class="n">banner_name</span><span class="p">:</span><span class="n">getContent</span><span class="p">():</span><span class="n">gmatch</span><span class="p">(</span><span class="s1">'{{{([^|}]+)'</span><span class="p">)</span> <span class="kr">do</span> </span><span id="L-893"><a href="#L-893"><span class="linenos" data-line="893"></span></a> <span class="nb">table.insert</span><span class="p">(</span><span class="n">parameters</span><span class="p">,</span> <span class="n">parameter</span><span class="p">)</span> </span><span id="L-894"><a href="#L-894"><span class="linenos" data-line="894"></span></a> <span class="kr">end</span> </span><span id="L-895"><a href="#L-895"><span class="linenos" data-line="895"></span></a> <span class="kd">local</span> <span class="n">check_for_unknown</span> <span class="o">=</span> <span class="nb">require</span><span class="p">(</span><span class="s1">'Module:Check for unknown parameters'</span><span class="p">).</span><span class="n">_check</span> </span><span id="L-896"><a href="#L-896"><span class="linenos" data-line="896"></span></a> <span class="kd">local</span> <span class="n">unknowns</span> <span class="o">=</span> <span class="n">check_for_unknown</span><span class="p">(</span><span class="n">parameters</span><span class="p">,</span> <span class="n">parent_args</span><span class="p">)</span> </span><span id="L-897"><a href="#L-897"><span class="linenos" data-line="897"></span></a> <span class="kr">if</span> <span class="n">unknowns</span> <span class="ow">and</span> <span class="n">unknowns</span><span class="o">~=</span><span class="s1">''</span> <span class="kr">then</span><span class="c1">-- there are some unknown parameters</span> </span><span id="L-898"><a href="#L-898"><span class="linenos" data-line="898"></span></a> <span class="n">parameters</span><span class="p">.</span><span class="n">preview</span> <span class="o">=</span> <span class="n">cfg</span><span class="p">.</span><span class="n">unknown_parameters</span><span class="p">.</span><span class="n">preview</span><span class="p">:</span><span class="n">format</span><span class="p">(</span><span class="n">wikilink</span><span class="p">(</span><span class="n">banner_name</span><span class="p">.</span><span class="n">fullText</span><span class="p">))</span> </span><span id="L-899"><a href="#L-899"><span class="linenos" data-line="899"></span></a> <span class="kd">local</span> <span class="n">unknown_category</span> <span class="o">=</span> <span class="n">cfg</span><span class="p">.</span><span class="n">unknown_parameters</span><span class="p">.</span><span class="n">tracking</span><span class="p">:</span><span class="n">format</span><span class="p">(</span><span class="n">project_name</span><span class="p">)</span> </span><span id="L-900"><a href="#L-900"><span class="linenos" data-line="900"></span></a> <span class="kr">if</span> <span class="ow">not</span> <span class="n">mw</span><span class="p">.</span><span class="n">title</span><span class="p">.</span><span class="n">new</span><span class="p">(</span><span class="n">unknown_category</span><span class="p">).</span><span class="n">exists</span> <span class="kr">then</span> </span><span id="L-901"><a href="#L-901"><span class="linenos" data-line="901"></span></a> <span class="n">unknown_category</span> <span class="o">=</span> <span class="n">cfg</span><span class="p">.</span><span class="n">unknown_parameters</span><span class="p">.</span><span class="n">default</span> </span><span id="L-902"><a href="#L-902"><span class="linenos" data-line="902"></span></a> <span class="kr">end</span> </span><span id="L-903"><a href="#L-903"><span class="linenos" data-line="903"></span></a> <span class="n">parameters</span><span class="p">.</span><span class="n">unknown</span> <span class="o">=</span> <span class="n">unknown_category</span> <span class="ow">and</span> <span class="s1">'[['</span> <span class="o">..</span> <span class="n">unknown_category</span> <span class="o">..</span> <span class="s1">'|_VALUE_]]'</span> <span class="ow">or</span> <span class="s1">''</span> </span><span id="L-904"><a href="#L-904"><span class="linenos" data-line="904"></span></a> <span class="n">unknown_parameters</span> <span class="o">=</span> <span class="n">check_for_unknown</span><span class="p">(</span><span class="n">parameters</span><span class="p">,</span> <span class="n">parent_args</span><span class="p">)</span> </span><span id="L-905"><a href="#L-905"><span class="linenos" data-line="905"></span></a> <span class="kr">end</span> </span><span id="L-906"><a href="#L-906"><span class="linenos" data-line="906"></span></a><span class="kr">end</span> </span><span id="L-907"><a href="#L-907"><span class="linenos" data-line="907"></span></a><span class="kr">if</span> <span class="n">on_template_page</span> <span class="kr">then</span> </span><span id="L-908"><a href="#L-908"><span class="linenos" data-line="908"></span></a> <span class="kd">local</span> <span class="n">templatepage</span> <span class="o">=</span> <span class="nb">require</span><span class="p">(</span><span class="s1">'Module:WikiProject banner/templatepage'</span> <span class="o">..</span> <span class="p">(</span><span class="n">sandbox</span> <span class="ow">or</span> <span class="s1">''</span><span class="p">)).</span><span class="n">templatepage</span> </span><span id="L-909"><a href="#L-909"><span class="linenos" data-line="909"></span></a> <span class="kr">return</span> <span class="n">templatepage</span><span class="p">(</span><span class="n">args</span><span class="p">,</span> <span class="n">raw_args</span><span class="p">,</span> <span class="n">inactive_status</span><span class="p">)</span> </span><span id="L-910"><a href="#L-910"><span class="linenos" data-line="910"></span></a><span class="kr">else</span> </span><span id="L-911"><a href="#L-911"><span class="linenos" data-line="911"></span></a> <span class="kr">return</span> <span class="n">unknown_parameters</span> </span><span id="L-912"><a href="#L-912"><span class="linenos" data-line="912"></span></a> <span class="o">..</span> <span class="n">p</span><span class="p">.</span><span class="n">_main</span><span class="p">(</span><span class="n">args</span><span class="p">,</span> <span class="n">raw_args</span><span class="p">,</span> <span class="n">demo_page</span><span class="p">,</span> <span class="n">banner_name</span><span class="p">,</span> <span class="n">inactive_status</span> <span class="ow">and</span> <span class="kc">true</span> <span class="ow">or</span> <span class="kc">false</span><span class="p">),</span> <span class="kc">nil</span> <span class="c1">-- nil to disregard subsequent returned values</span> </span><span id="L-913"><a href="#L-913"><span class="linenos" data-line="913"></span></a><span class="kr">end</span> </span><span id="L-914"><a href="#L-914"><span class="linenos" data-line="914"></span></a><span class="kr">end</span> </span><span id="L-915"><a href="#L-915"><span class="linenos" data-line="915"></span></a> </span><span id="L-916"><a href="#L-916"><span class="linenos" data-line="916"></span></a><span class="n">p</span><span class="p">.</span><span class="n">main</span> <span class="o">=</span> <span class="kr">function</span><span class="p">(</span><span class="n">frame</span><span class="p">)</span> </span><span id="L-917"><a href="#L-917"><span class="linenos" data-line="917"></span></a> <span class="kd">local</span> <span class="n">args</span> <span class="o">=</span> <span class="n">args_module</span><span class="p">.</span><span class="n">getArgs</span><span class="p">(</span><span class="n">frame</span><span class="p">,</span> <span class="p">{</span><span class="n">frameOnly</span> <span class="o">=</span> <span class="kc">true</span><span class="p">})</span> </span><span id="L-918"><a href="#L-918"><span class="linenos" data-line="918"></span></a> <span class="kd">local</span> <span class="n">raw_args</span> <span class="o">=</span> <span class="n">args_module</span><span class="p">.</span><span class="n">getArgs</span><span class="p">(</span><span class="n">frame</span><span class="p">,</span> <span class="p">{</span><span class="n">frameOnly</span> <span class="o">=</span> <span class="kc">true</span><span class="p">,</span> <span class="n">removeBlanks</span> <span class="o">=</span> <span class="kc">false</span><span class="p">})</span> </span><span id="L-919"><a href="#L-919"><span class="linenos" data-line="919"></span></a> <span class="kr">return</span> <span class="n">initialise</span><span class="p">(</span><span class="n">args</span><span class="p">,</span> <span class="n">raw_args</span><span class="p">)</span> </span><span id="L-920"><a href="#L-920"><span class="linenos" data-line="920"></span></a><span class="kr">end</span> </span><span id="L-921"><a href="#L-921"><span class="linenos" data-line="921"></span></a><span class="c1">---------------------------</span> </span><span id="L-922"><a href="#L-922"><span class="linenos" data-line="922"></span></a><span class="c1">-- Inactive projects ------</span> </span><span id="L-923"><a href="#L-923"><span class="linenos" data-line="923"></span></a><span class="c1">---------------------------</span> </span><span id="L-924"><a href="#L-924"><span class="linenos" data-line="924"></span></a><span class="n">p</span><span class="p">.</span><span class="n">inactive</span> <span class="o">=</span> <span class="kr">function</span><span class="p">(</span><span class="n">frame</span><span class="p">)</span> </span><span id="L-925"><a href="#L-925"><span class="linenos" data-line="925"></span></a> <span class="kd">local</span> <span class="n">args</span> <span class="o">=</span> <span class="n">args_module</span><span class="p">.</span><span class="n">getArgs</span><span class="p">(</span><span class="n">frame</span><span class="p">,</span> <span class="p">{</span><span class="n">frameOnly</span> <span class="o">=</span> <span class="kc">true</span><span class="p">})</span> </span><span id="L-926"><a href="#L-926"><span class="linenos" data-line="926"></span></a> <span class="kd">local</span> <span class="n">project_name</span> <span class="o">=</span> <span class="n">args</span><span class="p">.</span><span class="n">PROJECT_NAME</span> <span class="ow">or</span> <span class="s1">'WikiProject '</span> <span class="o">..</span> <span class="p">(</span><span class="n">args</span><span class="p">.</span><span class="n">PROJECT</span> <span class="ow">or</span> <span class="s1">'PROJECT'</span><span class="p">)</span> </span><span id="L-927"><a href="#L-927"><span class="linenos" data-line="927"></span></a> <span class="kd">local</span> <span class="n">project_link</span> <span class="o">=</span> <span class="n">mw</span><span class="p">.</span><span class="n">title</span><span class="p">.</span><span class="n">new</span><span class="p">(</span><span class="n">args</span><span class="p">.</span><span class="n">PROJECT_LINK</span> <span class="ow">or</span> <span class="s1">'Wikipedia:'</span> <span class="o">..</span> <span class="n">project_name</span><span class="p">)</span> </span><span id="L-928"><a href="#L-928"><span class="linenos" data-line="928"></span></a> <span class="kd">local</span> <span class="n">_status</span> <span class="o">=</span> <span class="n">cfg</span><span class="p">.</span><span class="n">inactive</span><span class="p">.</span><span class="n">status</span><span class="p">[</span><span class="n">args</span><span class="p">.</span><span class="n">PROJECT_STATUS</span><span class="p">]</span> <span class="ow">or</span> <span class="n">cfg</span><span class="p">.</span><span class="n">inactive</span><span class="p">.</span><span class="n">default</span> </span><span id="L-929"><a href="#L-929"><span class="linenos" data-line="929"></span></a> <span class="kd">local</span> <span class="n">main_text</span> <span class="o">=</span> <span class="n">cfg</span><span class="p">.</span><span class="n">inactive</span><span class="p">.</span><span class="n">text</span><span class="p">:</span><span class="n">format</span><span class="p">(</span> </span><span id="L-930"><a href="#L-930"><span class="linenos" data-line="930"></span></a> <span class="n">project_link</span><span class="p">.</span><span class="n">prefixedText</span><span class="p">,</span> </span><span id="L-931"><a href="#L-931"><span class="linenos" data-line="931"></span></a> <span class="n">project_name</span><span class="p">,</span> </span><span id="L-932"><a href="#L-932"><span class="linenos" data-line="932"></span></a> <span class="n">_status</span> </span><span id="L-933"><a href="#L-933"><span class="linenos" data-line="933"></span></a> <span class="p">)</span> </span><span id="L-934"><a href="#L-934"><span class="linenos" data-line="934"></span></a> <span class="kr">return</span> <span class="n">initialise</span><span class="p">(</span> </span><span id="L-935"><a href="#L-935"><span class="linenos" data-line="935"></span></a> <span class="p">{</span> </span><span id="L-936"><a href="#L-936"><span class="linenos" data-line="936"></span></a> <span class="n">PROJECT</span> <span class="o">=</span> <span class="n">args</span><span class="p">.</span><span class="n">PROJECT</span><span class="p">,</span> </span><span id="L-937"><a href="#L-937"><span class="linenos" data-line="937"></span></a> <span class="n">BANNER_NAME</span> <span class="o">=</span> <span class="n">args</span><span class="p">.</span><span class="n">BANNER_NAME</span><span class="p">,</span> </span><span id="L-938"><a href="#L-938"><span class="linenos" data-line="938"></span></a> <span class="n">IMAGE_LEFT</span> <span class="o">=</span> <span class="n">cfg</span><span class="p">.</span><span class="n">inactive</span><span class="p">.</span><span class="n">image</span><span class="p">,</span> </span><span id="L-939"><a href="#L-939"><span class="linenos" data-line="939"></span></a> <span class="n">IMAGE_LEFT_SIZE</span> <span class="o">=</span> <span class="n">cfg</span><span class="p">.</span><span class="n">inactive</span><span class="p">.</span><span class="n">image_size</span><span class="p">,</span> </span><span id="L-940"><a href="#L-940"><span class="linenos" data-line="940"></span></a> <span class="n">MAIN_TEXT</span> <span class="o">=</span> <span class="n">main_text</span><span class="p">,</span> </span><span id="L-941"><a href="#L-941"><span class="linenos" data-line="941"></span></a> <span class="n">HOOK_NESTED_ASSESS</span> <span class="o">=</span> <span class="s1">' '</span> <span class="o">..</span> <span class="n">cfg</span><span class="p">.</span><span class="n">inactive</span><span class="p">.</span><span class="n">nested</span><span class="p">:</span><span class="n">format</span><span class="p">(</span><span class="n">_status</span><span class="p">),</span> </span><span id="L-942"><a href="#L-942"><span class="linenos" data-line="942"></span></a> <span class="n">substcheck</span> <span class="o">=</span> <span class="n">args</span><span class="p">.</span><span class="n">substcheck</span><span class="p">,</span> </span><span id="L-943"><a href="#L-943"><span class="linenos" data-line="943"></span></a> <span class="n">category</span> <span class="o">=</span> <span class="n">args</span><span class="p">.</span><span class="n">category</span> </span><span id="L-944"><a href="#L-944"><span class="linenos" data-line="944"></span></a> <span class="p">},</span> <span class="p">{</span> </span><span id="L-945"><a href="#L-945"><span class="linenos" data-line="945"></span></a> <span class="n">substcheck</span> <span class="o">=</span> <span class="s1">''</span> <span class="c1">-- to prevent warning on templatepage</span> </span><span id="L-946"><a href="#L-946"><span class="linenos" data-line="946"></span></a> <span class="p">},</span> <span class="n">_status</span> </span><span id="L-947"><a href="#L-947"><span class="linenos" data-line="947"></span></a> <span class="p">)</span> </span><span id="L-948"><a href="#L-948"><span class="linenos" data-line="948"></span></a><span class="kr">end</span> </span><span id="L-949"><a href="#L-949"><span class="linenos" data-line="949"></span></a> </span><span id="L-950"><a href="#L-950"><span class="linenos" data-line="950"></span></a><span class="kr">return</span> <span class="n">p</span> </span></pre></div> <!-- NewPP limit report Parsed by mw‐web.codfw.main‐6b8d669998‐g9ht6 Cached time: 20241128065700 Cache expiry: 2592000 Reduced expiry: false Complications: [vary‐revision‐sha1, show‐toc] CPU time usage: 0.532 seconds Real time usage: 0.727 seconds Preprocessor visited node count: 3211/1000000 Post‐expand include size: 328690/2097152 bytes Template argument size: 8558/2097152 bytes Highest expansion depth: 20/100 Expensive parser function count: 42/500 Unstrip recursion depth: 0/20 Unstrip post‐expand size: 146476/5000000 bytes Lua time usage: 0.229/10.000 seconds Lua memory usage: 4784066/52428800 bytes Number of Wikibase entities loaded: 0/400 --> <!-- Transclusion expansion time report (%,ms,calls,template) 100.00% 414.517 1 -total 100.00% 414.517 1 Module:WikiProject_banner/doc 30.40% 126.032 1 Template:WikiProject_banner_related 29.52% 122.362 1 Template:Sidebar 7.61% 31.559 1 Template:WikiProject_Footer 6.63% 27.484 2 Template:WikiProject_banner_shell 6.41% 26.560 6 Template:Flatlist 3.79% 15.725 1 Template:Module_rating 3.16% 13.097 1 Template:Uses_TemplateStyles 2.99% 12.412 1 Template:Wikipedia_templates --> </div><!--esi <esi:include src="/esitest-fa8a495983347898/content" /> --><noscript><img src="https://login.wikimedia.org/wiki/Special:CentralAutoLogin/start?type=1x1" alt="" width="1" height="1" style="border: none; position: absolute;"></noscript> <div class="printfooter" data-nosnippet="">Retrieved from "<a dir="ltr" href="https://en.wikipedia.org/w/index.php?title=Module:WikiProject_banner/sandbox&oldid=1259774769">https://en.wikipedia.org/w/index.php?title=Module:WikiProject_banner/sandbox&oldid=1259774769</a>"</div></div> <div id="catlinks" class="catlinks" data-mw="interface"><div id="mw-normal-catlinks" class="mw-normal-catlinks"><a href="/wiki/Help:Category" title="Help:Category">Category</a>: <ul><li><a href="/wiki/Category:Module_sandboxes" title="Category:Module sandboxes">Module sandboxes</a></li></ul></div></div> </div> </main> </div> <div class="mw-footer-container"> <footer id="footer" class="mw-footer" > <ul id="footer-info"> <li id="footer-info-lastmod"> This page was last edited on 26 November 2024, at 23:57<span class="anonymous-show"> (UTC)</span>.</li> <li id="footer-info-copyright">Text is available under the <a href="/wiki/Wikipedia:Text_of_the_Creative_Commons_Attribution-ShareAlike_4.0_International_License" title="Wikipedia:Text of the Creative Commons Attribution-ShareAlike 4.0 International License">Creative Commons Attribution-ShareAlike 4.0 License</a>; additional terms may apply. By using this site, you agree to the <a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Terms_of_Use" class="extiw" title="foundation:Special:MyLanguage/Policy:Terms of Use">Terms of Use</a> and <a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy" class="extiw" title="foundation:Special:MyLanguage/Policy:Privacy policy">Privacy Policy</a>. Wikipedia® is a registered trademark of the <a rel="nofollow" class="external text" href="https://wikimediafoundation.org/">Wikimedia Foundation, Inc.</a>, a non-profit organization.</li> </ul> <ul id="footer-places"> <li id="footer-places-privacy"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy">Privacy policy</a></li> <li id="footer-places-about"><a href="/wiki/Wikipedia:About">About Wikipedia</a></li> <li id="footer-places-disclaimers"><a href="/wiki/Wikipedia:General_disclaimer">Disclaimers</a></li> <li id="footer-places-contact"><a href="//en.wikipedia.org/wiki/Wikipedia:Contact_us">Contact Wikipedia</a></li> <li id="footer-places-wm-codeofconduct"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Universal_Code_of_Conduct">Code of Conduct</a></li> <li id="footer-places-developers"><a href="https://developer.wikimedia.org">Developers</a></li> <li id="footer-places-statslink"><a href="https://stats.wikimedia.org/#/en.wikipedia.org">Statistics</a></li> <li id="footer-places-cookiestatement"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Cookie_statement">Cookie statement</a></li> <li id="footer-places-mobileview"><a href="//en.m.wikipedia.org/w/index.php?title=Module:WikiProject_banner/sandbox&mobileaction=toggle_view_mobile" class="noprint stopMobileRedirectToggle">Mobile view</a></li> </ul> <ul id="footer-icons" class="noprint"> <li id="footer-copyrightico"><a href="https://wikimediafoundation.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/static/images/footer/wikimedia-button.svg" width="84" height="29" alt="Wikimedia Foundation" loading="lazy"></a></li> <li id="footer-poweredbyico"><a href="https://www.mediawiki.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/w/resources/assets/poweredby_mediawiki.svg" alt="Powered by MediaWiki" width="88" height="31" loading="lazy"></a></li> </ul> </footer> </div> </div> </div> <div class="vector-settings" id="p-dock-bottom"> <ul></ul> </div><script>(RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgHostname":"mw-web.codfw.main-6b8d669998-g9ht6","wgBackendResponseTime":988,"wgPageParseReport":{"limitreport":{"cputime":"0.532","walltime":"0.727","ppvisitednodes":{"value":3211,"limit":1000000},"postexpandincludesize":{"value":328690,"limit":2097152},"templateargumentsize":{"value":8558,"limit":2097152},"expansiondepth":{"value":20,"limit":100},"expensivefunctioncount":{"value":42,"limit":500},"unstrip-depth":{"value":0,"limit":20},"unstrip-size":{"value":146476,"limit":5000000},"entityaccesscount":{"value":0,"limit":400},"timingprofile":["100.00% 414.517 1 -total","100.00% 414.517 1 Module:WikiProject_banner/doc"," 30.40% 126.032 1 Template:WikiProject_banner_related"," 29.52% 122.362 1 Template:Sidebar"," 7.61% 31.559 1 Template:WikiProject_Footer"," 6.63% 27.484 2 Template:WikiProject_banner_shell"," 6.41% 26.560 6 Template:Flatlist"," 3.79% 15.725 1 Template:Module_rating"," 3.16% 13.097 1 Template:Uses_TemplateStyles"," 2.99% 12.412 1 Template:Wikipedia_templates"]},"scribunto":{"limitreport-timeusage":{"value":"0.229","limit":"10.000"},"limitreport-memusage":{"value":4784066,"limit":52428800}},"cachereport":{"origin":"mw-web.codfw.main-6b8d669998-g9ht6","timestamp":"20241128065700","ttl":2592000,"transientcontent":false}}});});</script> </body> </html>