Page MenuHomePhabricator

etwikisource: Missing (previous, next) links in article headers and footers
Open, Needs TriagePublic

Description

https://et.wikisource.org/wiki/Daani_hindamise_raamat%2FKuusalu?useparsoid=0
https://et.wikisource.org/wiki/Daani_hindamise_raamat%2FKuusalu?useparsoid=1

Expected behaviour:
Both pages should have had links for the previous and the next page in the header and footer

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change #1333286 had a related patch set uploaded (by Arlolra; author: Arlolra):

[mediawiki/extensions/ProofreadPage@master] [WIP] Add a test for poem wrapping toc for header

https://gerrit.wikimedia.org/r/1333286

The index page has content wrapped in a poem,

{{Keskel|'''Sisu'''}}
<poem>[[Daani hindamise raamat/Harutused|''Liber census Daniae'' ja harutused ta kohta]]
[[Daani hindamise raamat/Raamatu ülesanne|Raamatu ülesanne]]
[[Daani hindamise raamat/Nimed|Nimed]]
[[Daani hindamise raamat/Külad ja mõisad|Külad ja mõisad]]
[[Daani hindamise raamat/Kirjawiis ja keel|Kirjawiis ja keel]]
''Liber census Daniae'' — Daani hindamise raamat
[[Daani hindamise raamat/Estonia|''Estonia'']]
''Haeriae'' = Harju maakund
...

The PagesTagRendererTrait preprocesses that wikitext to get the prev and next links,
https://github.com/wikimedia/mediawiki-extensions-ProofreadPage/blob/master/includes/Parser/PagesTagRendererTrait.php#L451-L454

The Parsoid implementation kills the markers though, so the poem content is effectively dropped,
https://github.com/wikimedia/mediawiki-extensions-ProofreadPage/blob/master/includes/Parser/ParsoidPagesTagParser.php#L105

Demonstrated in the test above

We're recommending etwikisource use a bot or user script to fix up instances of this construction on their wiki.