T152540: Migrate to HTML5 section ids is concluded on my books, as far as MediaWiki support goes. Now we need to roll it out to WMF. I'm going to flip migration mode on test wikis today, the rest of the timeline is up for discussion.
Description
Details
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | MaxSem | T75092 Anchors to section names for non-ASCII letters are encoded in the URL | |||
Resolved | matmarex | T172493 mw.util.escapeId should log deprecation warning | |||
Resolved | MaxSem | T152540 Migrate to HTML5 section ids | |||
Resolved | MaxSem | T175725 Deploy HTML5 sections to WMF production | |||
Resolved | Johan | T176828 Tell wiki communities about deployment plan for Unicode Section IDs | |||
Resolved | MaxSem | T179079 Enable HTML5 section ids in ruwiki | |||
Resolved | MaxSem | T90902 Non-breaking space in header ID breaks anchor | |||
Resolved | MaxSem | T179544 Some characters in HTML5 fragments mess with wikitext | |||
Restricted Task | |||||
Resolved | MaxSem | T29694 Reference names can't contain square brackets in HTML5 fragment mode | |||
Resolved | MaxSem | T181575 Interwikis always link to legacy fragments in WMF production |
Event Timeline
Change 377527 had a related patch set uploaded (by MaxSem; owner: MaxSem):
[operations/mediawiki-config@master] Start migration to HTML5 sections on test wikis
Change 377527 merged by jenkins-bot:
[operations/mediawiki-config@master] Start migration to HTML5 sections on test wikis
Mentioned in SAL (#wikimedia-operations) [2017-09-12T21:49:13Z] <maxsem@tin> Synchronized wmf-config/InitialiseSettings.php: https://gerrit.wikimedia.org/r/#/c/377527/2 T175725 (duration: 00m 49s)
Change 386553 had a related patch set uploaded (by MaxSem; owner: MaxSem):
[operations/mediawiki-config@master] Enable Unicode section links on Russian projects
Change 386710 had a related patch set uploaded (by MaxSem; owner: MaxSem):
[operations/mediawiki-config@master] Enable Unicode section links on mediawiki.org
Change 386553 merged by jenkins-bot:
[operations/mediawiki-config@master] Enable Unicode section links on Russian projects
Change 386710 merged by jenkins-bot:
[operations/mediawiki-config@master] Enable Unicode section links on mediawiki.org
Hey, the following problems have emerged:
- <ref>'s with [] in name parameter are rendered incorrectly, while everything was ok before the change.
<ref name="[]">text</ref> is displayed like this:
{} works fine. <> doesn't work fine, but it didn't work fine before the change too.
Section headings with [] work fine.
- I guess, not the problem of this task, but still. Non-breaking spaces in the same parameter worked fine before, don't work now. We have T90902: Non-breaking space in header ID breaks anchor about this.
<ref name="smth smth">text</ref> (non-breaking space between smth) doesn't work now.
We should probably limit the characters allowed for reference names explicitly in Cite.
A little correction. I said, "<> doesn't work fine, but it didn't work fine before the change too", but when used via Scribunto (frame:extensionTag), <> can be used. And it works.
One more point. Given the fact that [] and {} can't be used in wikilinks, should {{#anchorencode}} & mw.uri.anchorEncode convert them to percent-encoding (or HTML entities)?
...Note that [[#%5B%5D]] and [[#[]]] are both rendered as "#[]" in the browser and point to #[] fragment.
Next one. After saving a section, you are redirected to a page with an anchor percent-encoded, like https://ru.wikipedia.org/wiki/<Page_name>#%D0%9F%D1%80%D0%B5%D0%B4%D0%B2%D0%B0%D1%80%D0%B8%D1%82%D0%B5%D0%BB%D1%8C%D0%BD%D1%8B%D0%B9_%D0%B8%D1%82%D0%BE%D0%B3.
"After saving a section" - Yes, after section editing and pressing "Save changes"
before HTML5 sections https://ru.wikipedia.org/wiki/Википедия:Песочница#.D0.9F...
with HTML5 sections https://ru.wikipedia.org/wiki/Википедия:Песочница#%D0%9F...
it's because of the browser or mediawiki?
Submitted the stuff reported here as T179520: Users are redirected to percent-encoded section fragments after section editing and T179544: Some characters in HTML5 fragments mess with wikitext.
New links enadled in the ru.wikipedia and ru.wikisource, but link between projects from ru.wikipedia to ru.wikisource generates an old link with an encoding (also from en.wiki to ru.wiki )
[[:s:Уголовный кодекс Российской Федерации/Глава 1#Статья 2]] https://ru.wikisource.org/wiki/Уголовный_кодекс_Российской_Федерации/Глава_1#.D0.A1.D1.82.D0.B0.D1.82.D1.8C.D1.8F_2
so all projects with html5 sections in their template:anchor should create two links - a new one and an old one with an encoding.
maybe for convenience create a new magic word {{anchorencode:string|OLD}}?
Change 394104 had a related patch set uploaded (by MaxSem; owner: MaxSem):
[operations/mediawiki-config@master] Switch all wikis to HTML5 section IDs
Change 394104 merged by jenkins-bot:
[operations/mediawiki-config@master] Switch all wikis to HTML5 section IDs
I didn't actually deploy the above change because the wikis are still running wmf.8, it'll have to wait.
Change 394460 had a related patch set uploaded (by MaxSem; owner: MaxSem):
[operations/mediawiki-config@master] Switch all wikis to HTML5 section IDs
Change 394460 merged by jenkins-bot:
[operations/mediawiki-config@master] Switch all wikis to HTML5 section IDs