Extension:DynamicPageList/old
From MediaWiki.org
- This page describes an old version of Extension:DynamicPageList.
- Derived extensions: DynamicPageList2 is a modified version with more features, but also more resource-expensive. DPLforum outputs in forum style.
|
DynamicPageList2 Release status: unknown |
|
|---|---|
| Implementation | Tag |
| Description | Outputs a bulleted list of items residing in a category or a union of several categories, with filtering, selection, and display options. |
| Author(s) | IlyaHaykinson, Amgine |
| Version | 0.5? (2006-08-07) |
| MediaWiki | 1.5 |
| Download | DynamicPageList.php DynamicPageList.i18n.php (Wikimedia SVN) |
DynamicPageList is a Mediawiki 1.5 extension developed for Wikinews. It is currently installed on all language Wikinews projects (see n:Wikinews:DynamicPageList) and Meta, and can be installed on any wiki. It allows wiki users to create a list of pages that are listed in a set of categories. See m:Help:DPL for general information.
Contents |
[edit] Installation
The dynamic page list is in Wikimedia SVN. To install it, place DynamicPageList.php and DynamicPageList.i18n.php in your extensions/intersection directory and add include("extensions/intersection/DynamicPageList.php"); to your LocalSettings.php file.
[edit] Use
DynamicPage list can be used with XML-like syntax in the wiki edit view. The parameters control the pages to list, order, and display mode. See the following sections for information on each parameter. For example, the following are the oldest five pages on this wiki that should be moved to MediaWiki.org.
<DynamicPageList> category = Pages to be exported to MediaWiki.org count = 5 order = ascending addfirstcategorydate = true </DynamicPageList>
<DynamicPageList> category = Pages to be exported to MediaWiki.org count = 5 order = ascending addfirstcategorydate = true </DynamicPageList>
[edit] Page selection
[edit] category
category lists categories to intersect. DynamicPageList will list pages that are found in every category listed. A minimum and maximum number of entries to list is set in the extension's source code. You may use magic words like {{CURRENTMONTHNAME}} in the category name.
The syntax is category = category name
<DynamicPageList> category = Demo category = Demo 1 </DynamicPageList>
<DynamicPageList> category = Demo category = Demo 1 </DynamicPageList>
[edit] notcategory
notcategory restricts the list of pages to those not in a particular category. You can use magic words like {{CURRENTMONTHNAME}} in the category name.
<DynamicPageList> category = Demo notcategory = Demo 1 </DynamicPageList>
<DynamicPageList> category = Demo notcategory = Demo 1 </DynamicPageList>
[edit] namespace
namespace restricts the list of pages specified above to those in a particular namespace, specified by name or number (see the List of default namespaces). Any invalid name is equivalent to the main article namespace.
<DynamicPageList> category = Demo namespace = Help </DynamicPageList>
<DynamicPageList> category = Demo namespace = Help </DynamicPageList>
[edit] redirects
redirects determines whether or not to include redirect pages. The value can be exclude (default, don't list redirects), include (list redirects), or only (don't list pages that aren't redirects).
<DynamicPageList> category = Demo redirects = only </DynamicPageList>
<DynamicPageList> category = Demo redirects = only </DynamicPageList>
[edit] count
count restricts the number of results that are shown. By default, the pages added to the category most recently are shown (see order). Note that the extension will not list more results than the maximum defined in the extension source code.
<DynamicPageList> category = Demo count = 2 </DynamicPageList>
<DynamicPageList> category = Demo count = 2 </DynamicPageList>
[edit] Details displayed
[edit] shownamespace
shownamespace displays the namespace in the page names. The value can be true (default, display in name: Help:Contents) or false (don't display in name: Contents).
<DynamicPageList> category = Demo shownamespace = false </DynamicPageList>
<DynamicPageList> category = Demo shownamespace = false </DynamicPageList>
[edit] addfirstcategorydate
addfirstcategorydate shows the date each article was added to category. The value can be true (display date) or false (default, don't display date). If many categories are specified, it uses the first category. The linked page names are prepended with the date formatted according to your local MediaWiki date display preferences.
<DynamicPageList> category = Demo addfirstcategorydate = true </DynamicPageList>
<DynamicPageList> category = Demo addfirstcategorydate = true </DynamicPageList>
[edit] mode
mode determines the format of the list. The value can be unordered (bulleted list), ordered (numbered list), or none (plain text with line breaks).
unordered: <DynamicPageList> category = Demo mode = unordered </DynamicPageList> ordered: <DynamicPageList> category = Demo mode = ordered </DynamicPageList> plain text: <DynamicPageList> category = Demo mode = none </DynamicPageList>
unordered: <DynamicPageList> category = Demo mode = unordered </DynamicPageList>
ordered: <DynamicPageList> category = Demo mode = ordered </DynamicPageList>
plain text: <DynamicPageList> category = Demo mode = none </DynamicPageList>
[edit] suppresserrors
suppresserrors hides errors. The value can be true (hide errors) or false (default, show errors).
true: <DynamicPageList> category = Dem suppresserrors = true </DynamicPageList> false: <DynamicPageList> category = Dem suppresserrors = false </DynamicPageList>
true: <DynamicPageList> category = Dem suppresserrors = true </DynamicPageList>
false: <DynamicPageList> category = Dem </DynamicPageList>
[edit] Order
[edit] ordermethod
ordermethod determines the order and date to display. The value can be categoryadd (default, sort by date pages were categorised) or lastedit (sort by date pages were last edited).
<DynamicPageList> category = Demo addfirstcategorydate = true ordermethod = lastedit </DynamicPageList>
<DynamicPageList> category = Demo addfirstcategorydate = true ordermethod = lastedit </DynamicPageList>
[edit] order
order decides the sort direction. The value can be descending (default, most recent to oldest) or ascending (oldest to most recent).
<DynamicPageList> category = Demo order = ascending </DynamicPageList>
<DynamicPageList> category = Demo order = ascending </DynamicPageList>

