2015-10-02 19:46:48 +00:00
|
|
|
{
|
|
|
|
"name": "RelatedArticles",
|
2015-11-03 22:29:15 +00:00
|
|
|
"version": "1.1.0",
|
2015-10-02 19:46:48 +00:00
|
|
|
"author": [
|
|
|
|
"Roland Unger",
|
|
|
|
"Hans Musil",
|
Add Related Articles section to Minerva
If the page has related articles, is in mainspace, isn't the main page,
and the output is being rendered with the MinervaBeta skin then a
"Related Articles" section is added to the page just before the footer.
Separate loading the information necessary to render the pages, choosing
the renderer, and rendering the data so that multiple skins - currently
Minerva and Vector per the mocks - not just multiple resolutions can all
be handled the same way:
* The bootstrap script (ext.relatedArticles.readMore.bootstrap/index.js)
for fetches the page image and Wikidata description; loading the
renderer module; and, finally, notifying the renderer module that it
should render the data, which it does by emitting
"ext.relatedArticles.readMore.init" event using mw#track
* The Minerva renderer subscribes to the event and, when it's fired,
renders the data by passing it to the WatchstarPageList view
Bug: T113635
Change-Id: I651342bdf9796938fa7051828dd13bc6fe774783
2015-10-07 13:12:42 +00:00
|
|
|
"Matthias Mullie",
|
|
|
|
"Sam Smith"
|
2015-10-02 19:46:48 +00:00
|
|
|
],
|
|
|
|
"url": "https://www.mediawiki.org/wiki/Extension:RelatedArticles",
|
|
|
|
"descriptionmsg": "relatedarticles-desc",
|
|
|
|
"license-name": "GPL-2.0",
|
Add Related Articles section to Minerva
If the page has related articles, is in mainspace, isn't the main page,
and the output is being rendered with the MinervaBeta skin then a
"Related Articles" section is added to the page just before the footer.
Separate loading the information necessary to render the pages, choosing
the renderer, and rendering the data so that multiple skins - currently
Minerva and Vector per the mocks - not just multiple resolutions can all
be handled the same way:
* The bootstrap script (ext.relatedArticles.readMore.bootstrap/index.js)
for fetches the page image and Wikidata description; loading the
renderer module; and, finally, notifying the renderer module that it
should render the data, which it does by emitting
"ext.relatedArticles.readMore.init" event using mw#track
* The Minerva renderer subscribes to the event and, when it's fired,
renders the data by passing it to the WatchstarPageList view
Bug: T113635
Change-Id: I651342bdf9796938fa7051828dd13bc6fe774783
2015-10-07 13:12:42 +00:00
|
|
|
"type": "other",
|
2015-10-02 19:46:48 +00:00
|
|
|
"AutoloadClasses": {
|
Add Related Articles section to Minerva
If the page has related articles, is in mainspace, isn't the main page,
and the output is being rendered with the MinervaBeta skin then a
"Related Articles" section is added to the page just before the footer.
Separate loading the information necessary to render the pages, choosing
the renderer, and rendering the data so that multiple skins - currently
Minerva and Vector per the mocks - not just multiple resolutions can all
be handled the same way:
* The bootstrap script (ext.relatedArticles.readMore.bootstrap/index.js)
for fetches the page image and Wikidata description; loading the
renderer module; and, finally, notifying the renderer module that it
should render the data, which it does by emitting
"ext.relatedArticles.readMore.init" event using mw#track
* The Minerva renderer subscribes to the event and, when it's fired,
renders the data by passing it to the WatchstarPageList view
Bug: T113635
Change-Id: I651342bdf9796938fa7051828dd13bc6fe774783
2015-10-07 13:12:42 +00:00
|
|
|
"RelatedArticles\\Hooks": "includes/Hooks.php",
|
|
|
|
"RelatedArticles\\ReadMoreHooks": "includes/ReadMoreHooks.php"
|
2015-10-02 19:46:48 +00:00
|
|
|
},
|
|
|
|
"ExtensionMessagesFiles": {
|
|
|
|
"RelatedArticlesMagic": "RelatedArticles.i18n.magic.php"
|
|
|
|
},
|
|
|
|
"Hooks": {
|
|
|
|
"ParserFirstCallInit": [
|
|
|
|
"RelatedArticles\\Hooks::onParserFirstCallInit"
|
|
|
|
],
|
|
|
|
"ParserClearState": [
|
|
|
|
"RelatedArticles\\Hooks::onParserClearState"
|
|
|
|
],
|
2015-10-08 00:21:13 +00:00
|
|
|
"OutputPageParserOutput": [
|
|
|
|
"RelatedArticles\\Hooks::onOutputPageParserOutput"
|
2015-10-02 19:46:48 +00:00
|
|
|
],
|
|
|
|
"@SkinBuildSidebar": [
|
|
|
|
"RelatedArticles\\Hooks::onSkinBuildSidebar"
|
|
|
|
],
|
|
|
|
"SkinTemplateToolboxEnd": [
|
|
|
|
"RelatedArticles\\Hooks::onSkinTemplateToolboxEnd"
|
2015-10-16 14:05:39 +00:00
|
|
|
],
|
|
|
|
"UnitTestsList": [
|
|
|
|
"RelatedArticles\\Hooks::onUnitTestsList"
|
Add Related Articles section to Minerva
If the page has related articles, is in mainspace, isn't the main page,
and the output is being rendered with the MinervaBeta skin then a
"Related Articles" section is added to the page just before the footer.
Separate loading the information necessary to render the pages, choosing
the renderer, and rendering the data so that multiple skins - currently
Minerva and Vector per the mocks - not just multiple resolutions can all
be handled the same way:
* The bootstrap script (ext.relatedArticles.readMore.bootstrap/index.js)
for fetches the page image and Wikidata description; loading the
renderer module; and, finally, notifying the renderer module that it
should render the data, which it does by emitting
"ext.relatedArticles.readMore.init" event using mw#track
* The Minerva renderer subscribes to the event and, when it's fired,
renders the data by passing it to the WatchstarPageList view
Bug: T113635
Change-Id: I651342bdf9796938fa7051828dd13bc6fe774783
2015-10-07 13:12:42 +00:00
|
|
|
],
|
|
|
|
"MakeGlobalVariablesScript": [
|
|
|
|
"RelatedArticles\\ReadMoreHooks::onMakeGlobalVariablesScript"
|
|
|
|
],
|
|
|
|
"BeforePageDisplay": [
|
|
|
|
"RelatedArticles\\ReadMoreHooks::onBeforePageDisplay"
|
2015-10-02 19:46:48 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"MessagesDirs": {
|
|
|
|
"RelatedArticles": [
|
|
|
|
"i18n"
|
|
|
|
]
|
|
|
|
},
|
Add Related Articles section to Minerva
If the page has related articles, is in mainspace, isn't the main page,
and the output is being rendered with the MinervaBeta skin then a
"Related Articles" section is added to the page just before the footer.
Separate loading the information necessary to render the pages, choosing
the renderer, and rendering the data so that multiple skins - currently
Minerva and Vector per the mocks - not just multiple resolutions can all
be handled the same way:
* The bootstrap script (ext.relatedArticles.readMore.bootstrap/index.js)
for fetches the page image and Wikidata description; loading the
renderer module; and, finally, notifying the renderer module that it
should render the data, which it does by emitting
"ext.relatedArticles.readMore.init" event using mw#track
* The Minerva renderer subscribes to the event and, when it's fired,
renders the data by passing it to the WatchstarPageList view
Bug: T113635
Change-Id: I651342bdf9796938fa7051828dd13bc6fe774783
2015-10-07 13:12:42 +00:00
|
|
|
"manifest_version": 1,
|
|
|
|
"ResourceModules": {
|
|
|
|
"ext.relatedArticles.readMore.bootstrap": {
|
|
|
|
"scripts": [
|
|
|
|
"resources/ext.relatedArticles.readMore.bootstrap/index.js"
|
|
|
|
],
|
|
|
|
"dependencies": [
|
|
|
|
"mediawiki.api"
|
|
|
|
],
|
|
|
|
"targets": [
|
|
|
|
"mobile",
|
|
|
|
"desktop"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"ext.relatedArticles.readMore.minerva": {
|
|
|
|
"scripts": [
|
|
|
|
"resources/ext.relatedArticles.readMore.minerva/index.js"
|
|
|
|
],
|
|
|
|
"styles": [
|
|
|
|
"resources/ext.relatedArticles.readMore.minerva/readMore.less"
|
|
|
|
],
|
|
|
|
"messages": [
|
|
|
|
"relatedarticles-read-more-heading"
|
|
|
|
],
|
|
|
|
"targets": [
|
|
|
|
"mobile"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"ResourceFileModulePaths": {
|
|
|
|
"localBasePath": "",
|
|
|
|
"remoteExtPath": "RelatedArticles"
|
|
|
|
}
|
2015-10-02 19:46:48 +00:00
|
|
|
}
|