Extension:DPLforum

DPLforum is adapted from DynamicPageList 1.12, it displays forum-style layouts.

New features in version 3.0 include author listings, compact display, and full multipage support. Version 3.1 introduces prefix matching, for better interoperability with CreateBox.

DPLforum also introduces a new namespace, Forum (and its talkspace); by default, the numeric index for this namespace is 110.

Installation

 * 1) Download a snapshot. Choose the version that matches your version of MediaWiki.
 * 2) Create a folder called DPLforum and put the files in this folder.
 * 3) Extract the new folder to your extensions directory folder.
 * 4) Add  to LocalSettings.php.
 * 5) Installation can now be verified through Special:Version of your wiki.

Parameters
DPLforum expects parameters in the form of a linebreak-separated list of assignments, as shown here.

Content parameters

 * category={page}: Adds a category to the set of categories. Only pages that belong to each of these categories will be displayed.
 * notcategory={page}: Adds a category to the set of exclusions. Pages that are Not in these categories will be displayed.
 * namespace={text}: Specifies the namespace in which to search. Only one namespace may be specified.
 * prefix={text}: Specifies a prefix to match in the title. Only pages whose titles begin with the specified prefix will be displayed. (New in version 3.1)
 * start={number}: Excludes the first {number}</tt> results from the listing.
 * count={number}</tt>: Lists no more than {count}</tt> results. Currently limited up to 50 results, but the results aren't limited to 50 if this parameter is not specified.
 * title={page}</tt>: If specified, this object becomes a forum-style link to the given page. Other parameters still apply.

Structural parameters
</tt> tag.
 * mode</tt>: Specifies the mode of output.
 * mode=table</tt>: Default. Displays each entry in a   </tt> block.    </tt> tags are not included, so that each table may be given custom properties.
 * mode=list</tt>: Displays each entry in a <li> block. As above, tags such as <ol> or <ul> are omitted.
 * mode=none</tt>: Only separates entries with a 
 * mode=count</tt>: Returns only the number of entries that match the given parameters. (New in version 3.2)
 * compact</tt>: Allows for individual   </tt> tags to be combined together where appropriate.
 * compact=author</tt>: Combines the Title</tt> and <tt>Author</tt> cells.
 * <tt>compact=editor</tt>: Combines the <tt>Edit</tt> and <tt>Editor</tt> cells.
 * <tt>compact=all</tt>: Combines both.
 * <tt>addcreationdate=true</tt>: Displays each entry's date of creation.
 * <tt>addauthor=true</tt>: Displays the original author of each entry.
 * <tt>addlasteditor=true</tt>: Displays the last editor of each entry.
 * <tt>addlastedit=false</tt>: Hides each entry's last edit time; shown by default.

Output parameters

 * <tt>ordermethod</tt>: Specifies the order in which entries are listed.
 * <tt>ordermethod=lastedit</tt>: Default. Sorts entries by the last time they were edited.
 * <tt>ordermethod=created</tt>: Sorts entries by the time of their creation.
 * <tt>ordermethod=pageid</tt>: Sorts entries by their ID numbers; usually equivalent to <tt>created</tt>.
 * <tt>historylink</tt>: Provides a link to each entry's history.
 * <tt>historylink=embed</tt>: Transforms the Edit field into a history link.
 * <tt>historylink=append</tt>: Appends the history link onto the Edit field.
 * <tt>omit={text}</tt>: Omits the given text from the beginning of each entry's title.
 * <tt>order=ascending</tt>: Reverses the sort order.
 * <tt>newdays={number}</tt>: Marks all links to entries modified less than <tt>{number}</tt> days ago with <tt>class='forum_new'</tt>; defaults to 7.
 * <tt>timestamp=false</tt>: Removes timestamp values from the page links. Timestamps ensure that newly-edited entries don't appear as "visited" links.
 * <tt>cache=true</tt>: Saves the results of this object to the parser cache. This is false by default unless <tt>DPLForum::requireCache</tt> is set to true.

Multipage support with #forumlink
The #forumlink parser function creates links to the present page which offset the forum listings by a certain amount. This allows each forum to contain any number of additional "pages". The syntax is as follows:


 * count represents the number of topics per page.
 * page specifies the page number, either as an absolute value or a relative offset.
 * text sets the link text. If this is left blank, the page number is used instead.

Relative offsets and page conditions
When specifying the page, if the number is preceded by + or -, then it is assumed to be a relative offset from the present position. Relative links which would link to pages less than 1 are not displayed.

You may also optionally specify a condition after the page number, which the page must meet in order to be displayed.

For example, to specify a link to the next page when that page is less than 10, use:

A link to the previous page (assuming <tt>count=50</tt>):

In conjunction with ParserFunctions, a link to the next page, that won't be displayed when you reach the last page, would be (assuming <tt>count=50</tt>, only one category specified in <tt>category</tt> and <tt>notcategory</tt> is not used):

Conditions may use the <, <=, >, and >= operators.

MediaWiki messages
DPLforum specifies six messages in the MediaWiki: namespace.


 * MediaWiki:Dplforum-by - The word "by", followed by $1 (which is the name of a user)
 * MediaWiki:Dplforum-desc - Show on Special:Version as the extension's description
 * MediaWiki:Dplforum-never - The word "Never".
 * MediaWiki:Dplforum-edited - "Last edited". Separates the title and edit when not in table mode.
 * MediaWiki:Dplforum-toofew - Error message displayed when no categories are given.
 * MediaWiki:Dplforum-toomany - Error message displayed when too many categories are given. This threshold is controlled by DPLForum::maxCategories.

Customization
Templates can be used to give a traditional forum appearance with user posts.
 * Example – User:Inquisitor Ehrenstein/LQTavatar

Code
DPLforum 3.2 has been tested on MediaWiki 1.9, and should run on versions 1.7 and above.

For the archive see /code.

For legacy versions of DPLforum, see /old.

Wikis Which Use This Extension

 * Sturmkrieg MediaWiki version 1.17
 * uncyclopedia.org, MediaWiki version 1.15


 * TFWiki, MediaWiki version 1.12
 * wiki.occupy.net, MediaWiki 1.18.0
 * Wikiunity, MediaWiki 1.17
 * DDOwiki, MediaWiki 1.19.3