Last modified: 2009-12-23 21:10:49 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 T23305, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 21305 - Article name padding for page name=-<unique number;start=000000>
Article name padding for page name=-<unique number;start=000000>
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
SemanticForms (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Yaron Koren
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-10-27 03:33 UTC by Jack D. Pond
Modified: 2009-12-23 21:10 UTC (History)
1 user (show)

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


Attachments
1 line patch to pad unique number to size specified in {{info}} (582 bytes, patch)
2009-10-27 03:33 UTC, Jack D. Pond
Details

Description Jack D. Pond 2009-10-27 03:33:50 UTC
Created attachment 6724 [details]
1 line patch to pad unique number to size specified in {{info}}

Allow fixed link (0 padded) article names when generated from AddData.

Without padding, the article name returned from <unique number . . .> is variable, which can cause multiple issues.  The most common is when sorting by name.  Example:

1
11
12
. . .
2
21

etc.  The attached patch would allow the editor to specify a fixed length value, so that sorts would be sequential.  Example, page name=-<unique number;start=000000> would create sequential articles i.e.:

000000
000001
000002
. . .
000010
000011
. . . 
000020

Requires patch to SF_AddData and update to documentation: http://www.mediawiki.org/wiki/Extension:Semantic_Forms#The_one-step_process

Backward compatible.

Tested version can be seen at: http://wiki.montcopa.org/TestWiki/index.php?title=TEST:Main_Page
Comment 1 Yaron Koren 2009-11-01 05:14:20 UTC
Thanks for the patch; this is included in SF version 1.8.5.
Comment 2 Yaron Koren 2009-11-05 02:36:29 UTC
Re-opening - apparently I never actually checked this fix in.
Comment 3 Yaron Koren 2009-12-23 21:10:49 UTC
Fixed, for real this time, :) in version 1.8.6.

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


Navigation
Links