User:Austin J. Che/Extensions/Recentchangesfilter: Difference between revisions

From OpenWetWare
Jump to navigationJump to search
No edit summary
No edit summary
 
(4 intermediate revisions by one other user not shown)
Line 20: Line 20:
* '''e''': titles that end with the pattern
* '''e''': titles that end with the pattern
* '''c''': titles that contain the pattern
* '''c''': titles that contain the pattern
* '''m''': titles that match where the match expression can contain any number of the '%' character to represent a wildcard character that matches any number of charaters. This is a more general version of the b, e, and c types.
* '''m''': titles that match where the match expression can contain any number of the '%' character to represent a wildcard character that matches any number of charaters. This is a more general version of the b, e, and c types. Note that for URLs, you may need to encode the percent using '%25' in the URL.
* '''p''': matches the page of the given name (will always match at most one page). The page name should be given fully qualified with the namespace prefix as appropriate (e.g. as p=User:Austin). The criteria n=User^p=Austin will never match any pages because p=Austin is interpreted as being in the main namespace and no page can be in both the User and main namespaces.
* '''n''': The match pattern should be either a number corresponding to a namespace or the name of a namespace. This matches all pages that are in the given namespace. The main namespace has number 0 and doesn't have a name so you have to use the number. For other namespaces, you can use the name (e.g. 'User talk') or you can find the number by selecting the namespace in the dropdown list of the recent changes page, click go, and look at the URL to determine the namespace to number mapping. There's also a namespace called 'Special' with number -1 that includes pages like the upload log.
* '''n''': The match pattern should be either a number corresponding to a namespace or the name of a namespace. This matches all pages that are in the given namespace. The main namespace has number 0 and doesn't have a name so you have to use the number. For other namespaces, you can use the name (e.g. 'User talk') or you can find the number by selecting the namespace in the dropdown list of the recent changes page, click go, and look at the URL to determine the namespace to number mapping. There's also a namespace called 'Special' with number -1 that includes pages like the upload log.
* '''u''': match changes that were done by the given user
* '''u''': match changes that were done by the given user
Line 29: Line 30:
If no match type is specified (there is no equals sign), then the matching will be done with the default type of '''b'''.
If no match type is specified (there is no equals sign), then the matching will be done with the default type of '''b'''.


''Note that for the purpose of selecting pages by titles, it is necessary to be clear which namespace a page is in.'' For example, the page User:Austin is not a page titled User:Austin but rather a page titled Austin in the namespace User. Thus, b=User won't match this page but either b=Austin or n=User would. Pages like Knight:Contact are in the main namespace so b=Contact wouldn't match this whereas b=Knight would.
''Note that for the purpose of selecting pages by title patterns, it is necessary to be clear which namespace a page is in.'' For example, the page User:Austin is not a page titled User:Austin but rather a page titled Austin in the namespace User. Thus, b=User won't match this page but either b=Austin or n=User would. Pages like Knight:Contact are in the main namespace so b=Contact wouldn't match this whereas b=Knight would.


====Joining Expressions====
====Joining Expressions====
Line 48: Line 49:
==Installation/MediaWiki compatibility==
==Installation/MediaWiki compatibility==


More than most extensions, this one depends heavily on the internals of MediaWiki. Much of the code from wfSpecialRecentchanges is directly copied into this extension and updates to MediaWiki will require the corresponding update to this code. The current version of the code has been updated to work with the MediaWiki 1.6. An older version that works with MediaWiki version 1.5 is also available in the source directory.
More than most extensions, this one depends heavily on the internals of MediaWiki. Much of the code from wfSpecialRecentchanges is directly copied into this extension and updates to MediaWiki will require the corresponding update to this code. The current version of the code has been updated to work with the version of  MediaWiki running on this wiki (version {{CURRENTVERSION}}). Older versions are also available in the source directory.


----
----
Line 54: Line 55:


__NOTOC__
__NOTOC__
[[category:Extensions]]

Latest revision as of 08:38, 17 November 2007

Special:Recentchanges Filtering

The standard recent changes list can be overwhelming on a large site with the number of changes. This extension allows users to track a subset of changes that they are interested in and allows users to set preferences for the default filters to use when displaying the recent changes list.

General Usage

The key to using this extension is to create desired filters. A filter is used in several possible ways. The filter can be passed as parameters at the end of the URL as extra path info, e.g. /wiki/Special:Recentchanges/parameters. They can also be passed with the real script path as in /index.php?title=Special:Recentchanges&filter=parameters. A URL created in this manner can be either bookmarked in a browser, linked from a wiki page, or directly included within another wiki page (see below).

Logged in users also have the ability to set their preferences (with help from the PreferencesExtension). When that extension is also installed, several additional options are added under the recent changs tab of a user's preferences. The enable filtering option turns on or off default filtering. With this option off, when the recent changes page is accessed without a filter in the URL, a normal recent changes page is returned (all results). If this option is enabled, then the other options determine the behavior of the Special:Recentchanges page when accessed without a filter. The filter list is of the form [name1]filter1...;[name2]filter2...;[name3]filter3 for as many filters as one would like to define. The [name] part is optional but if not specified, the default name will be the filter number. The last preference allows specifying the default filter (by number, with the first filter numbered 0). When a user access the recent changes page, the default filter will be used if no other filter is given. In addition, the page will contain easy links to switch between all the filters listed on their filter list. An empty filter will always match everything and it is probably a good idea to always include this somewhere in one's list.

Filter Specification

The filter is specified as a boolean statement in disjunctive normal form (groups of expressions ANDed together that are then all ORed together).

Expression

The general form for an expression is <match type>=<match pattern>.

Match types are 1 or 2 letter codes and specify how the match pattern should be used in selecting items to display in the recent changes list. The basic types and their meaning:

  • b: titles that begin with the pattern
  • e: titles that end with the pattern
  • c: titles that contain the pattern
  • m: titles that match where the match expression can contain any number of the '%' character to represent a wildcard character that matches any number of charaters. This is a more general version of the b, e, and c types. Note that for URLs, you may need to encode the percent using '%25' in the URL.
  • p: matches the page of the given name (will always match at most one page). The page name should be given fully qualified with the namespace prefix as appropriate (e.g. as p=User:Austin). The criteria n=User^p=Austin will never match any pages because p=Austin is interpreted as being in the main namespace and no page can be in both the User and main namespaces.
  • n: The match pattern should be either a number corresponding to a namespace or the name of a namespace. This matches all pages that are in the given namespace. The main namespace has number 0 and doesn't have a name so you have to use the number. For other namespaces, you can use the name (e.g. 'User talk') or you can find the number by selecting the namespace in the dropdown list of the recent changes page, click go, and look at the URL to determine the namespace to number mapping. There's also a namespace called 'Special' with number -1 that includes pages like the upload log.
  • u: match changes that were done by the given user
  • w: match changes for pages on your (or whoever's currently logged in) watchlist. The match pattern is ignored so it can just be set to 1 or left off completely.

All of the above types have a negated version with an extra n in front, i.e. nb, ne, nc, etc. For example, nb=foo will match all pages that don't begin with foo.

If no match type is specified (there is no equals sign), then the matching will be done with the default type of b.

Note that for the purpose of selecting pages by title patterns, it is necessary to be clear which namespace a page is in. For example, the page User:Austin is not a page titled User:Austin but rather a page titled Austin in the namespace User. Thus, b=User won't match this page but either b=Austin or n=User would. Pages like Knight:Contact are in the main namespace so b=Contact wouldn't match this whereas b=Knight would.

Joining Expressions

'^' is used to represent AND and ',' (comma) is used to represent OR. Expressions are assumed to be in disjunctive normal form so there's an intrinsic parenthesis order (and no way to change this order). This means that all the ANDs have higher precedence than the ORs.

Examples

Including within another page

The special page can be included using the standard {{Special:Recentchanges/parameters)}} syntax. This allows including a select list of changes on a page. For example, here's a live demo showing the last 5 changes of articles in the main namespace that do not have a ':' in their name (uncategorized/general pages):

List of abbreviations:
N
This edit created a new page (also see list of new pages)
m
This is a minor edit
b
This edit was performed by a bot
(±123)
The page size changed by this number of bytes

18 April 2024

     13:03  BioMicroCenter:Pricing diffhist +166 Challee talk contribs
     12:58  BioMicroCenter:Singular Sequencing‎‎ 2 changes history +124 [Challee‎ (2×)]
     
12:58 (cur | prev) +14 Challee talk contribs (→‎Things to Consider)
     
12:57 (cur | prev) +110 Challee talk contribs
     12:12  BioMicroCenter:Tecan Freedom Evo‎‎ 7 changes history +1,746 [Noelani Kamelamela‎ (7×)]
     
12:12 (cur | prev) +4 Noelani Kamelamela talk contribs
     
12:12 (cur | prev) +3 Noelani Kamelamela talk contribs
     
10:13 (cur | prev) +7 Noelani Kamelamela talk contribs (→‎verrity Chemagic 360)
     
10:08 (cur | prev) −42 Noelani Kamelamela talk contribs (→‎verrity Chemagic 360)
     
10:08 (cur | prev) +86 Noelani Kamelamela talk contribs (→‎verrity Chemagic 360)
     
09:34 (cur | prev) +23 Noelani Kamelamela talk contribs (→‎verrity Chemagic 360)
     
09:32 (cur | prev) +1,665 Noelani Kamelamela talk contribs
     11:42  3D Cell Culture - McLean Taggart, Emma Villares, Maximillian Marek, Scott LeBlanc, Adam Lyons and Jacob Belden diffhist −3 Sarah L. Perry talk contribs
     09:35  BioMicroCenter‎‎ 2 changes history +92 [Noelani Kamelamela‎ (2×)]
     
09:35 (cur | prev) +60 Noelani Kamelamela talk contribs
     
09:20 (cur | prev) +32 Noelani Kamelamela talk contribs
     09:32 Upload log Noelani Kamelamela talk contribs uploaded File:Chemagic360.jpg(from manual)

17 April 2024

     15:34  BioMicroCenter:Element Sequencing‎‎ 3 changes history +295 [Challee‎ (3×)]
     
15:34 (cur | prev) +195 Challee talk contribs
     
14:22 (cur | prev) +100 Challee talk contribs
     
14:07 (cur | prev) 0 Challee talk contribs
     13:10  BioMicroCenter:SingleCell diffhist +30 Noelani Kamelamela talk contribs (→‎10X CHROMIUM X)
     12:43  BioMicroCenter diffhist −15 Noelani Kamelamela talk contribs

16 April 2024

N    19:59  Nanoimprint Lithography (NIL) - Carter Paul‎‎ 10 changes history +7,205 [CarterPaul‎ (10×)]
     
19:59 (cur | prev) +769 CarterPaul talk contribs (→‎Thermal NIL Process)
     
19:53 (cur | prev) 0 CarterPaul talk contribs (→‎Thermal NIL Process)
     
19:53 (cur | prev) 0 CarterPaul talk contribs (→‎Thermal NIL Process)
     
19:52 (cur | prev) +1 CarterPaul talk contribs (→‎Thermal NIL Process)
     
19:50 (cur | prev) +202 CarterPaul talk contribs (→‎Thermal NIL Process)
     
19:17 (cur | prev) −20 CarterPaul talk contribs (→‎References)
     
19:17 (cur | prev) −1 CarterPaul talk contribs
     
19:11 (cur | prev) +4,278 CarterPaul talk contribs
     
18:53 (cur | prev) +1,891 CarterPaul talk contribs
N    
18:42 (cur | prev) +85 CarterPaul talk contribs (Created page with "{{Template:CHEM-ENG590E}} =Motivation= =Introduction to NIL= =Thermal NIL Process=")
     19:40 Upload log CarterPaul talk contribs uploaded File:NIL1.png
N    18:40  3D Cell Culture - McLean Taggart, Emma Villares, Maximillian Marek, Scott LeBlanc, Adam Lyons and Jacob Belden diffhist +24,060 CarterPaul talk contribs (Created page with "{{Template:CHEM-ENG590E}} ==Introduction== While most microfluidic devices incorporate a 2D cell culture design, in which a single layer of cells is grown on the bottom of a device, these systems suffer from poor <i>in vivo</i> mimicry, as, in the human body, most cells grow in all directions.<sup>https://doi.org/10.5114/aoms.2016.63743 1</sup> To address this limitation, 3D cell culture devices have been developed - in w...")
     18:38  CHEM-ENG590E:Wiki Textbook‎‎ 2 changes history +63 [CarterPaul‎ (2×)]
     
18:38 (cur | prev) +50 CarterPaul talk contribs (→‎Chapter 1 - Microfabrication)
     
18:37 (cur | prev) +13 CarterPaul talk contribs
     18:36  3D Cell Culture - McLean Taggart, Emma Villares, Maximillian Marek, Scott LeBlanc, and Adam Lyons diffhist +5,343 CarterPaul talk contribs (Added a Technique and applications section)
     10:20  Yarn Microfluidics - Roger Dirth‎‎ 12 changes history +442 [Rcostello‎ (12×)]
     
10:20 (cur | prev) +41 Rcostello talk contribs (→‎Applications)
     
10:19 (cur | prev) +36 Rcostello talk contribs (→‎Applications)
     
10:18 (cur | prev) +36 Rcostello talk contribs (→‎Introduction)
     
10:17 (cur | prev) +38 Rcostello talk contribs (→‎Fabrication)
     
10:17 (cur | prev) +38 Rcostello talk contribs (→‎Washburn Equation)
     
10:16 (cur | prev) +38 Rcostello talk contribs (→‎Wicking Rate)
     
10:16 (cur | prev) +37 Rcostello talk contribs (→‎Introduction)
     
10:15 (cur | prev) +36 Rcostello talk contribs (→‎Wicking Rate)
     
10:14 (cur | prev) +36 Rcostello talk contribs (→‎Fabrication)
     
10:14 (cur | prev) +34 Rcostello talk contribs (→‎Applications)
     
10:14 (cur | prev) +36 Rcostello talk contribs (→‎Introduction)
     
10:13 (cur | prev) +36 Rcostello talk contribs (→‎Introduction)
     08:18  3D Printed Microfluidic Robots - Helen Hua‎‎ 2 changes history +6 [Michele Caggioni‎ (2×)]
     
08:18 (cur | prev) +22 Michele Caggioni talk contribs (→‎Actuation)
     
08:18 (cur | prev) −16 Michele Caggioni talk contribs (→‎Actuation)
     08:11  3D Printing Overview diffhist +422 Michele Caggioni talk contribs

15 April 2024

Installation/MediaWiki compatibility

More than most extensions, this one depends heavily on the internals of MediaWiki. Much of the code from wfSpecialRecentchanges is directly copied into this extension and updates to MediaWiki will require the corresponding update to this code. The current version of the code has been updated to work with the version of MediaWiki running on this wiki (version 1.40.1). Older versions are also available in the source directory.


Send bugs and comments to Austin Che. Other extensions including sources can be found at User:Austin J. Che/Extensions.