Jump to content

Extension:RelMicroformat

From mediawiki.org
MediaWiki extensions manual
RelMicroformat
Release status: beta
Description Allows usage of the rel microformat
Author(s) Kunal Mehta (Legoktmtalk)
MediaWiki 1.35
License GNU General Public License 3.0 or later
Download
$wgRelMicroformatUrls
Quarterly downloads 0
Translate the RelMicroformat extension if it is available at translatewiki.net

The RelMicroformat extension allows usage of the rel microformat. URLs must be hardcoded in LocalSettings.php for now, and only applies to links in the sidebar.

Installation

[edit]
  • Download and move the extracted RelMicroformat folder to your extensions/ directory.
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/RelMicroformat
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'RelMicroformat' );
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Configuration parameters

[edit]
$wgRelMicroformatUrls
An array of URLs to the wanted rel value. For example to set rel="me" on a link to your Mastodon profile:
$wgRelMicroformatUrls = [
	'https://mastodon.host/@username' => 'me',
];

See also

[edit]
  • Extension:LinkAttributes - allows setting any arbitrary attribute on a link at the cost of more complicated/advanced syntax
  • Extension:Link Attributes - allows setting any arbitrary attribute on a link at the cost of more complicated/advanced syntax