Last modified: 2011-03-13 18:06:24 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 T12956, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 10956 - Multiple "magic words" for links
Multiple "magic words" for links
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.9.x
All All
: Lowest enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-08-16 04:54 UTC by Eep²
Modified: 2011-03-13 18:06 UTC (History)
1 user (show)

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


Attachments

Description Eep² 2007-08-16 04:54:38 UTC
Having to type out "category" all the time gets annoying. Why not allow "cat" as well? Support for multiple "magic word links" ("temp" for "template", too) and perhaps even namespace abbreviations.
Comment 1 Brion Vibber 2007-08-16 15:35:27 UTC
1) Too many conflicts likely

2) Localization issues

3) Compatibility issues
Comment 2 Danny B. 2007-08-16 16:27:06 UTC
Ask your wiki admins to add things like [[Category:]] in edittools.
Comment 3 Eep² 2007-08-16 20:41:35 UTC
edittools? What is that and how would I add something to it?
Comment 4 Rob Church 2007-08-16 20:56:20 UTC
"MediaWiki:Edittools" - "edittools" is a message which is treated as wiki text, and placed underneath the edit box in the standard editor. It's often the place where users insert, e.g. <charinsert> tags (from the extension) to provide convenient insertion points for boilerplate, special characters, etc.
Comment 5 Eep² 2007-08-17 03:08:19 UTC
Well, that's fine for macro-like things but I want built-in support for alternate link words. Really, I'm not asking for much--just support for "cat" vs. only just "category". Tell me how and I'll just hack yet another PHP file to add functionality...
Comment 6 Danny B. 2007-08-17 07:18:53 UTC
Look for namespace aliases.
Comment 7 Eep² 2007-08-17 07:46:40 UTC
Look where?
Comment 8 Danny B. 2007-08-17 08:00:13 UTC
http://www.mediawiki.org/wiki/Manual:Configuration_settings#Namespaces

particulary

http://www.mediawiki.org/wiki/Manual:%24wgNamespaceAliases


I'd rather suggest to use either IRC channel #mediawiki on FreeNode or one of mail-lists, Bugzilla is not for this kind of dialogue.
Comment 9 Eep² 2007-08-17 08:45:20 UTC
Perfect--thanks! Here's what I added:

$wgNamespaceAliases = array(
        'Img' => 6,
#        'img' => 6,
        'Img_talk' => 7,
#        'img_talk' => 7,
        'Cat' => 14,
#        'cat' => 14,
        'Cat_talk' => 15,
#        'cat_talk' => 15,
        'Cat_chat' => 15, #Just for fun
#        'cat_chat' => 15,
        'Temp' => 10,
#        'temp' => 10,
        'Temp_talk' => 11,
#        'temp_talk' => 11,
    );

I may even not need the capitalized versions but I haven't tested if commenting out capped versions will make capped versions redirect too (since I have lowercase links on). The only conflict is if interwiki links have the same names (which is why I don't reduce "MediaWiki" to "mw" since I use that for the interwiki link. Perhaps an alternate way to designate external links besides a single colon is needed, like an equals sign (=) or even a semi-colon (;)? Or perhaps a colon backslash (single only) akin to "http://" (:/)?

As for Bugzilla, it's for enhancement requests too, which is what I entered...
Comment 10 Rob Church 2007-08-17 12:21:36 UTC
The reason this was rejected as a core change is because of the likelihood of causing conflicts with custom namespaces, etc. It's quite possible to do this on a per-project basis using namespace aliases.

BugZilla *is* for enhancement requests, but it's not a general question-and-answer forum, which is what this bug became as of about comment 5.
Comment 11 Eep² 2007-08-17 12:36:45 UTC
Dialog helps to flesh out a bug/enhancement request, Rob. I really don't see what the big deal is. In comment 9 I elaborated on the enhancement as rejections were brought up.
Comment 12 Rob Church 2007-08-17 12:39:49 UTC
Once a request is rejected, pointless dialogue is a waste of time, and causes additional spam in inboxes. Your questions were about how to go about hacking MediaWiki, which is not an issue for the bug tracker, and specific support on namespace aliases, which is also not an issue for the bug tracker; both of these issues would have been good mailing list questions, for instance.

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


Navigation
Links