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" : {
2024-01-05 20:22:56 +00:00
"MediaWiki" : ">= 1.42"
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" : {
2024-02-05 18:19:28 +00:00
"class" : "RelatedArticles\\Hooks" ,
2024-02-07 18:08:55 +00:00
"services" : [
"ConfigFactory"
] ,
2024-02-05 18:19:28 +00:00
"optional_services" : [
"DisambiguatorLookup"
]
2023-09-27 19:02:11 +00:00
}
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-11-08 22:06:07 +00:00
"styles" : "resources/ext.relatedArticles.styles.less" ,
"skinStyles" : {
"default" : [ "skinStyles/ext.relatedArticles.styles/default.less" ] ,
"minerva" : [ ]
}
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" : {
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" : [
2023-11-08 22:06:07 +00:00
"index.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" : [
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" : {
2023-11-08 22:06:07 +00:00
"class" : "MediaWiki\\ResourceLoader\\CodexModule" ,
"codexStyleOnly" : "true" ,
"codexComponents" : [
"CdxCard"
] ,
2017-02-23 22:02:50 +00:00
"dependencies" : [
2023-11-08 22:06:07 +00:00
"mediawiki.util"
2017-02-23 22:02:50 +00:00
] ,
2023-11-08 22:06:07 +00:00
"localBasePath" : "resources/ext.relatedArticles.readMore/" ,
2022-04-14 23:11:07 +00:00
"packageFiles" : [
2023-11-08 22:06:07 +00:00
"index.js" ,
"RelatedPagesGateway.js" ,
{
"name" : "data.json" ,
"config" : {
"searchUrl" : "RelatedArticlesUseCirrusSearchApiUrl" ,
"useCirrusSearch" : "RelatedArticlesUseCirrusSearch" ,
"onlyUseCirrusSearch" : "RelatedArticlesOnlyUseCirrusSearch" ,
"descriptionSource" : "RelatedArticlesDescriptionSource"
}
} ,
"RelatedArticles.js"
2017-02-23 22:02:50 +00:00
] ,
"styles" : [
2023-11-08 22:06:07 +00:00
"styles.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" ,
2023-11-08 22:06:07 +00:00
"resources/ext.relatedArticles.readMore/RelatedPagesGateway.js" ,
2022-04-14 23:11:07 +00:00
"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." ,
2023-11-08 22:06:07 +00:00
"value" : 5
2020-01-04 18:33:29 +00:00
} ,
"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
}