Last modified: 2014-02-24 10:36:33 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T44538, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 42538 - Parser function for labelling TOC items/entries
Parser function for labelling TOC items/entries
Status: NEW
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.23.0
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
http://en.wikipedia.org/wiki/Wikipedi...
: design
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-11-29 12:55 UTC by Scott Martin (http://enwp.org/user:scott)
Modified: 2014-02-24 10:36 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Example of how TOC labels could appear. (2.14 KB, image/png)
2012-11-29 12:55 UTC, Scott Martin (http://enwp.org/user:scott)
Details

Description Scott Martin (http://enwp.org/user:scott) 2012-11-29 12:55:05 UTC
Created attachment 11433 [details]
Example of how TOC labels could appear.

I propose the creation of a new parser function to allow the labelling of entries in tables of contents.

Rationale: there are are many occasions when on large project pages - for example, those of various deletion processes on the English Wikipedia - when it would be advantageous to be able to get an at-a-glimpse overview of the status of everything on the entire page. At present, there's no way to do that; to assess a long page the reader needs to move all the way down it, either in one continuous scroll or by clicking TOC entries then going back. Neither is a particularly good use of time. This time-consuming process could be avoided if it were possible to attach short labels to TOC entries. 

Example: On a discussion process page these labels might be "open", "closed" and "reopened". The following potential syntax could create a TOC whose appearance is demonstrated in the image attached to this ticket.


 == First thing {{toclabel:closed}} ==
 
 Text
 
 == Second thing {{toclabel:open}} ==
 
 Text
 
 == Third thing {{toclabel:reopened}} ==
 
 Text

Advantage over status quo: It is already possible to kludge this by putting a label in a section heading, but doing so will produce a section anchor that includes the label. If/when the item's status and label are changed, the resulting anchor will be different and break incoming links. This is obviously suboptimal.

Example of necessity: The technique just described is currently being used at http://en.wikipedia.org/wiki/Wikipedia:AN3 . That page would benefit from this suggestion.

Considerations: 
- Labels should have a relatively short maximum length to avoid abuse of the filter.
- Labels should be plain text (no processing of wiki markup).
- Labels should not be included in the hyperlink in a TOC item. Keeping the metadata visually distinct will make an annotated TOC easier to read.
Comment 1 PiRSquared17 2014-02-23 23:28:42 UTC
I'd like to hear from design people about this.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links