Extension:RelMicroformat

From mediawiki.org
Jump to navigation Jump to search
MediaWiki extensions manual
OOjs UI icon advanced.svg
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
Translate the RelMicroformat extension if it is available at translatewiki.net

Check usage and version matrix.

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 place the file(s) in a directory called RelMicroformat in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    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