Page MenuHomePhabricator

Magic word to suppress breadcrumb links in subpages
Open, Stalled, LowPublicFeature

Description

Request:
A new magic word, __NOBREADCRUMBS__ be created to suppress display of breadcrumbs at the top of a subpage.

Use case:
When a page title has a / in it, but isn't a subpage of the 'parent‘ page, this would be helpful in suppressing the link. For example, Talk:A/B testing shouldn't be treated as a subpage of Talk:A, and thus shouldn't have the breadcrumbs.

Acceptance criteria:
A page tagged as __NOBREADCRUMBS__ does not display breadcrumbs linking to the parent pages of the sub page, either by

  • Using CSS to mark it as display: none, or
  • Not including it in the output of the parser

The page's sort key, etc. should not be affected; this is a purely visual change

Event Timeline

DannyS712 subscribed.

@John_M_Wolfson am I understand this to be:

  • If a page is tagged as __NOBREADCRUMBS__
  • then apply a style sheet
  • that specifies
CSS
span.subpages {
     display: none;
}

@DannyS712 Yes, that would be correct. Make it as global as possible, across skins and wikis, etc., but that's the general idea. Thanks for doing this!

@DannyS712 Yes, that would be correct. Make it as global as possible, across skins and wikis, etc., but that's the general idea. Thanks for doing this!

In that case, having looked over the SubpageSortkey extension, I don't think this is within the scope of that extension; the request explicitly makes it clear that the magic word should not affect the sortkey of a subpage. Can I change this to be a feature request in mediawiki core?

Yes, you may. Sorry about that, I'm fairly new here.

DannyS712 moved this task from Inbox to Feature Requests to Review on the Platform Engineering board.
DannyS712 changed the subtype of this task from "Task" to "Feature Request".
DannyS712 updated the task description. (Show Details)
DannyS712 changed the task status from Open to Stalled.May 31 2020, 12:16 AM
DannyS712 moved this task from Next to Later on the User-DannyS712 board.

Awaiting product approval

DannyS712 removed DannyS712 as the assignee of this task.EditedJul 5 2021, 4:18 PM

Unlicking. {{ping}} to Platform Engineering - this has been in "Feature Requests to Review" since 31 August 2019, would you mind taking a look?