Extension:MetaMaster: Difference between revisions
mNo edit summary |
No edit summary |
||
| Line 7: | Line 7: | ||
|hook2 = |
|hook2 = |
||
|newhook1 = <!-- hooks added by the extension, see [[Template:Extension]] for details --> |
|newhook1 = <!-- hooks added by the extension, see [[Template:Extension]] for details --> |
||
|username = tosfos |
|username = tosfos |
||
|author = Ike Hecht |
|author = Ike Hecht |
||
|description = A parser function that allows adding HTML {{tag|meta|open}} tags to the page header |
|description = A parser function that allows adding HTML {{tag|meta|open}} tags to the page header |
||
|image = |
|image = |
||
| Line 37: | Line 37: | ||
}} |
}} |
||
The '''MetaMaster''' extension is a simple extension that allows adding HTML <nowiki><meta></nowiki> tags using a parser function. It supports any text as the name and description. |
The '''MetaMaster''' extension is a simple extension that allows adding HTML <nowiki><meta></nowiki> tags using a parser function. It supports any text as the name and description. |
||
This extension was created for [https://wikiworks.com WikiWorks]. |
|||
==Installation== |
==Installation== |
||
| Line 57: | Line 59: | ||
==See also== |
==See also== |
||
* [[Extension:Description2]] |
* [[Extension:Description2]] |
||
{{WikiTeq extension}} |
|||
[[Category:HTML head extensions]] |
[[Category:HTML head extensions]] |
||
Revision as of 20:30, 6 February 2021
This extension is currently not actively maintained! Although it may still work, any bug reports or feature requests will more than likely be ignored. If you are interested in taking on the task of developing and maintaining this extension, you can request repository ownership. As a courtesy, you may want to contact the author. You should also remove this template and list yourself as maintaining the extension in the page's {{Extension}} infobox. |
Release status: unmaintained |
|
|---|---|
| Implementation | Parser function |
| Description | A parser function that allows adding HTML <meta> tags to the page header |
| Author(s) | Ike Hecht (tosfostalk) |
| Latest version | 0.1 (October 2017) |
| MediaWiki | 1.25+ |
| PHP | 5.6+ |
| Database changes | No |
|
|
| Licence | GNU General Public License 2.0 |
| Download | README |
| Translate the MetaMaster extension if it is available at translatewiki.net | |
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
MetaMasterfolder to yourextensions/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' );
Done – Navigate to Special:Versionon 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." />
