2015-10-02 19:46:48 +00:00
{
"name" : "RelatedArticles" ,
2018-09-13 18:40:42 +00:00
"version" : "3.1.0" ,
2015-10-02 19:46:48 +00:00
"author" : [
2018-09-13 18:40:42 +00:00
"[https://www.mediawiki.org/wiki/Reading/Web/Team Readers Web Team]" ,
2015-10-02 19:46:48 +00:00
"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" ,
2018-03-02 23:35:10 +00:00
"license-name" : "GPL-2.0-only" ,
2016-01-15 13:20:46 +00:00
"type" : "betafeatures" ,
2018-07-07 10:00:25 +00:00
"requires" : {
"MediaWiki" : ">= 1.31.0"
} ,
2018-06-12 01:34:07 +00:00
"AutoloadNamespaces" : {
"RelatedArticles\\" : "includes/"
2015-10-02 19:46:48 +00:00
} ,
"ExtensionMessagesFiles" : {
"RelatedArticlesMagic" : "RelatedArticles.i18n.magic.php"
} ,
"Hooks" : {
2020-05-11 19:47:11 +00:00
"ParserFirstCallInit" : "RelatedArticles\\Hooks::onParserFirstCallInit" ,
"OutputPageParserOutput" : "RelatedArticles\\Hooks::onOutputPageParserOutput" ,
"MakeGlobalVariablesScript" : "RelatedArticles\\Hooks::onMakeGlobalVariablesScript" ,
"BeforePageDisplay" : "RelatedArticles\\Hooks::onBeforePageDisplay" ,
"ResourceLoaderGetConfigVars" : "RelatedArticles\\Hooks::onResourceLoaderGetConfigVars" ,
"SkinAfterContent" : "RelatedArticles\\Hooks::onSkinAfterContent"
2015-10-02 19:46:48 +00:00
} ,
"MessagesDirs" : {
"RelatedArticles" : [
"i18n"
]
} ,
2020-01-04 18:33:29 +00:00
"manifest_version" : 2 ,
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
"ResourceModules" : {
2021-11-04 19:27:36 +00:00
"ext.relatedArticles.styles" : {
"styles" : "resources/ext.relatedArticles.styles.less" ,
"targets" : [
"mobile" ,
"desktop"
]
} ,
2017-06-06 23:38:57 +00:00
"ext.relatedArticles.cards" : {
"targets" : [
"desktop" ,
"mobile"
] ,
"dependencies" : [
"oojs" ,
"mediawiki.util" ,
"ext.relatedArticles.lib"
] ,
"scripts" : [
"resources/ext.relatedArticles.cards/init.js" ,
"resources/ext.relatedArticles.cards/CardModel.js" ,
"resources/ext.relatedArticles.cards/CardView.js" ,
2017-06-14 20:10:01 +00:00
"resources/ext.relatedArticles.cards/CardListView.js"
2017-06-06 23:38:57 +00:00
] ,
"styles" : [
"resources/ext.relatedArticles.cards/styles.less"
2019-04-09 16:13:19 +00:00
]
2017-06-06 23:38:57 +00:00
} ,
"ext.relatedArticles.lib" : {
"targets" : [
"desktop" ,
"mobile"
] ,
"scripts" : [
"resources/ext.relatedArticles.lib/CSS.escape/css.escape.js"
]
} ,
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
"scripts" : [
2015-11-16 10:40:03 +00:00
"resources/ext.relatedArticles.readMore.gateway/RelatedPagesGateway.js"
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
] ,
"dependencies" : [
2015-11-03 23:39:48 +00:00
"oojs"
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"
]
} ,
"ext.relatedArticles.readMore.bootstrap" : {
2019-05-25 21:13:29 +00:00
"localBasePath" : "resources/ext.relatedArticles.readMore.bootstrap" ,
"remoteExtPath" : "RelatedArticles/resources/ext.relatedArticles.readMore.bootstrap" ,
"packageFiles" : [
2019-05-25 21:18:58 +00:00
"index.js" ,
2020-01-04 18:33:29 +00:00
{
"name" : "data.json" ,
"config" : {
"useCirrusSearch" : "RelatedArticlesUseCirrusSearch" ,
"onlyUseCirrusSearch" : "RelatedArticlesOnlyUseCirrusSearch" ,
"descriptionSource" : "RelatedArticlesDescriptionSource"
}
}
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
] ,
"dependencies" : [
2017-01-27 21:10:46 +00:00
"mediawiki.experiments" ,
"mediawiki.user" ,
2015-11-03 23:39:48 +00:00
"mediawiki.api" ,
2015-12-29 02:55:43 +00:00
"mediawiki.Uri" ,
2015-12-05 17:44:15 +00:00
"ext.relatedArticles.readMore.gateway" ,
2019-10-24 18:49:04 +00:00
"mediawiki.util"
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"
]
2017-02-23 22:02:50 +00:00
} ,
"ext.relatedArticles.readMore" : {
"dependencies" : [
2018-09-13 18:40:42 +00:00
"mediawiki.util"
2017-02-23 22:02:50 +00:00
] ,
"scripts" : [
"resources/ext.relatedArticles.readMore/index.js"
] ,
"styles" : [
"resources/ext.relatedArticles.readMore/readMore.less"
] ,
"skinStyles" : {
"default" : "resources/ext.relatedArticles.readMore/readMore.default.less" ,
2020-03-19 15:05:47 +00:00
"minerva" : "resources/ext.relatedArticles.readMore/readMore.minerva.less"
2017-02-23 22:02:50 +00:00
} ,
"messages" : [
"relatedarticles-read-more-heading"
] ,
"targets" : [
"desktop" ,
"mobile"
]
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
}
} ,
2020-05-11 19:46:12 +00:00
"QUnitTestModule" : {
"localBasePath" : "tests/qunit" ,
"remoteExtPath" : "RelatedArticles/tests/qunit" ,
"scripts" : [
"ext.relatedArticles.cards/CardModel.test.js" ,
"ext.relatedArticles.cards/CardView.test.js" ,
"ext.relatedArticles.readMore.gateway/RelatedPagesGateway.test.js"
] ,
"dependencies" : [
"ext.relatedArticles.cards" ,
"ext.relatedArticles.readMore.gateway"
]
} ,
2015-11-03 23:39:48 +00:00
"config" : {
2020-01-04 18:33:29 +00:00
"RelatedArticlesCardLimit" : {
"description" : "Maximum number of articles that should be shown in RelatedArticles widget. This limit is derived from limits in TextExtracts and PageImages extensions. Number should be between 1 and 20." ,
"value" : 3
} ,
"RelatedArticlesUseCirrusSearch" : {
"value" : false
} ,
"RelatedArticlesOnlyUseCirrusSearch" : {
"value" : false
} ,
"RelatedArticlesDescriptionSource" : {
"description" : "Source to get the page description from (string, or false to not fetch the description). Possible values: wikidata, textextracts, pagedescription." ,
"value" : false
} ,
2021-04-19 00:26:58 +00:00
"RelatedArticlesFooterAllowedSkins" : {
2020-01-04 18:33:29 +00:00
"description" : "List of skin names (e.g. 'minerva') where related articles will be shown in the footer." ,
"value" : [ ]
}
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
}