Jump to content

Extension:MetaMaster: Difference between revisions

From mediawiki.org
Content deleted Content added
preparation for translation
Marked this version for translation
Line 38: Line 38:
|vagrant-role =
|vagrant-role =
}}
}}
<translate>The <tvar name=1>'''MetaMaster'''</tvar> extension is a simple extension that allows adding HTML <tvar name=2>{{tag|meta|open}}</tvar> tags using a parser function.</translate>
<translate><!--T:6--> The <tvar name=1>'''MetaMaster'''</tvar> extension is a simple extension that allows adding HTML <tvar name=2>{{tag|meta|open}}</tvar> tags using a parser function.</translate>
<translate>It supports any text as the name and description.</translate>
<translate><!--T:7--> It supports any text as the name and description.</translate>


<translate>This extension was created for <tvar name=1>[https://wikiworks.com WikiWorks]</tvar>.</translate>
<translate><!--T:8--> This extension was created for <tvar name=1>[https://wikiworks.com WikiWorks]</tvar>.</translate>


<translate>
<translate>

Revision as of 21:44, 5 June 2025

This extension is professionally maintained by the WikiTeq team.
WikiTeq provides official support for MediaWiki LTS releases only. It may work with other MediaWiki releases.
MediaWiki extensions manual
MetaMaster
Release status: stable
Implementation Parser function
Description A parser function that allows adding HTML ‎<meta> tags to the page header
Author(s) Ike Hecht (tosfostalk)
Maintainer(s) WikiTeq team
Latest version 1.0.1 (July 2021)
Compatibility policy For every MediaWiki release that is a Long Term Support release there is a corresponding branch in the extension.
MediaWiki 1.35, 1.39
Database changes No
  • $wgMetaMasterEnableFoo
Licence GNU General Public License 2.0
Download
README
Translate the MetaMaster extension if it is available at translatewiki.net
Issues Open tasks · Report a bug

The MetaMaster extension is a simple extension that allows adding HTML ‎<meta> tags using a parser function. It supports any text as the name and description.

This extension was created for WikiWorks.


Installation

  • Download and move the extracted MetaMaster 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/MetaMaster
    
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'MetaMaster' );
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Usage

{{#metamaster:name|content}}

Where name represents the name attribute of the ‎<meta> tag and content represents the content attribute. There can be multiple tags per page.

Example

{{#metamaster:date|2002-04-04}}

This results in the following tag being added to the HTML head section:

<meta name="date" content="2002-04-04" />

The extension can also be used to add the ever-desired meta description tag, such as in this example:

{{#metamaster:description|This is some text description.}}

Which results in:

<meta name="description" content="This is some text description." />

See also