MediaWiki  1.23.0
TitleFormatter.php
Go to the documentation of this file.
1 <?php
33 interface TitleFormatter {
34 
47  public function formatTitle( $namespace, $text, $fragment = '' );
48 
58  public function getText( TitleValue $title );
59 
67  public function getPrefixedText( TitleValue $title );
68 
76  public function getFullText( TitleValue $title );
77 
90  public function getNamespaceName( $namespace, $text );
91 }
php
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
Definition: skin.txt:62
TitleFormatter\getText
getText(TitleValue $title)
Returns the title text formatted for display, without namespace of fragment.
TitleFormatter\getFullText
getFullText(TitleValue $title)
Returns the title formatted for display, with namespace and fragment.
TitleFormatter\getNamespaceName
getNamespaceName( $namespace, $text)
Returns the name of the namespace for the given title.
TitleFormatter\formatTitle
formatTitle( $namespace, $text, $fragment='')
Returns the title formatted for display.
TitleFormatter\getPrefixedText
getPrefixedText(TitleValue $title)
Returns the title formatted for display, including the namespace name.
$title
presenting them properly to the user as errors is done by the caller $title
Definition: hooks.txt:1324
TitleFormatter
A title formatter service for MediaWiki.
Definition: TitleFormatter.php:33
TitleValue
Represents a page (or page fragment) title within MediaWiki.
Definition: TitleValue.php:36