Commit graph

40 commits

Author SHA1 Message Date
Translation updater bot 6e1b2c8be8 Localisation updates from https://translatewiki.net.
Change-Id: Id77ec86541c52e8883a22a6aa585c5b0da61ef50
2023-06-14 13:06:17 +02:00
Svantje Lilienthal da30b2b626 Add extends warning to reference dialog
To warn users when they are editing a sub-reference we
add a warning containing the text of the parent reference.
This is hidden behind a feature flag.

Bug: T247922
Change-Id: I3749683d8a18e502bf16e5bd5f2fe385581625be
2023-06-12 16:24:58 +00:00
Translation updater bot 61ae890e2a Localisation updates from https://translatewiki.net.
Change-Id: I036398ae88af1bd3cf57a94ee1d78472b62d8fc1
2023-06-02 09:23:25 +02:00
Translation updater bot a54a251e1e Localisation updates from https://translatewiki.net.
Change-Id: I333c57a82638de816a39946de8b8b49e5f143041
2023-06-01 08:42:56 +02:00
Svantje Lilienthal 227b50d964 Adding extendsRef to reference model
* reads the new attribute extends from wikitext
* saves it into the reference model
* adds a message to the VE popup of an extension as a first demo
* tests will be added in a separate patch

Bug: T247922
Change-Id: If4d309c4678022642f39e21565950dc45e557d47
2023-05-30 11:56:47 +02:00
jenkins-bot d1ed02e21d Merge "Fix icon of re-use reference tool" 2023-02-22 17:58:49 +00:00
Ed Sanders f292da4254 Fix icon of re-use reference tool
Also update documentation in qqq.json with newer icon names.

Change-Id: I3cefe65c78e9438a7d29fbcd436ffad043d500e2
2023-02-11 14:07:01 +00:00
Translation updater bot 7e1805ea45 Localisation updates from https://translatewiki.net.
Change-Id: I1c92edb31b7d99f96b4858a677a9440d63f598d7
2022-07-07 08:50:02 +02:00
Amir Aharoni 94166f93b3 Change the button "Basic form" to "Basic"
This button has the same function as the menu item
"Cite -> Basic" on sites that don't have Citoid configured.

Bug: T108713
Change-Id: I8b419ecdc3b0206974c5f413bfd2e35873fe9850
2021-05-31 11:46:24 +03:00
jenkins-bot f9f81bd93f Merge "MWReferenceNode: Ignore changes to reference list index" 2021-02-03 14:46:31 +00:00
Translation updater bot 88de96c8ff Localisation updates from https://translatewiki.net.
Change-Id: Iddd38f48b3864a03fcbcc4c2508ae52e034f05f9
2021-02-01 08:47:08 +01:00
Ed Sanders c763fb5cc3 MWReferenceNode: Ignore changes to reference list index
This means that all reference nodes are treated as comparable
in the diff (provided they are in the same group) so will
not show up in the article diff if their index changes.

Changes to the reference list are already handled separately
by the visual diff.

Bug: T170235
Change-Id: I8c26686d7b2fe3bf91af7d4dcab1caf3247dbe47
2021-01-21 14:40:15 +00:00
Ed Sanders 6e3eedd40a Show reason and/or date in CitationNeededContextItem
Bug: T270107
Depends-On: I7fdd4810118e72b9719b840fa5e0887006a74a25
Change-Id: I873fb28f5e8fbac469f0fe050818c58dc782fea9
2020-12-14 08:06:02 -08:00
Translation updater bot 013fff9c9b Localisation updates from https://translatewiki.net.
Change-Id: Ie3c50e679bb38cb16a6dc5601621f1597c0d7613
2020-04-07 08:37:41 +02:00
Ed Sanders 659d461806 Citation needed template handling
Bug: T211243
Depends-On: I82124b24cc9edbbfc41dedc72452cbb583051cf8
Depends-On: Icfc39e350452da238d0e0c17cb2305c60d9ca16a
Change-Id: Ic443c1ae759a058673b71e47f09f2a7d219fc12e
2019-08-30 13:13:37 +01:00
Bartosz Dziewoński 17555dd934 ve.ui.MWReferenceDialog: Remove 'Use an existing reference' button
The same functionality is available using the 'Cite → Re-use' tool
on the toolbar (T214991).

We want to use the same location for a new 'Replace reference' button,
to be implemented in the Citoid extension (T208981).

Bug: T208981
Bug: T214991
Change-Id: I511e3c27a7d2175bdc2b6bdb648f04ac96cd1e0b
2019-02-26 00:30:56 +01:00
Bartosz Dziewoński 2286e5fde1 Improve warning that reference is reused
* Show the warning in the context menu (on desktop only) in addition
  to the reference dialog.
* Add more details to the warning in reference dialog, and adjust
  spacing around it to make it more noticeable.

Bug: T208981
Bug: T212609
Depends-On: I6ca605ddd580d6259952c8799ecdca08da07474a
Change-Id: I23cc02f651c15b3276613d32a0c2537032f731c2
2019-01-10 02:01:09 +01:00
Amir Aharoni af28eed881 Add "twice" instead of "2 times" in an English message
Change-Id: I53de963d71015dfd26692241b2a0ea5630be080c
2018-12-10 08:52:36 +02:00
Translation updater bot 86bf110048 Localisation updates from https://translatewiki.net.
Change-Id: I0d4260c2bd9121a41ad9598f57edb6001748e186
2018-11-07 22:21:58 +01:00
Translation updater bot 93119f7c59 Localisation updates from https://translatewiki.net.
Change-Id: I538628d8b20ae8b81b3b246ef216a0a1532babb2
2018-04-14 22:13:46 +02:00
Thalia a2722ca947 Add separate message for missing reference in references list
Message indicates that a preview of the reference is missing,
instead of implying that the user was trying to edit it.

Bug: T188682
Change-Id: I5f5f8d5d0910ab2608696bbed380d4592cb6c7f1
2018-03-24 17:32:55 +00:00
James D. Forrester 43344b56b0 VisualEditor: Describe reflist responsiveness changes too
Bug: T160589
Change-Id: Idb590bf0f3edbe8d056f544a148323da30211467
2018-02-22 16:01:46 -08:00
Ed Sanders 495d9420f0 Treat template-generated reference lists as real ones
This will allow them to auto-update, and be used in the
visual diff.

We record a templateGenerated attribute to prevent them
being edited, and to ensure they roundtrip back to
templates.

Bug: T52769
Change-Id: I4460d2c98166581e942e35921b20091990f5f6c7
2018-02-07 10:48:57 +00:00
Ed Sanders a3a4bd945b VE: Support 'responsive' attribute
Bug: T53260
Change-Id: I1e0ae39e8c30653b7ba0f537723a4bcd79ac3162
2017-09-19 17:03:39 +01:00
Thalia ed8b563add VisualDiff: Show less information about ref nodes
If a ref node is highlighted as changed because its index
has changed (e.g. because an earlier reference was inserted
or removed), describe this more elegantly.

Bug: T170235
Bug: T171377
Change-Id: I2513bb82099a92529516e4e217e61a2d0a2dd43b
2017-09-05 14:01:39 +01:00
Translation updater bot c04825e958 Localisation updates from https://translatewiki.net.
Change-Id: I8a46615690b6a63bd0d7203ba6b9648adcc51a19
2017-08-19 08:48:59 +02:00
Translation updater bot 65230fbe9d Localisation updates from https://translatewiki.net.
Change-Id: I44bdceff6755a8b1c96027ee9f48ab7f21f246d3
2017-06-27 22:18:54 +02:00
jenkins-bot 8b3ca486a6 Merge "Visual diff: Show correct reference indices in diff" 2017-06-26 19:35:32 +00:00
Thalia 1a5d90b4e3 Visual diff: Show correct reference indices in diff
Bug: T162819
Change-Id: I7eec4ee12a24ff99388cc0c95a24d50f321511f9
2017-06-26 19:19:03 +00:00
James D. Forrester 347f21d11e VisualEditor: Add a placeholder to MWReferenceDialog to make it less awful when empty
Change-Id: I086d7243127ee411ea043bf29f4d4a5ae5d657a0
2017-06-17 01:21:48 +00:00
James D. Forrester 9a17d9342b Describe group changes for references and references lists
Bug: T160589
Change-Id: Ifccafdf08704f67027dae2703ff2ded809fb6ab7
2017-05-20 14:26:58 +00:00
Translation updater bot b9843c74fa Localisation updates from https://translatewiki.net.
Change-Id: Ie577da1b742c285e1d6b9f40fe9c2446854a95ec
2016-12-12 22:21:24 +01:00
Translation updater bot 81e2b44237 Localisation updates from https://translatewiki.net.
Change-Id: Ia776dda01b67496ef1ef31c63e3574bea7776f30
2016-07-09 22:52:23 +02:00
Translation updater bot 72f10b4149 Localisation updates from https://translatewiki.net.
Change-Id: I29befc53eb910fd306d93806f80f88e84260d0f2
2016-07-01 23:17:54 +02:00
Alex Monk 724d890541 Make it possible to send VE cite toolbar items to the 'insert' (other) group
To be merged with Ifd688ae6

Bug: T133727
Change-Id: Ic87f996f2a95ffe89999384c48f11745f251db0e
2016-06-29 13:36:14 +01:00
Translation updater bot 78afade8ec Localisation updates from https://translatewiki.net.
Change-Id: I69e2265e4fdfd1a611ec8039cdaa79b5c5620984
2016-06-26 14:13:42 +02:00
Translation updater bot 81210678cf Localisation updates from https://translatewiki.net.
Change-Id: I764d701484ce8202e1bead2a739e203f0a34e06e
2016-06-25 14:50:15 +02:00
Alex Monk 24f2d64edd Make visualeditor-cite-tool-definition.json always exist, rename to cite-tool-definition.json
Bug: T138573
Change-Id: I454380c392feea55483d00d4b7eec45bce04ff53
2016-06-25 00:37:20 +01:00
James D. Forrester f7d5029426 i18n: Grab last few i18n updates from VE after the move
Change-Id: Ib71727e9c93b426dca8eb15e1bca9f745e3ef205
2016-02-05 14:04:29 -08:00
Ed Sanders 18f616b9b8 VisualEditor: Move code for Cite into this repo
This code has been developed over three years now in the repo of MediaWiki's
integration of VisualEditor. It has grown and developed significantly during
that time, but now is pretty stable. A number of hacks inside the MediaWiki-
VisualEditor code base have been used to prevent this code from being loaded
on wikis where the Cite extension is not deployed, but this state of affairs
is and always was meant to be temporary.

This code is under the MIT licence which is a tad messy, but not impossible.
It's clearly labelled as such. The list of authors has been updated to take
into account the influx of new functionality.

Bug: T41621
Bug: T104928
Change-Id: I39936ed83d5a60471a0a75da753f498e80aef234
2016-02-04 08:41:54 -08:00