Page MenuHomePhabricator

WS Export: Don't show sidebar links in Page and Index namespaces
Open, Needs TriagePublic


It's never very useful to export a single Page namespace page, or an Index page, so the sidebar links should be removed from these namespaces.

Note: the ProofreadPage extension adds Index and Page as $wgContentNamespaces.

Event Timeline

Samwilson created this task.Sat, Feb 6, 4:57 AM
Restricted Application added a project: Community-Tech. · View Herald TranscriptSat, Feb 6, 4:57 AM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Xover added a subscriber: Xover.Sat, Feb 6, 8:56 AM

Let me throw an extra angel on the head of this needle: a user might conceivably want to export a work when currently on a wikipage in these namespaces, and a user might conceivably want to export a single page, as defined by a Page: wikipage, of a work.

The Index: seems a reasonable place to want to start a download (export) of a whole work, or of a selected subset of it. The front matter of a century old book is not good user interface, but a progressively enhanced Index: page could be. And since a Page: wikipage is how we define the "page" unit of a work, anyone that wants to grab "only the page with that poem I love" are by proxy wanting to export a wikipage in Page:.

I don't think any of these are use cases we should currently worry about, and we should absolutely remove the links from Index:/Page: for right now, but it's worth keeping in mind to avoid hard-coding too many assumptions.

If they want to build a work, wouldn't we encourage them to use the old PDF build tool.

Plus what can they do from the Index page? None of the configuration exists to get the stream of subsidiary pages. If we want to do a whole work from the page, we add a top link. If they want a part, go to the part in main ns and grab it.