Treat only title of deepest subpage as display title in collections

13 views
Skip to first unread message

Johannes Beigel

unread,
Sep 23, 2010, 5:03:26 AM9/23/10
to mw...@googlegroups.com
Hello.

Some wikis make heavy use of hierarchical structures using "/" as delimiter in page titles which can result in very long article titles in rendered documents and books. With this changeset

http://www.mediawiki.org/wiki/Special:Code/MediaWiki/73454

(and the follow-up r73456) it's now possible to tell the Collection extension via

$wgCollectionHierarchyDelimiter = "/";

to set the part after the last "/" in a page title as a "display title", i.e., the title that is displayed/rendered instead of the real page title (cf. the part about renaming articles on the help page http://en.wikipedia.org/wiki/Help:Books/for_experts#Saving_books).

(Unfortunately this can't be enabled as a default for all MediaWiki installations, because there are lots of wikis that have "normal" page titles with "/" in them, e.g. [[AC/DC]] on en.wikipedia.org.)

-- Johannes Beigel

Reply all
Reply to author
Forward
0 new messages