Extension:GoogleSiteVerification

From MediaWiki.org
Jump to navigation Jump to search
MediaWiki extensions manualManual:Extensions
Crystal Clear action run.svg
GoogleSiteVerification

Release status:Extension status stable

Green check.svg
ImplementationTemplate:Extension#type Hook
DescriptionTemplate:Extension#description Adds Google Site Verification meta tag to pages
Author(s)Template:Extension#username Adam Shorland (Addshoretalk)
Latest versionTemplate:Extension#version 0.1.1 (2014-01-20)
MediaWikiTemplate:Extension#mediawiki 1.19+
PHPTemplate:Extension#php 5.3 or later
Database changesTemplate:Extension#needs-updatephp No
LicenseTemplate:Extension#license GNU General Public License 2.0 or later
Download
README
ParametersTemplate:Extension#parameters
  • $wgGoogleVerificationCode
Hooks usedTemplate:Extension#hook
BeforePageDisplayManual:Hooks/BeforePageDisplay

Translate the GoogleSiteVerification extension if it is available at translatewiki.net

Check usage and version matrix.

GoogleSiteVerification inserts the Google Site Verification meta tag into pages.

Installation[edit]

  • Download and place the file(s) in a directory called GoogleSiteVerification in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    require_once "$IP/extensions/GoogleSiteVerification/GoogleSiteVerification.php";
    $wgGoogleVerificationCode = 'KwDrf1TIRRgNQxUF6Nv_PkcpM-gnVFFm28OOAWv2-oo'; // Replace the example code with your website's code!
    
  • YesY Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.