Page MenuHomePhabricator

Separate page title rendering from subpage syntax
Open, LowPublicFeature

Description

Author: mgrojo

Description:
Subpages are perfect for organizing chapters inside books in Wikibooks. But some
users are unhappy with how the page level 1 header is rendered using exactly the
same syntax than the used for linking.

It should be a way to display the superpage and subpage titles in a more
aesthetic and more typical form for a book. One way would be to divide the
header level 1 in one line per each superpage and subpage, or using different
font sizes or font decorations. The slash should not be displayed since it is a
syntax artifact rather than a part of the book naming scheme.

The second line with up links to parent pages could be merged with this new way
of displaying the module titles, so there is no redundacy.

This rendering should be activated through a configuration option so other
projects are not disturbed.


Version: unspecified
Severity: enhancement
URL: http://en.wikibooks.org/wiki/Wikibooks_talk:Naming_policy/Archive_2

Details

Reference
bz6723

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 9:16 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz6723.
bzimport added a subscriber: Unknown Object (MLST).

kellen wrote:

A better solution might be to use the local styleshee to affect these elements
rather than building it into the other configuration. Wrap each individual
element of the header and breadcrumbs with html elements and have unique classes
for each level. For example, you could have: .heading-level<N> where <N> is the
subpage number starting at 0 for the top level. The slashes should each be
wrapped in .headerslash or somesuch, so the stylesheet could just turn off their
display.

ayg wrote:

A better solution might be to use the local styleshee to affect these elements
rather than building it into the other configuration. Wrap each individual
element of the header and breadcrumbs with html elements and have unique classes
for each level. For example, you could have: .heading-level<N> where <N> is the
subpage number starting at 0 for the top level. The slashes should each be
wrapped in .headerslash or somesuch, so the stylesheet could just turn off their
display.

That would be a partial solution, but it wouldn't affect the possibly
counterintuitive entry of page tities into the "Go" bar, nor would it affect the
page title (as in, in the browser). Looking at the Monobook.php implementation,
even the stylesheet issue would seem to be nontrivial, although perhaps not
difficult for someone a bit more familiar with the skin classes than I. A more
complete solution would be to make subpage-ness distinct from page name, but
that would certainly be a much more difficult change to make.

mgrojo wrote:

We have made some mockups for illustrating how this could be displayed. We have
tried to preserve the possibility of copy-pasting the page title for a link. See:

http://es.wikibooks.org/wiki/Usuario:Ciencia_Al_Poder/Pruebas

Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 11:01 AM
Aklapper removed a subscriber: wikibugs-l-list.