Skip to content

Commit

Permalink
Indentation in README updated + mediawiki.org page linked
Browse files Browse the repository at this point in the history
Signed-off-by: Igor Shishkin <[email protected]>
  • Loading branch information
teran committed Jun 5, 2016
1 parent 30ef0c3 commit d828e1b
Showing 1 changed file with 36 additions and 34 deletions.
70 changes: 36 additions & 34 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,44 +1,46 @@
# 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:

```
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Article",
"mainEntityOfPage": {
"@type": "WebPage",
"@id": "<current page URL>"
},
"author": {
"@type": "Person",
"name": "<first revision author>"
},
"headline": "<current page title>",
"dateCreated": "2016-05-04T08:20:51+00:00",
"datePublished": "2016-05-04T08:20:51+00:00",
"discussionUrl": "<current page talk link>",
"dateModified": "2016-06-05T01:12:10+00:00",
"image": {
"@type": "ImageObject",
"url": "<logo url made of $wgServer + $wgLogo>",
"height": 135, // since 135x135 is the max default value for mediawiki logo
"width": 135
},
"publisher": {
"@type": "Organization",
"name": "<wiki name>",
"logo": {
"@type": "ImageObject",
"url": "<logo url made of $wgServer + $wgLogo>"
}
},
"description": "<page title>",
}
</script>
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Article",
"mainEntityOfPage": {
"@type": "WebPage",
"@id": "<current page URL>"
},
"author": {
"@type": "Person",
"name": "<first revision author>"
},
"headline": "<current page title>",
"dateCreated": "2016-05-04T08:20:51+00:00",
"datePublished": "2016-05-04T08:20:51+00:00",
"discussionUrl": "<current page talk link>",
"dateModified": "2016-06-05T01:12:10+00:00",
"image": {
"@type": "ImageObject",
"url": "<logo url made of $wgServer + $wgLogo>",
"height": 135, // since 135x135 is the max default value for mediawiki logo
"width": 135
},
"publisher": {
"@type": "Organization",
"name": "<wiki name>",
"logo": {
"@type": "ImageObject",
"url": "<logo url made of $wgServer + $wgLogo>"
}
},
"description": "<page title>",
}
</script>
```

# Installation
Expand Down

0 comments on commit d828e1b

Please sign in to comment.