Extension:Sort
| The author of this extension is no longer maintaining it! Meaning any reports for additional features and/or bugfixes will more than likely be ignored. Volunteers are encouraged to take on the task of developing and maintaining it. As a courtesy, you may want to contact the author. You should also remove this template and list yourself as maintaining the extension in the page's {{extension}} infobox. |
|
Sort Release status: unmaintained |
|
|---|---|
| Implementation | Tag |
| Description | Simplifies creating and maintaining sorted lists using a <sort> tag |
| Author(s) | Rob Church (Robchurchtalk) |
| Last version | 1.1 (2007-07-23) |
| MediaWiki | 1.7+ |
| Database changes | no |
| License | GPL v2 |
| Download |
SVN [?]:
README |
| Check usage and version matrix; stats | |
| Bugs: list open list all report | |
The Sort extension introduces a <sort> tag to MediaWiki markup which simplifies the creation and maintenance of simple sorted lists.
Contents |
Installation[edit]
- Check out all extension files from Subversion and place them in a Sort subdirectory within your MediaWiki extensions directory
- Add the line
require_once( "$IP/extensions/Sort/Sort.php" );to your LocalSettings.php file
Installation can be verified through the Special:Version page on the wiki.
Usage[edit]
Sort adds a new tag, <sort>, to the MediaWiki markup, which can be inserted while editing. The syntax of this tag is
<sort order="[order]" class="[class]">List item oneList item twoetc.</sort>
The order and class attributes are optional, and are used to customise the sort direction and list type generated. By default, Sort will generate an alphabetically sorted unordered list. Each item in the list should go on a new line.
Wiki links can be used in list items, and existing list tokens will be trimmed from the start of the line.
Order[edit]
The following are valid order values
- asc - ascending sort (default)
- desc - descending sort
Class[edit]
The following are valid class values
- ul - unordered [bulleted] list (default)
- ol - ordered [numbered] list