Extension: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 | 1 (Ranked 175th) |
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 place the file(s) in a directory called
RelMicroformat
in yourextensions/
folder. - Add the following code at the bottom of your
LocalSettings.php
:wfLoadExtension( 'RelMicroformat' );
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 setrel="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