- text - String for the text
- attribs - Array of attributes
- query - Array of query parameters to add to the URL
- - options - Array of options for Linker::link
$lang: The language code to use for the link in the wfMessage function
'SkinGetPoweredBy': TODO
'text' => $this->msg( 'editsection' )->inLanguage( $lang )->text(),
'targetTitle' => $nt,
'attribs' => $attribs,
- 'query' => [ 'action' => 'edit', 'section' => $section ],
- 'options' => [ 'noclasses', 'known' ]
+ 'query' => [ 'action' => 'edit', 'section' => $section ]
]
];
$linksHtml = [];
foreach ( $links as $k => $linkDetails ) {
- $linksHtml[] = Linker::link(
+ $linksHtml[] = Linker::linkKnown(
$linkDetails['targetTitle'],
htmlspecialchars( $linkDetails['text'] ),
$linkDetails['attribs'],
- $linkDetails['query'],
- $linkDetails['options']
+ $linkDetails['query']
);
}