Page MenuHomePhabricator

Lint the entire page instead of the three fields separately for ProofreadPage Page: pages
Open, Needs TriagePublicFeature

Description

Feature summary

Currently, in PRP's "Page:" namespace (ns104 on enws), the wikitext linter lints the three fields each on their own.

It would be more useful if it linted the complete page (~= the concatenation of the three fields, there must be some PRP function which exposes this).

Use case(s)

The issue with this is that it's extremely common to need a container spanning multiple pages. The usual way of doing so is having a setup like this:
page 1's body: [open container] content1
page 1's footer: [close contaner]
page 2's header: [open container]
page 2's body: content2 [close container]
When transcluded, it gives page 1's body followed by page 2's body, so [open container] content1 content2 [close container]

It's not invalid markup in Page:space given a PRP page is essentially the concatenation of the three fields.
But currently CM flags lints on these pages.
This would involve somehow unifying the linting for the three fields, I don't know if that's doable but it would be nice (mismatched tag linting is very useful on WS with all our complicated markup, so the added noise is annoying).

Event Timeline

I will not call it undoable, but it seems to me really difficult as it requires good understanding of both ProofreadPage and CodeMirror. Maybe we should consider a workaround instead at least for now? Do you have any alternative suggestions to mitigate the annoyance?

I will not call it undoable, but it seems to me really difficult as it requires good understanding of both ProofreadPage and CodeMirror. Maybe we should consider a workaround instead at least for now? Do you have any alternative suggestions to mitigate the annoyance?

Well, I recognize this might be hard, I just wanted to write this down somewhere as a nice-to-have. It's not that annoying and we've gotten used to living with tools which don't adapt correctly to PRP. I don't have other ideas, no.

Perhaps something similar to T420323: Allow to disable a wikitext lint error locally could be a simpler route to take with this?

Missing-end-tag and stripped-tag lints are quite useful to our work, so I'd rather continue with added noise than lose that information altogether.

I find the different part linting useful in diagnosing issues with some multi-page layouts. It would be longer term nice to have a "lint what's transcluded" switch.

(The related LintHint script I use frequently is also not aware of CodeMirror as such, making it more interesting "negotiating" where an error actually is.

CodeMirrors linting skills also sometimes differ from what LintHint (or a transclusion finds.

(Aside: currently the Linter /Proofread page combination cannot identify which of a series of transcluded pages (or LST sections) is responsible for a lint, I did not expect it to be, it was never designed with the specific Wikisource use case in mind).