https://bugzilla.wikimedia.org/show_bug.cgi?id=21305

           Summary: Article name padding for page name=-<unique
                    number;start=000000>
           Product: MediaWiki extensions
           Version: any
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: Normal
         Component: SemanticForms
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


Created an attachment (id=6724)
 --> (https://bugzilla.wikimedia.org/attachment.cgi?id=6724)
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


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to