Motivation
Right now, we add the url of the source to the edit summary, but this might not always work, e.g. if the url is longer than the edit summary limit.
Acceptance Criteria
- The url in the edit summary is a link to that url
Motivation
Right now, we add the url of the source to the edit summary, but this might not always work, e.g. if the url is longer than the edit summary limit.
Acceptance Criteria
I believe only internal links are rendered in the edit summary, so external links would still have to be normal text.
https://en.wikipedia.org/wiki/Help:Edit_summary#Edit_summary_properties_and_features
I can confirms this. External URLs cannot be transformed into links. This can easily tested when using the Preview on edits. You will get an preview of the edit summary as well.
Ok I just realized that interwiki links are possible. See this screenshot from commons and a file from English Wikipedia:
So this task is could be done. I would increase the story points though, since we need to build something ( or find something ) to construct these interwiki links.
I started looking into this some more and fiddled mostly with my local setup to make this testable and reproduceable. While doing that I realized one thing:
Creating interwiki links with [[]] and the parser does not work with more than one dimension of interwiki-ness. This means, when linking on Commons:
What that means:
So when importing files from Wikipedia to Commons in the Wikimedia setup we can indeed point to the specific file with [[LANG:FILE:NAME]], but when importing from other projects that have multilingual sub wikis that won't work.
The question now would be: Do we want to have the short special links for Wikipedia or do we rather want to go for the full URL so we have it identical for all cases? @Lea_WMDE
Thanks for the research, @WMDE-Fisch! I would say, let's just go with the full URL for now, and keep the work small.
Stalled for now and the MVP. A comment with link to the investigation is in the wish doc.
Using link like [[wikt:de:Paris]] on Commons seems to bring me to the right place (German Wiktionary), eventhough technically it's redirected via English Wiktionary. That kind of links seem to be used for edit summaries for imports done via Special:Import already, e.g. here. Is that problematic?
Hey @Pikne, you're right about that. The ticket is not up to date in that regard because it's still marked as stalled. While testing this I missed the fact, that Interwiki linking work with multiple steps where the first wiki resolved can take care of any further steps. The bit more complicated part is to find the whole "path" to the source wiki. But we solved that in a first version. - See also T194644
I will change the ticket status, it's already in the Futer considerations column on the workboard.
Now this concerns log comments too.
I note that page titles in wiki links for revision imports (e.g. here) are not encoded. So doing the same here would also improve readability and for some cases save considerable amount of space (e.g. for this file import), besides making navigation easier.
And now there are also URLs in source wiki edit summaries (T227358). In addition to edit summaries and log comments on target wiki, those would also benefit from clickable wikilinks. Does that warrant a separate task?
The original request is about filenames in the edit summary. So the link will always be [[:c:File:<name on Commons>]]. The benefit of a clickable wikilink is that it is much faster to navigate to the new location. Personally I have never thought the long edit summary was a problem but I can see the benefit of a wikilink I can click on. (I just realized that this is an old ticket. I thought it was related to one about making edit summary shorter on source wiki)