2015-04-30 18:45:20 +00:00
|
|
|
{
|
|
|
|
"name": "Cite",
|
|
|
|
"author": [
|
|
|
|
"Ævar Arnfjörð Bjarmason",
|
|
|
|
"Andrew Garrett",
|
|
|
|
"Brion Vibber",
|
2016-02-03 21:03:41 +00:00
|
|
|
"Ed Sanders",
|
2015-04-30 18:45:20 +00:00
|
|
|
"Marius Hoch",
|
2016-02-03 21:03:41 +00:00
|
|
|
"Steve Sanbeg",
|
|
|
|
"Trevor Parscal",
|
|
|
|
"..."
|
2015-04-30 18:45:20 +00:00
|
|
|
],
|
|
|
|
"url": "https://www.mediawiki.org/wiki/Extension:Cite",
|
|
|
|
"descriptionmsg": "cite-desc",
|
2018-01-04 10:54:51 +00:00
|
|
|
"license-name": "GPL-2.0-or-later",
|
2015-04-30 18:45:20 +00:00
|
|
|
"type": "parserhook",
|
2017-09-18 19:17:06 +00:00
|
|
|
"requires": {
|
2020-12-28 15:40:47 +00:00
|
|
|
"MediaWiki": ">= 1.35.0"
|
2017-09-18 19:17:06 +00:00
|
|
|
},
|
2015-04-30 18:45:20 +00:00
|
|
|
"MessagesDirs": {
|
2018-09-12 04:32:11 +00:00
|
|
|
"Cite": [
|
|
|
|
"i18n",
|
|
|
|
"modules/ve-cite/i18n"
|
2018-09-16 09:12:25 +00:00
|
|
|
]
|
2015-04-30 18:45:20 +00:00
|
|
|
},
|
|
|
|
"Hooks": {
|
2020-12-28 15:40:47 +00:00
|
|
|
"APIQuerySiteInfoGeneralInfo": "main",
|
|
|
|
"ContentHandlerDefaultModelFor": "main",
|
|
|
|
"ParserAfterParse": "parser",
|
|
|
|
"ParserClearState": "parser",
|
|
|
|
"ParserCloned": "parser",
|
|
|
|
"ParserFirstCallInit": "parser",
|
|
|
|
"ResourceLoaderGetConfigVars": "main"
|
|
|
|
},
|
|
|
|
"HookHandlers": {
|
|
|
|
"main": {
|
|
|
|
"class": "Cite\\Hooks\\CiteHooks"
|
|
|
|
},
|
|
|
|
"parser": {
|
|
|
|
"class": "Cite\\Hooks\\CiteParserHooks"
|
|
|
|
}
|
2015-04-30 18:45:20 +00:00
|
|
|
},
|
|
|
|
"ResourceModules": {
|
2015-06-05 20:56:58 +00:00
|
|
|
"ext.cite.styles": {
|
2015-05-19 16:23:43 +00:00
|
|
|
"styles": {
|
2015-06-05 20:56:58 +00:00
|
|
|
"ext.cite.styles.css": {},
|
2015-05-19 16:23:43 +00:00
|
|
|
"ext.cite.print.css": {
|
|
|
|
"media": "print"
|
|
|
|
}
|
|
|
|
},
|
2017-06-16 18:17:17 +00:00
|
|
|
"skinStyles": {
|
|
|
|
"minerva": "ext.cite.styles.minerva.less"
|
|
|
|
},
|
Implement responsive columns for reference lists
This is based on the popular 'count' parameter from Template:Reflist on
English Wikipedia, which has also been adopted by many other wikis.
That template's 'count' parameter allows maximum flexibility on a per-
page basis. This was important because the template can't know how many
references the list will contain. Users typically manually add (and
later, increment) the 'count' parameter when the list exceeds a certain
threshold.
The template currently sets an exact column count (via the CSS3
property `column-count`).
This patch improves on that by instead using the closely related CSS3
`column-width` property. This automatically derives the column count
based on the available space in the browser window. It will thus create
two or three columns on a typical desktop screen, and two or no columns
on a mobile device.
The specified width is the minimum width of a column. This ensures that
the list is not split when rendered on a narrow screen or mobile device.
It also hooks into the raw list before parsing and adds the class only
when the list will contain more than a certain number of items. This
prevents very short lists from being split into multiple columns.
Templates like Template:Reflist on English Wikipedia currently are not
able to set inline styles on the list element directly, which is why
they set it on a `<div>` wrapping the `<references />` output. Because
of this, the feature of the Cite extension must not be enabled at the
same time, as that would result in both the template's wrapper and the
references list being split. The end result would involve sitations with
three columns split in four sub-columns, creating a complicated mess of
nine intermixed columns.
To provide a smooth migration for wikis, this feature can be disabled by
default using `$wgCiteResponsiveReferences = false`. Each individual
template createing reference list can then be migrated, by removing the
wrapper column styles and instead settting the new "responsive"
attribute, like so: `<references responsive />`.
Once any conflicting templates have been migrated, the default for the
wiki can be swapped by setting `$wgCiteResponsiveReferences = true`.
If wikis wish for some templates to keep their custom column splitting
behaviour, templates can also opt-out by setting `responsive="0"`, which
will make sure that it will keep behaving the current way even after the
feature becomes enabled by default for the wiki.
In summary, when disabled by default, pages can opt into this system
with `<references responsive />`. When enabled by default, pages can opt
out of the system with `<references responsive=0 />`.
* Deprecate cite_references_prefix/cite_references_suffix.
This message is rarely used and opens up compatibility hazards.
It was already removed by Parsoid, but the PHP implementation
still had it. It's typically used to add inline styles to the
wrapper which is more appropiately done in Common.css (or
obsoleted as part of the skin or Cite extenion itself nowadays
depending on what style in question).
It was also a HTML-style message with separated open and close
segments, which is an anti-pattern in itself.
* Declare module target explicitly and include mobile. The absence of
this stylesheet caused subtle BiDi/RTL bugs on mobile.
Bug: T33597
Change-Id: Ia535f9b722e825e71e792b36356febc3bd444387
2015-07-21 02:33:50 +00:00
|
|
|
"targets": [
|
|
|
|
"desktop",
|
|
|
|
"mobile"
|
|
|
|
]
|
2015-06-05 20:56:58 +00:00
|
|
|
},
|
2015-04-29 16:07:09 +00:00
|
|
|
"ext.cite.style": {
|
2019-11-19 14:12:11 +00:00
|
|
|
"class": "Cite\\ResourceLoader\\CiteCSSFileModule",
|
2015-06-10 20:33:35 +00:00
|
|
|
"styles": "ext.cite.style.css",
|
2015-07-13 12:57:07 +00:00
|
|
|
"targets": [
|
|
|
|
"desktop",
|
|
|
|
"mobile"
|
|
|
|
]
|
2020-12-13 17:34:45 +00:00
|
|
|
},
|
|
|
|
"ext.cite.visualEditor.core": {
|
|
|
|
"localBasePath": "modules/ve-cite",
|
|
|
|
"remoteExtPath": "Cite/modules/ve-cite",
|
|
|
|
"scripts": [
|
|
|
|
"ve.dm.MWReferenceModel.js",
|
|
|
|
"ve.dm.MWReferencesListNode.js",
|
|
|
|
"ve.dm.MWReferenceNode.js",
|
|
|
|
"ve.ce.MWReferencesListNode.js",
|
|
|
|
"ve.ce.MWReferenceNode.js",
|
|
|
|
"ve.ui.MWReferencesListCommand.js"
|
|
|
|
],
|
|
|
|
"styles": [
|
|
|
|
"ve.ce.MWReferencesListNode.css",
|
|
|
|
"ve.ce.MWReferenceNode.css"
|
|
|
|
],
|
|
|
|
"dependencies": [
|
|
|
|
"ext.visualEditor.mwcore",
|
|
|
|
"ext.visualEditor.mwtransclusion"
|
|
|
|
],
|
|
|
|
"messages": [
|
|
|
|
"cite-ve-referenceslist-isempty",
|
|
|
|
"cite-ve-referenceslist-isempty-default",
|
|
|
|
"cite-ve-referenceslist-missingref",
|
|
|
|
"cite-ve-referenceslist-missingref-in-list",
|
|
|
|
"cite-ve-referenceslist-missingreflist",
|
|
|
|
"visualeditor-internal-list-diff-default-group-name-mwreference",
|
|
|
|
"visualeditor-internal-list-diff-group-name-mwreference"
|
|
|
|
],
|
|
|
|
"targets": [
|
|
|
|
"desktop",
|
|
|
|
"mobile"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"ext.cite.visualEditor.data": {
|
|
|
|
"class": "Cite\\ResourceLoader\\CiteDataModule"
|
|
|
|
},
|
|
|
|
"ext.cite.visualEditor": {
|
|
|
|
"localBasePath": "modules/ve-cite",
|
|
|
|
"remoteExtPath": "Cite/modules/ve-cite",
|
|
|
|
"scripts": [
|
|
|
|
"ve.ui.MWReferenceGroupInputWidget.js",
|
|
|
|
"ve.ui.MWReferenceSearchWidget.js",
|
|
|
|
"ve.ui.MWReferenceResultWidget.js",
|
|
|
|
"ve.ui.MWUseExistingReferenceCommand.js",
|
|
|
|
"ve.ui.MWCitationDialog.js",
|
|
|
|
"ve.ui.MWReferencesListDialog.js",
|
|
|
|
"ve.ui.MWReferenceDialog.js",
|
|
|
|
"ve.ui.MWReferenceDialogTool.js",
|
|
|
|
"ve.ui.MWCitationDialogTool.js",
|
|
|
|
"ve.ui.MWReferenceContextItem.js",
|
|
|
|
"ve.ui.MWReferencesListContextItem.js",
|
|
|
|
"ve.ui.MWCitationContextItem.js",
|
|
|
|
"ve.ui.MWCitationAction.js",
|
|
|
|
"ve.ui.MWReference.init.js",
|
|
|
|
"ve.ui.MWCitationNeededContextItem.js"
|
|
|
|
],
|
|
|
|
"styles": [
|
|
|
|
"ve.ui.MWReferenceDialog.css",
|
|
|
|
"ve.ui.MWReferenceContextItem.css",
|
|
|
|
"ve.ui.MWReferenceGroupInputWidget.css",
|
|
|
|
"ve.ui.MWReferenceResultWidget.css",
|
|
|
|
"ve.ui.MWReferenceSearchWidget.css",
|
|
|
|
"ve.ui.MWCitationDialogTool.css"
|
|
|
|
],
|
|
|
|
"dependencies": [
|
|
|
|
"oojs-ui.styles.icons-alerts",
|
|
|
|
"oojs-ui.styles.icons-editing-citation",
|
|
|
|
"oojs-ui.styles.icons-interactions",
|
|
|
|
"ext.cite.visualEditor.core",
|
|
|
|
"ext.cite.visualEditor.data",
|
|
|
|
"ext.cite.style",
|
|
|
|
"ext.cite.styles",
|
|
|
|
"ext.visualEditor.mwtransclusion",
|
|
|
|
"ext.visualEditor.mediawiki"
|
|
|
|
],
|
|
|
|
"messages": [
|
|
|
|
"cite-ve-changedesc-ref-group-both",
|
|
|
|
"cite-ve-changedesc-ref-group-from",
|
|
|
|
"cite-ve-changedesc-ref-group-to",
|
|
|
|
"cite-ve-changedesc-reflist-group-both",
|
|
|
|
"cite-ve-changedesc-reflist-group-from",
|
|
|
|
"cite-ve-changedesc-reflist-group-to",
|
|
|
|
"cite-ve-changedesc-reflist-item-id",
|
|
|
|
"cite-ve-changedesc-reflist-responsive-set",
|
|
|
|
"cite-ve-changedesc-reflist-responsive-unset",
|
|
|
|
"cite-ve-citationneeded-button",
|
|
|
|
"cite-ve-citationneeded-description",
|
2020-12-14 14:45:25 +00:00
|
|
|
"cite-ve-citationneeded-reason",
|
2020-12-13 17:34:45 +00:00
|
|
|
"cite-ve-citationneeded-title",
|
|
|
|
"cite-ve-dialog-reference-editing-reused",
|
|
|
|
"cite-ve-dialog-reference-editing-reused-long",
|
|
|
|
"cite-ve-dialog-reference-options-group-label",
|
|
|
|
"cite-ve-dialog-reference-options-group-placeholder",
|
|
|
|
"cite-ve-dialog-reference-options-name-label",
|
|
|
|
"cite-ve-dialog-reference-options-responsive-label",
|
|
|
|
"cite-ve-dialog-reference-options-section",
|
|
|
|
"cite-ve-dialog-reference-placeholder",
|
|
|
|
"cite-ve-dialog-reference-title",
|
|
|
|
"cite-ve-dialog-reference-useexisting-tool",
|
|
|
|
"cite-ve-dialog-referenceslist-contextitem-description-general",
|
|
|
|
"cite-ve-dialog-referenceslist-contextitem-description-named",
|
|
|
|
"cite-ve-dialog-referenceslist-title",
|
|
|
|
"cite-ve-dialogbutton-citation-educationpopup-title",
|
|
|
|
"cite-ve-dialogbutton-citation-educationpopup-text",
|
|
|
|
"cite-ve-dialogbutton-reference-full-label",
|
|
|
|
"cite-ve-dialogbutton-reference-tooltip",
|
|
|
|
"cite-ve-dialogbutton-reference-title",
|
|
|
|
"cite-ve-dialogbutton-referenceslist-tooltip",
|
|
|
|
"cite-ve-reference-input-placeholder",
|
|
|
|
"cite-ve-toolbar-group-label",
|
2020-12-14 14:45:25 +00:00
|
|
|
"cite-ve-othergroup-item",
|
|
|
|
"parentheses",
|
|
|
|
"word-separator"
|
2020-12-13 17:34:45 +00:00
|
|
|
],
|
|
|
|
"targets": [
|
|
|
|
"desktop",
|
|
|
|
"mobile"
|
|
|
|
]
|
2020-12-13 17:56:00 +00:00
|
|
|
},
|
|
|
|
"ext.cite.ux-enhancements": {
|
|
|
|
"localBasePath": "modules",
|
|
|
|
"remoteExtPath": "Cite/modules",
|
|
|
|
"scripts": [
|
|
|
|
"ext.cite.a11y.js",
|
|
|
|
"ext.cite.highlighting.js",
|
|
|
|
"ext.cite.tracking.js"
|
|
|
|
],
|
|
|
|
"styles": [
|
|
|
|
"ext.cite.a11y.css",
|
|
|
|
"ext.cite.highlighting.css"
|
|
|
|
],
|
|
|
|
"messages": [
|
|
|
|
"cite_reference_link_prefix",
|
|
|
|
"cite_references_link_accessibility_label",
|
|
|
|
"cite_references_link_many_accessibility_label",
|
|
|
|
"cite_references_link_accessibility_back_label"
|
|
|
|
]
|
2015-04-30 18:45:20 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"ResourceFileModulePaths": {
|
|
|
|
"localBasePath": "modules",
|
|
|
|
"remoteExtPath": "Cite/modules"
|
|
|
|
},
|
2020-05-11 20:34:44 +00:00
|
|
|
"QUnitTestModule": {
|
|
|
|
"localBasePath": "modules/ve-cite/tests",
|
|
|
|
"remoteExtPath": "Cite/modules/ve-cite/tests",
|
|
|
|
"scripts": [
|
|
|
|
"ve.dm.citeExample.js",
|
|
|
|
"ve.dm.Converter.test.js",
|
|
|
|
"ve.dm.InternalList.test.js",
|
|
|
|
"ve.dm.Transaction.test.js",
|
|
|
|
"ve.ui.DiffElement.test.js",
|
|
|
|
"ve.ui.MWWikitextStringTransferHandler.test.js"
|
|
|
|
],
|
|
|
|
"dependencies": [
|
|
|
|
"ext.cite.visualEditor",
|
|
|
|
"test.VisualEditor"
|
|
|
|
]
|
|
|
|
},
|
2019-10-24 08:37:46 +00:00
|
|
|
"attributes": {
|
|
|
|
"CodeMirror": {
|
|
|
|
"TagModes": {
|
|
|
|
"ref": "text/mediawiki"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"EventLogging": {
|
|
|
|
"Schemas": {
|
2019-10-24 14:56:18 +00:00
|
|
|
"ReferencePreviewsBaseline": 19489336,
|
|
|
|
"ReferencePreviewsCite": 19489328
|
2019-10-24 08:37:46 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"VisualEditor": {
|
|
|
|
"PluginModules": [
|
|
|
|
"ext.cite.visualEditor"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-02-17 21:55:48 +00:00
|
|
|
"ConfigRegistry": {
|
|
|
|
"cite": "GlobalVarConfig::newInstance"
|
|
|
|
},
|
2015-04-30 18:45:20 +00:00
|
|
|
"config": {
|
2019-10-24 08:42:35 +00:00
|
|
|
"CiteBookReferencing": {
|
|
|
|
"description": "Development feature flag for Book Referencing, a way to nest citations. Please don't enable in production.",
|
|
|
|
"public": true,
|
|
|
|
"value": false
|
|
|
|
},
|
2019-10-24 08:37:46 +00:00
|
|
|
"CiteVisualEditorOtherGroup": {
|
|
|
|
"public": true,
|
|
|
|
"value": false
|
|
|
|
},
|
|
|
|
"CiteResponsiveReferences": {
|
|
|
|
"public": true,
|
|
|
|
"value": true
|
|
|
|
}
|
2019-09-20 13:03:16 +00:00
|
|
|
},
|
2019-11-19 14:12:11 +00:00
|
|
|
"AutoloadNamespaces": {
|
|
|
|
"Cite\\": "src/"
|
2015-04-30 18:45:20 +00:00
|
|
|
},
|
2015-07-05 12:32:44 +00:00
|
|
|
"TrackingCategories": [
|
|
|
|
"cite-tracking-category-cite-error"
|
|
|
|
],
|
2019-10-24 08:37:46 +00:00
|
|
|
"manifest_version": 2
|
2015-04-30 18:45:20 +00:00
|
|
|
}
|