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": {
|
2015-11-03 23:39:48 +00:00
|
|
|
"ResourceLoaderTestModules": [
|
|
|
|
"RelatedArticles\\ReadMoreHooks::onResourceLoaderTestModules"
|
|
|
|
],
|
2015-10-02 19:46:48 +00:00
|
|
|
"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-29 17:58:30 +00:00
|
|
|
],
|
|
|
|
"EventLoggingRegisterSchemas": [
|
|
|
|
"RelatedArticles\\ReadMoreHooks::onEventLoggingRegisterSchemas"
|
|
|
|
],
|
|
|
|
"ResourceLoaderGetConfigVars": [
|
|
|
|
"RelatedArticles\\ReadMoreHooks::onResourceLoaderGetConfigVars"
|
|
|
|
],
|
|
|
|
"ResourceLoaderRegisterModules": [
|
|
|
|
"RelatedArticles\\ReadMoreHooks::onResourceLoaderRegisterModules"
|
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": {
|
2015-11-16 10:40:03 +00:00
|
|
|
"ext.relatedArticles.readMore.gateway": {
|
2015-11-03 23:39:48 +00:00
|
|
|
"scripts": [
|
2015-11-16 10:40:03 +00:00
|
|
|
"resources/ext.relatedArticles.readMore.gateway/RelatedPagesGateway.js"
|
2015-11-03 23:39:48 +00:00
|
|
|
],
|
|
|
|
"dependencies": [
|
|
|
|
"oojs"
|
|
|
|
],
|
|
|
|
"targets": [
|
|
|
|
"mobile",
|
|
|
|
"desktop"
|
|
|
|
]
|
|
|
|
},
|
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
|
|
|
"ext.relatedArticles.readMore.bootstrap": {
|
|
|
|
"scripts": [
|
|
|
|
"resources/ext.relatedArticles.readMore.bootstrap/index.js"
|
|
|
|
],
|
|
|
|
"dependencies": [
|
2015-11-03 23:39:48 +00:00
|
|
|
"mediawiki.api",
|
2015-11-16 10:40:03 +00:00
|
|
|
"ext.relatedArticles.readMore.gateway"
|
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
|
|
|
],
|
|
|
|
"targets": [
|
|
|
|
"mobile",
|
|
|
|
"desktop"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2015-11-03 23:39:48 +00:00
|
|
|
"config": {
|
2015-11-06 20:10:08 +00:00
|
|
|
"RelatedArticlesShowReadMore": false,
|
2015-10-29 17:58:30 +00:00
|
|
|
"RelatedArticlesUseCirrusSearch": false,
|
2015-11-11 15:30:19 +00:00
|
|
|
"RelatedArticlesOnlyUseCirrusSearch": false,
|
2015-10-29 17:58:30 +00:00
|
|
|
"RelatedArticlesLoggingSamplingRate": 0.01
|
2015-11-03 23:39:48 +00:00
|
|
|
},
|
|
|
|
"ConfigRegistry": {
|
2015-10-29 17:58:30 +00:00
|
|
|
"RelatedArticles": "GlobalVarConfig::newInstance"
|
2015-11-03 23:39:48 +00:00
|
|
|
},
|
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
|
|
|
"ResourceFileModulePaths": {
|
|
|
|
"localBasePath": "",
|
|
|
|
"remoteExtPath": "RelatedArticles"
|
|
|
|
}
|
2015-10-02 19:46:48 +00:00
|
|
|
}
|