Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/teran/mediawiki-googlerichcards
MediaWiki extension to generate Google Rich Cards metadata for article pages
https://github.com/teran/mediawiki-googlerichcards
google-rich-cards google-rich-snippets mediawiki mediawiki-extension rich-snippets
Last synced: 21 days ago
JSON representation
MediaWiki extension to generate Google Rich Cards metadata for article pages
- Host: GitHub
- URL: https://github.com/teran/mediawiki-googlerichcards
- Owner: teran
- License: gpl-2.0
- Created: 2016-06-05T12:10:05.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-12-26T20:58:33.000Z (almost 3 years ago)
- Last Synced: 2023-03-30T08:38:29.302Z (over 1 year ago)
- Topics: google-rich-cards, google-rich-snippets, mediawiki, mediawiki-extension, rich-snippets
- Language: PHP
- Size: 43 KB
- Stars: 3
- Watchers: 3
- Forks: 3
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mediawiki-GoogleRichCards
MediaWiki extension to generate Google Rich Cards metadata for article pagesmediawiki.org extension page: https://www.mediawiki.org/wiki/Extension:GoogleRichCards
# Features
The extension adds Google Rich Card JSON-LD metadata to each "content page" of your MediaWiki installation.
Currently it supports the following types:* Article (status: stable)
* WebSite (status: beta)
* Event (status: alpha)# Installation
### Download code
```
git clone https://github.com/teran/mediawiki-GoogleRichCards.git /extensions/GoogleRichCards
```### LocalSettings.php
```
// Load extension
wfLoadExtension('GoogleRichCards');// Enable annotations for articles
$wgGoogleRichCardsAnnotateArticles = true;// Enable annotations for events
$wgGoogleRichCardsAnnotateEvents = true;// Enable WebSite annotations
$wgGoogleRichCardsAnnotateWebSite = true;
```### Template:Event
```
== Event ==
=== {{{name}}}{{{description}}}
Date: {{{startDate}}}
Place: {{{place}}}
Address: {{{streetAddress}}}
Performer: {{{performer}}}