Extension:PageBy

The PageBy extension provides a custom tag, &lt;pageby&gt;, that renders as a summary of the pages edit history. It may be useful to provide a quick overview of who contributed to a page, especially on site with editorial nature, like news reports, blogs, etc.

The &lt;pageby&gt; tag shows up to three lines of information:


 * page creation (not shown if creation="false" is given)
 * contributor summary (lists all editors with the number of edits they made; not shown if there is only one eligible editor)
 * last edit (not shown if there is only one edit - unless page creation is not being shown)

Installing
Copy the PageBy directory into the extensions folder of your MediaWiki installation. Then add the following line to your LocalSettings.php file (near the end):

Usage
To get a short summary of the edit hostory:

;

You can provide options to controll the summary - for example, include minor edits and hide edit comments:

;

You can also specify another page than the one that contains the pageby tag:

Foo ;

Note that using the pageby tag for *another* page will disable the parser cache for the page the tag is used on. So perhaps don't do that on the main page.

For a full list of options, see below.

Options
The following options (tag attributes) can be used to controll the output of the &lt;pageby&gt; tags:


 * nominor: ignore minor edits ("true" or "false", default is "true"). Applies only to to the contributors summary, does not effect creation or last-edit line.
 * nobot: hide bots ("true" or "false", default is "true"). Applies only to to the contributors summary, does not effect creation or last-edit line.
 * noanon: hide anonymous users ("true" or "false", default is "false"). Applies only to to the contributors summary, does not effect creation or last-edit line.
 * comments: show edit comments ("true" or "false", default is "true").
 * creation: mention page creation ("true" or "false", default is "true").
 * time: show exact time in addition to the date ("true" or "false", default is "false").

Styling
The HTML generated by a &lt;pageby&gt; tag is a plain &lt;ul&gt;-list, but it assigns different CSS classes to the individual elements, so you can style it conveniently.

CSS classes used:


 * pageby: used on the &lt;ul&gt;-tag that contains all output
 * pageby-contribs: for the &lt;li&gt;-tag for the contribution summary
 * pageby-last: for the &lt;li&gt;-tag for the latest edit
 * pageby-contributor: for the &lt;span&gt;-tag of each contributor
 * pageby-comment: for the &lt;span&gt;-tag containing the edit comment

An example CSS style to put into MediaWiki:Common.css or a similar place: