Laajennus:MetaMaster

This page is a translated version of the page Extension:MetaMaster and the translation is 83% complete.
Other languages:
MediaWikin laajennukset-ohje
OOjs UI icon advanced-invert.svg
MetaMaster
Julkaisustatus: vakaa
Toteutus Jäsennintoiminto
Kuvaus A parser function that allows adding HTML ‎<meta> tags to the page header
Tekijä(t) Ike Hecht (tosfoskeskustelu)
Ylläpitäjä(t) WikiTeq team
Viimeisin versio 1.0.1 (heinäkuu 2021)
Yhteensopivuuskäytäntö For every MediaWiki release that is a Long Term Support release there is a corresponding branch in the extension.
MediaWiki 1.35+
Tietokantamuutokset Ei
Composer metamaster/meta-master-extension
Lisenssi GNU General Public License 2.0
Lataa
README
  • $wgMetaMasterEnableFoo
Voit kääntää MetaMaster-laajennuksen mikäli se on saatavilla translatewiki.netissä

Check usage and version matrix.

Ongelmat Avoimet tehtävät · Raportoi ongelmasta

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.

Asennus

  • Download and place the file(s) in a directory called MetaMaster in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php :
    wfLoadExtension( 'MetaMaster' );
    
  •   TehtyNavigate to Special:Version on your wiki to verify that the extension is successfully installed.

Käyttö

{{#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.

Esimerkki

{{#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." />

Katso myös

  This extension is professionally maintained by the WikiTeq team.