Last modified: 2013-04-08 11:02:47 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 T27587, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 25587 - Wikitext for "continue numbered list"
Wikitext for "continue numbered list"
Status: RESOLVED DUPLICATE of bug 1584
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.16.x
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-10-19 15:20 UTC by Dan Barrett
Modified: 2013-04-08 11:02 UTC (History)
3 users (show)

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


Attachments

Description Dan Barrett 2010-10-19 15:20:57 UTC
Numbered lists are arguably the weakest feature in wikitext because they are so easily broken. Insert a <pre> tag, a set of images, or anything complicated into a numbered list, and the numbering starts over from "1". This is very common when creating (say) numbered instructions with examples in the middle. There are various hacks to avoid simple problems, but no general method for keeping consistent numbering in a complex article.

I propose one new wikitext symbol that means, "Continue the numbering at the given level."  Call it "#^".  For example:

# First item
# Second item
<pre>
CODE SAMPLE HERE
</pre>
#^ Third item

would produce:

1. First item
2. Second item
 CODE SAMPLE HERE
3. Third item

Likewise:

# First item
## First subitem
## Second subitem
# Second item
## Third subitem
<pre>Let's break the numbering!</pre>
##^ Fourth subitem
# Third item

would produce:

1. First item
 1. First subitem
 2. Second subitem
2. Second item
 1. Third subitem
 Let's break the numbering!
 2. Fourth subitem
3. Third item

The #^ symbol works within the current article, no matter how far away the previous numbering was. In parsing, it means keeping track of the most recent <ol> tag (or set of nested <ol> tags) and possibly reopening it.
Comment 1 Chad H. 2010-10-19 17:22:53 UTC

*** This bug has been marked as a duplicate of bug 1115 ***
Comment 2 Waldir 2011-04-08 22:43:22 UTC

*** This bug has been marked as a duplicate of bug 1584 ***

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


Navigation
Links