Semantic MediaWiki and related extensions
Static Public Member Functions | List of all members
SMW\MediaWiki\Pipetrick Class Reference

Static Public Member Functions

static apply ( $title)
 

Detailed Description

GNU GPL v2+

Since
3.1
Author
Morgon Kanter

Member Function Documentation

◆ apply()

static SMW\MediaWiki\Pipetrick::apply (   $title)
static

Apply the pipe trick to a page name (not a complete link).

See MediaWiki includes/parser/Parser.php pstPass2() for details. Removed the opening/closing of links ([[A|b]]), instead it considers the start and close of the string. Maybe one day MediaWiki will refactor this into its own function!

Doesn't attempt to apply the reverse pipe trick.

Since
3.0
Parameters
$titlestring
Returns
string

The documentation for this class was generated from the following file:

About | General disclaimer | Privacy policy