WantedPagesFilter adds simple filter to Wanted pages.
Usage[]
Click to exclude namespace. Shift+click to select region, ctrl+click to (de)select arbitrary items. Checkbox checked: inverts the filter, include namespace instead of exclude it.
1st item turns off all filters.
The script works with currently displayed records only, it does not filter all wantedpages. Using limit=500 and pagination strictly recommended.
Installation[]
- Importing multiple scripts? This quick guide shows how to combine the imports.
- For site-wide use, an administrator can add the line below to the wiki's MediaWiki:ImportJS page.
dev:WantedPagesFilter/code.js
- For personal use, add the code snippet below to your global.js page (for use on all wikis) or your common.js page on your wiki (for use on a single wiki). Note that personal JS must be enabled for your account.
importArticles({
type: 'script',
articles: [
'u:dev:MediaWiki:WantedPagesFilter/code.js',
]
});
Styling[]
There are predefined styles:
- .wp-filter
- main container. Style: float:right;
- .wp-checkbox
- checkbox. Style: vertical-align:top
- .wp-label
- label (Filter for en). Style: padding-right:5px;vertical-align:top;cursor:pointer;font-weight:bold
- .wp-list
- list. Style: height: 200px;
Note: you have to use !important to override values above.
Example[]
- ImportArticles/en (230 links)
- ConfigOptions/en (26 links)
- Talk:UserBadges (2 links)
- Tooltips/code.css (2 links)
- Module talk:Date/sandbox/testcases (1 link)
- Module:YearNav/testcases (1 link)
- Help:Verbatim (1 link)
- Template:Untranslated/doc (1 link)
- Template:Talkheader/vi/doc (1 link)
- MediaWiki talk:AnswersEditButton/code.js (1 link)
- Talk:WikiaNavigationBarStyle (1 link)
- Talk:UserTags/en (1 link)
- UserTags/en/Extending (1 link)