I noticed that this edit broke multiple named references. For example "Lynch02" is turned into "Lynch022", but its definition isn't renamed. So it gives the error message "The named reference Lynch022 was invoked but never defined". Is this caused by VisualEditor? Is it a known bug? I didn't make that edit and wasn't able to recreate the bug.
VisualEditor/Feedback
It seems to me someone just edited the page and made a mistake when modifying a reference. Mistakes happen, it's a wiki.
No, it's a VE "bug". It has been reported for years but the VE implementers like to think it is a "benefit" and don't do anything about it. It occurs when you copy content with named citations between articles. If the citation name already exists in the destination article, VE assumes the incoming citation is a different citaton which must therefore have a different citation name and silently adds "2" (or "3" or ...) to make the citation name unique rather than reuse the existing citation. This may or may not be what the user wants, particularly if they are copying a number of bits of text from one article to another (when you usually want them to continue to share a citation). You really need a pop-up at that point to ask if the user wants to re-use the citation in the article already or create a separate one. This should be done showing the user the existing citation and the incoming citatation. As it is currently (and silently) implemented, you can end up with name, name2, name3, name4, all with the same citation because of the assumption they must all be made different. For me personally, it is a "bug" that creates an annoying number of duplicated citations over time in an article.
I'm hoping adding categories could be improved in VisualEditor. Sometimes I copy and paste categories from somewhere else. I can't edit the name categories in VE though. eg. I paste "Australian companies established in 1997" and want to just change the year.
Secondly, I hoping the category search could be better. Right now I have to be very precise with what I type (different behaviour from adding a link to a article). I can't just type "Australian established 1997", I would have to type "Australian companies established in 199" to get a matching suggestion.
> I paste "Australian companies established in 1997" and want to just change the year.
I don't understand.. why can't you edit that ? There is no cursor in the text input to do so ?
> I have to be very precise This is going to be a problem even with search. There are a LOT of categories, so even with search it is very likely you are going to get a lot of noise in your search results. It should be possible however to allow for at least typos, if VE would use prefix search instead of title prefix matching. I have filed a ticket for that in phab:T359302.
I've also been thinking that one of the problems with adding categories, is that you can not choose a higher or lower level categories from a match. It might be a good idea if you could navigate the tree from the Category input field.
Thanks for creating that ticket.
Regarding the first point... actually the scenario where I encountered that issue was I copied the source of one article to use as a starting point for another article. But when I switch to VE, I can't edit the categories.
The point I was trying to make was once a category is entered, it cannot be edited in VE. It would be great if they were editable.
You can edit the categories in VE by going to the drop down menu at the top right (three horizontal lines) and choosing: Categories. Or simply by clicking the previewed categories. You can then remove incorrect categories and add new ones.
Thinking about it again, I suspect that your problem is that when you are in the categories dialog, you don't want to have to type out from scratch the category name that you want ? This is why you speak of modifying (technically, there is no such thing, each category spelling exists and each of them is a valid category). I guess this would be helped if you could at least copy the text of the 'wrong' category name, but this is currently not possible in the dialog.
Yeah, I was talking about the categories dialog and editing each individual category. It isn't very flexible at the moment. :/
I agree. I find it easier to switch into source mode to edit categories than to do it in VE. Or use HotCat and don't bother with any editor. When you are in the category-edit pop-up in VE, you see a category name with a down arrow to the right which currently takes you a popup with a textbox for the sort key. What if it took you to a popup with two textboxes, one with the category name as editable text and the other as the sortkey? That might be a solution for the VE users.
see: https://github.com/StarCitizenTools/mediawiki-skins-Citizen/issues/829
Steps to reproduce the behavior:
- Install the theme according to https://www.mediawiki.org/wiki/Skin:Citizen/zh#Configuration.
- In LocalSettings.php, set
wfLoadSkin( 'Citizen' ); $wgDefaultSkin = "Citizen";
- A warning appears at the top of the page.
- See error
Expected Behavior
When I installed the Citizen theme and enabled it, a warning appeared at the very top of the page:
Warning: Array to string conversion in D:\phpstudy_pro\mediawiki-1.41.1\extensions\VisualEditor\includes\Hooks.php on line 889
System
Please complete the following information:
- MediaWiki version v1.41.1
- Server OS: Win10
- Installed extensions and versions SemanticMediaWiki4.1
- PHP version PHP 8.0.2 (cli) (built: Feb 3 2021 18:36:37) ( NTS Visual C++ 2019 x64 )
When you use the VisualEditor to copy a cell or a row in a table that has an |style="text-align: left;" | attached to it, to overrule the entire table's alignment, the style alignment isn't copied with the cell's content. Then, there is no way in the formatting tools to assign an alignment setting to the cell. Can this please be added? Be ideal if you could format an entire column, but even cell by cell would be useful.
At this time, that type of formatting can only be done in a wikitext editor.
If anyone in the future finds this like I did in October 2023: the only way to add cell formatting such as centering the text is still by editing the source code (wikitext editor). It can not be done in the Visual Editor.
It would be great to have centering available in visual editing
- Agent utilisateur : Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:94.0) Gecko/20100101 Firefox/94.0
URL : https://fr.wikipedia.org/wiki/Droit_de_l%27avortement?veswitched=1&veaction=edit&oldid=186395372
Chaque fois que j'essaie de mettre des sources, rien ne se passe. Je voudrais savoir comment le régler. Dans les autres langues je n'ai pas ce problème.
When editing Enrico Kolling (https://en.wikipedia.org/wiki/Enrico_K%C3%B6lling) I made a mistake and accidentally linked the disambiguation page for Bernau. Not a problem. The problem comes when I tried to fix it. If I'm in VE, I can't correct links in this section (https://en.wikipedia.org/wiki/Enrico_K%C3%B6lling#Professional_boxing_record).
I fixed it in wiki text but I'm wondering if there is a way in VE. ~~~~
Do you mean that, because they're wrapped using a template, you can only edit them as wikitext? If so, sadly that's a very long-known missing feature, T52355.
Hi, yes, I think that's what I mean. Thanks for answering :)
Upgraded a 1.39.4 to 1.40.0
When editing with the VisualEditor, category tags like [[Category:System]]
are converted and saved as [[index.php?title=Kategori:System]]
. This of course breaks the page categorising. It's possible to re-edit the page, re-categorise it and it works but it will break again on the next edit.
The WikiText editor does not exhibit this behaviour. It correctly handles the category tags.
Restored the 1.39.4 from backup and tried re-installing a few times, but the upgrade to 1.40.0 produces this unwanted behaviour all times.
Here's rest of the software versions.
Produkt | Version |
---|---|
MediaWiki | 1.39.4 |
PHP | 8.2.9 (cgi-fcgi) |
MariaDB | 10.10.2-MariaDB |
ICU | 71.1 |
Lua | 5.1.5 |
Pygments | 2.16.1 |
Browser used is Chrome Version 116.0.5845.110 (Officiell version) (arm64) on MacOS.
Since you are running your own wiki, you might ask at the Project:Support desk.
i got the same problem
Freshly installed yesterday and can confirm this very annoying behaviour
Experiencing the same issue. Any solution?
MediaWiki 1.40.1, VisualEditor 0.1.2, issue witnessed. We plan to update MW to latest soon to find out if that fixes it. I can't tell the VE version that appears in ME vs the VE version that is posted on these pages.
+1 on this issue. Very annoying.
Yup. can confirm and is very frustrating
Is the issue present in 1.41?
Yes, Issue still present in version 1.41.0. This is indeed very annoying.
MediaWiki 1.41.0, VisualEditor 0.1.2
Fresh installation, issue witnessed.
Happy new year!
On my wiki site, only the main namespace can use the visual editor. How can I use it in other namespaces?
Thanks.
This text was generated by machine translation(DeepL).
The bug occur when I am editing Chinese Wikipedia using VisualEditor. When I try to add link or citation to my page it always redirect me to the page https://zh.wikipedia.org/w/undefined which makes me unable to edit anythings. How can this problem be solved? Thank you.
P.S. I have tried serval times on other Languages' Wikipedia (e.g. English and Japanese) and no problem show up. Seems this bug only occur in Chinese Wikipedia.
P.S.2 The problem only occur on desktop version but not mobile version.
now the problem is fixed
VisualEditor has messed up hundreds or thousands of infoboxes in recent years. Please fix this problem.
I previously reported this at [[Wikipedia talk:VisualEditor]] in September 2023, but no one responded. At that time, I reverted the following 2 edits createded by VisualEditor.
~~~~
If you are referring to the changes in indentation, then this is caused by the authors of infobox settlement defining a specific formatting to be followed by VE, so VE complies with that.