Extension:Google +1
From MediaWiki.org
|
Google +1 Release status: beta |
|||
|---|---|---|---|
| Implementation | Tag | ||
| Description | Creates 4 versions of Google +1 button. | ||
| Author(s) | José Miguel López Salvador, Mark A. Hershberger | ||
| Last version | 1.1 (2013-05-06) | ||
| MediaWiki | 1.21 | ||
| License | GNU public License | ||
| Download | |||
| Example | WikiCode | ||
|
|||
| Check usage and version matrix | |||
Contents |
What can this extension do? [edit]
Allows you to very simply include Google +1 button in 4 different versions.
Usage [edit]
With the tag <googlePlusOne/>
- <googlePlusOne style="small"/> (Small version)
- <googlePlusOne style="medium"/> (Medium version)
- <googlePlusOne style="standard"/> or <googlePlusOne/> (Standard version)
- <googlePlusOne style="tall"/> (Tall version)
- <googlePlusOne style="small-home"/> (Small version - Home URL)
- <googlePlusOne style="medium-home"/> (Medium version - Home URL)
- <googlePlusOne style="home"/> (Standard version - Home URL)
- <googlePlusOne style="tall-home"/> (Tall version - Home URL)
Default version = standard
Older versions of this extension used the tag <google1> and a numeric indicator for the style. These are still supported, but not documented here.
Installation [edit]
To install this extension, add the following to LocalSettings.php:
require_once("$IP/extensions/GooglePlusOne/GooglePlusOne.php"); # The following defaults to [[Manual:$wgServer]] concatnated with [[Manual:$wgScriptPath]] $googlePlusOneSiteUrl = "your site URL"; # The following defaults to "https://apis.google.com/js/plusone.js", but you can override it here $googlePlusOneJS = "your local copy";