class DummyLinker {
/**
- * @deprecated since 1.27
+ * @deprecated since 1.28, use LinkRenderer::getLinkClasses() instead
*/
- public function getInterwikiLinkAttributes( $title, $unused = null, $class = 'external' ) {
- wfDeprecated( __METHOD__, '1.27' );
- return Linker::getInterwikiLinkAttributes(
- $title,
- $unused,
- $class
- );
- }
-
- /**
- * @deprecated since 1.27
- */
- public function getInternalLinkAttributes( $title, $unused = null, $class = '' ) {
- wfDeprecated( __METHOD__, '1.27' );
- return Linker::getInternalLinkAttributes(
- $title,
- $unused,
- $class
- );
- }
-
- /**
- * @deprecated since 1.27
- */
- public function getInternalLinkAttributesObj(
- $nt,
- $unused = null,
- $class = '',
- $title = false
- ) {
- wfDeprecated( __METHOD__, '1.27' );
- return Linker::getInternalLinkAttributesObj(
- $nt,
- $unused,
- $class,
- $title
- );
- }
-
public function getLinkColour( $t, $threshold ) {
+ wfDeprecated( __METHOD__, '1.28' );
return Linker::getLinkColour( $t, $threshold );
}
public function link(
$target,
$html = null,
- $customAttribs = [ ],
- $query = [ ],
- $options = [ ]
+ $customAttribs = [],
+ $query = [],
+ $options = []
) {
return Linker::link(
$target,
public function linkKnown(
$target,
$html = null,
- $customAttribs = [ ],
- $query = [ ],
- $options = [ 'known', 'noclasses' ]
+ $customAttribs = [],
+ $query = [],
+ $options = [ 'known' ]
) {
return Linker::linkKnown(
$target,
Parser $parser,
Title $title,
$file,
- $frameParams = [ ],
- $handlerParams = [ ],
+ $frameParams = [],
+ $handlerParams = [],
$time = false,
$query = "",
$widthOption = null
$label = '',
$alt,
$align = 'right',
- $params = [ ],
+ $params = [],
$framed = false,
$manualthumb = ""
) {
public function makeThumbLink2(
Title $title,
$file,
- $frameParams = [ ],
- $handlerParams = [ ],
+ $frameParams = [],
+ $handlerParams = [],
$time = false,
$query = ""
) {
$text,
$escape = true,
$linktype = '',
- $attribs = [ ],
+ $attribs = [],
$title = null
) {
return Linker::makeExternalLink(
Title $title,
$text,
$wikiId = null,
- $options = [ ]
+ $options = []
) {
return Linker::makeCommentLink(
$title,
);
}
+ /**
+ * @deprecated since 1.28, use TemplatesOnThisPageFormatter directly
+ */
public function formatTemplates(
$templates,
$preview = false,
$section = false,
$more = null
) {
+ wfDeprecated( __METHOD__, '1.28' );
+
return Linker::formatTemplates(
$templates,
$preview,
return Linker::formatHiddenCategories( $hiddencats );
}
+ /**
+ * @deprecated since 1.28, use Language::formatSize() directly
+ */
public function formatSize( $size ) {
+ wfDeprecated( __METHOD__, '1.28' );
+
return Linker::formatSize( $size );
}
- public function titleAttrib( $name, $options = null, array $msgParams = [ ] ) {
+ public function titleAttrib( $name, $options = null, array $msgParams = [] ) {
return Linker::titleAttrib(
$name,
$options,
);
}
- public function revDeleteLink( $query = [ ], $restricted = false, $delete = true ) {
+ public function revDeleteLink( $query = [], $restricted = false, $delete = true ) {
return Linker::revDeleteLink(
$query,
$restricted,
return Linker::revDeleteLinkDisabled( $delete );
}
- public function tooltipAndAccesskeyAttribs( $name, array $msgParams = [ ] ) {
+ public function tooltipAndAccesskeyAttribs( $name, array $msgParams = [] ) {
return Linker::tooltipAndAccesskeyAttribs(
$name,
$msgParams