Page MenuHomePhabricator

Client-side auto-numbering of table rows
Closed, ResolvedPublic

Description

Author: JosephASpadaro

Description:

Proposal - Adding New Code to Autonumber Tables

I would like to propose the addition of code to Wikipedia. The purpose of the code is to have the entries within Wikipedia tables and charts ''automatically'' numbered (as opposed to the author having to manually enter these numbers). For lists and charts that are very long, it is cumbersome and tedious for the author to manually enter each and every number. Furthermore, these numbers are subject to constant change whenever an entry is added to or subtracted from the list. Example: say an author creates a chart that alphabetically lists all of the 535 members of the US Congress. It would be laborious to list the numbers 1, 2, 3, … 533, 534, 535 near each of the 535 entries on the list. And next time the list changes (at the next election, when names are added to or subtracted from the list of Congress members), the author would have to repeat the laborious process of numbering the 535 entries on the list all over again. A Wikipedia user has developed code that addresses this issue. An example is below. Please indicate your support or opposition to this proposal so that, hopefully, consensus will allow the addition of this code to Wikipedia. If you have any questions or concerns, please post them here or on my Talk Page. Thanks. ([[User:JosephASpadaro|JosephASpadaro]] 20:31, 28 June 2007 (UTC))

Example of output derived from auto-numbered tables code:

{| class="wikitable" style="margin: 0 auto"
!
! Plain
! Numbered

-

! Wikitext

<pre><nowiki>{class="wikitable"

! Name
! Date

-
John
April 1, 2007
-
Dick
April 2, 2007
-
Harry
April 3, 2007
}</nowiki></pre>
<pre><nowiki>{class="wikitable autonumber"

! Name
! Date

-
John
April 1, 2007
-
Dick
April 2, 2007
-
Harry
April 3, 2007
}</nowiki></pre>
-

! Display

{| class="wikitable" style="margin: 0 auto"
! Name
! Date

-
John
April 1, 2007
-
Dick
April 2, 2007
-
Harry
April 3, 2007
}

{| class="wikitable" style="margin: 0 auto"
! #
! Name
! Date

-
1
John
April 1, 2007
-
2
Dick
April 2, 2007
-
3
Harry
April 3, 2007
}
}

Version: unspecified
Severity: enhancement
URL: http://en.wikipedia.org/wiki/User:Mike_Dillon/Scripts/autonumber.js

Details

Reference
bz10433

Event Timeline

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

robchur wrote:

The user script at http://en.wikipedia.org/wiki/User:Mike_Dillon/Scripts/autonumber.js has been proposed as an example of doing this.

Marking as Lowest since nobody is working or planning to work on this.

Bug 40618 seems to be the same request as here (maybe a little broader) and it has received more discussion. (This bug was even mentioned there.)

  • This bug has been marked as a duplicate of bug 40618 ***