MediaWiki/content programming
Jump to navigation
Jump to search
Overview
MediaWiki's built-in features already allow some simple dynamic text management and manipulation; with the addition of various extensions, much more sophisticated tasks can be accomplished, making MediaWiki into a sort of "swiss army knife" content manager application.
Information
How to get various bits of information about any given page
Title | |
Prefix (namespace only) |
DPL: %NAMESPACE% |
Suffix (without namespace) |
DPL: %TITLE% |
Stats | |
Usage counter (hits) | DPL: %COUNT% (requires addpagecounter=true)
DPL: %COUNTFS% = a font size number based on usage counter |
Page size (bytes) | DPL: %SIZE% (requires addpagesize=true)
DPL: %SIZEFS% – font size number based on article size |
Creation date | DPL: %DATE% (requires addeditdate=true and ordermethod=firstedit) |
Last edit date | DPL: %DATE% (requires addeditdate=true and ordermethod=lastedit) |
Page creator | DPL: %USER% (requires adduser=true and ordermethod=firstedit) |
Page last editor | DPL: %USER% (requires adduser=true and ordermethod=lastedit) |