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" : {
2023-08-19 06:03:45 +00:00
"MediaWiki" : ">= 1.41"
2018-07-07 10:00:25 +00:00
} ,
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" : {
2023-09-27 19:02:11 +00:00
"ParserFirstCallInit" : "main" ,
"OutputPageParserOutput" : "main" ,
"MakeGlobalVariablesScript" : "main" ,
"BeforePageDisplay" : "main" ,
"ResourceLoaderGetConfigVars" : "main" ,
"SkinAfterContent" : "main"
} ,
"HookHandlers" : {
"main" : {
"class" : "RelatedArticles\\Hooks"
}
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" : {
2023-02-16 19:38:31 +00:00
"styles" : "resources/ext.relatedArticles.styles.less"
2021-11-04 19:27:36 +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
"ext.relatedArticles.readMore.bootstrap" : {
Limit RelatedArticles feature to ES6 browsers
We currently require support for IntersectionObserver.
which is supported on Edge >= 15 (15 has partial support),
Firefox >55, Chrome >58, Safari 12.1, Opera >=38,
iOS Safari >=12.2, Android 100
Full ES6 is supported in Edge >=15, Firefox >=54, Chrome >=51,
Safari >=10, Opera >=38, iOS Safari >=10, so such a change
would only drop support for Edge 15 and Firefox 54.
CSS.escape is guaranteed in all these browsers according to
caniuse, with the only discrepancy being the Edge browser (versions
16-18) so it is also suggested we remove support for those browsers.
Firefox 54 accounts for 0.0026% of page views
Edge 15-18 accounts for 0.069% of page views
Bug: T306355
Change-Id: Id2987e3456607b610c38da9ee157a026d1d00ada
2022-04-18 22:20:04 +00:00
"es6" : true ,
2022-04-15 00:49:12 +00:00
"localBasePath" : "resources/ext.relatedArticles.readMore.bootstrap/" ,
2022-04-14 23:11:07 +00:00
"remoteExtPath" : "RelatedArticles" ,
2019-05-25 21:13:29 +00:00
"packageFiles" : [
2022-04-15 00:49:12 +00:00
"index.js" ,
"RelatedPagesGateway.js" ,
2020-01-04 18:33:29 +00:00
{
2022-04-15 00:49:12 +00:00
"name" : "data.json" ,
2020-01-04 18:33:29 +00:00
"config" : {
2022-04-15 00:03:00 +00:00
"searchUrl" : "RelatedArticlesUseCirrusSearchApiUrl" ,
2020-01-04 18:33:29 +00:00
"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.user" ,
2015-11-03 23:39:48 +00:00
"mediawiki.api" ,
2015-12-29 02:55:43 +00:00
"mediawiki.Uri" ,
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
]
2017-02-23 22:02:50 +00:00
} ,
"ext.relatedArticles.readMore" : {
Limit RelatedArticles feature to ES6 browsers
We currently require support for IntersectionObserver.
which is supported on Edge >= 15 (15 has partial support),
Firefox >55, Chrome >58, Safari 12.1, Opera >=38,
iOS Safari >=12.2, Android 100
Full ES6 is supported in Edge >=15, Firefox >=54, Chrome >=51,
Safari >=10, Opera >=38, iOS Safari >=10, so such a change
would only drop support for Edge 15 and Firefox 54.
CSS.escape is guaranteed in all these browsers according to
caniuse, with the only discrepancy being the Edge browser (versions
16-18) so it is also suggested we remove support for those browsers.
Firefox 54 accounts for 0.0026% of page views
Edge 15-18 accounts for 0.069% of page views
Bug: T306355
Change-Id: Id2987e3456607b610c38da9ee157a026d1d00ada
2022-04-18 22:20:04 +00:00
"es6" : true ,
2017-02-23 22:02:50 +00:00
"dependencies" : [
2022-03-30 18:25:56 +00:00
"mediawiki.util" ,
2022-04-14 23:11:07 +00:00
"oojs"
2017-02-23 22:02:50 +00:00
] ,
2022-04-14 23:11:07 +00:00
"packageFiles" : [
"resources/ext.relatedArticles.readMore/index.js" ,
2022-04-15 00:49:12 +00:00
"resources/ext.relatedArticles.readMore/CardModel.js" ,
"resources/ext.relatedArticles.readMore/CardView.js" ,
"resources/ext.relatedArticles.readMore/CardListView.js"
2017-02-23 22:02:50 +00:00
] ,
"styles" : [
2022-04-14 23:11:07 +00:00
"resources/ext.relatedArticles.readMore/styles.less" ,
2017-02-23 22:02:50 +00:00
"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"
]
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" : {
2022-04-14 23:11:07 +00:00
"localBasePath" : "" ,
"remoteExtPath" : "RelatedArticles" ,
"packageFiles" : [
"tests/qunit/index.js" ,
2022-04-15 00:49:12 +00:00
"resources/ext.relatedArticles.readMore.bootstrap/RelatedPagesGateway.js" ,
"resources/ext.relatedArticles.readMore/CardView.js" ,
"resources/ext.relatedArticles.readMore/CardModel.js" ,
2022-04-14 23:11:07 +00:00
"tests/qunit/CardModel.test.js" ,
"tests/qunit/CardView.test.js" ,
"tests/qunit/RelatedPagesGateway.test.js"
2020-05-11 19:46:12 +00:00
]
} ,
2015-11-03 23:39:48 +00:00
"config" : {
2022-04-15 00:03:00 +00:00
"RelatedArticlesUseCirrusSearchApiUrl" : {
"description" : "During development use a different API for sourcing related articles." ,
"value" : "/w/api.php"
} ,
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
}