Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

README

        

# mediawiki-GoogleRichCards
MediaWiki extension to generate Google Rich Cards metadata for article pages

mediawiki.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}}}