Last modified: 2011-03-13 18:06:48 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 T4162, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 2162 - CANONICALNAMESPACE and CANONICALNAMESPACEE
CANONICALNAMESPACE and CANONICALNAMESPACEE
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Lowest enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
http://test.leuksman.com/index.php/Te...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-05-13 00:08 UTC by lɛʁi לערי ריינהארט
Modified: 2011-03-13 18:06 UTC (History)
1 user (show)

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


Attachments

Description lɛʁi לערי ריינהארט 2005-05-13 00:08:16 UTC
Hi! I implemented a template {{vikivar||}} wich will allow to link between
"mirrored pages" at http://test.leuksman.com/index.php/ and
http://jadesukka.homelinux.org:8180/betawiki.

The main application is to test wiki code in different wikis and to provide
portability of the code:

Both http://test.leuksman.com/index.php/FiverAlpha:Portability and
http://jadesukka.homelinux.org:8180/betawiki/Betawiki:Portability share the same
code and have a line '''Mirrors:''' Nuka-Wiki|FiverAlpha . Following that link
you can swich between wikis. The "..." provides a list with other "mirrored pages".

After some hours of generating
http://test.leuksman.com/index.php?title=Template:VIKIVAKI/all all the requested
functionality for
http://jadesukka.homelinux.org:8180/betawiki/Malline:VIKIVAKI/all could be
"migrated" in 30 min (these are 34 objects).


One problem is the fact that namespaces are translated and the other the
complexity of the nested templates to overcome the lack of variable
GENERICNAMESPACE.


At Nuka-Wiki [[leuksman:{{NAMESPACE}}:foo]] in a template will NOT generate
[[leuksman:Template:foo]] at some may beleive, it IS the equivalent of
[[leuksman:Malline:foo]] in the article namespace.
Same for [[leuksman:{{NAMESPACE}}:foo]] in a page in the in the project
namespace will NOT generate [[leuksman:FiverAlpha:foo]] at some may beleive, it
IS the equivalent of [[leuksman:Betawiki:foo]] etc.

A variable GENERICNAMESPACE would simplify the code. The number of objects would
decrease from 34 to 1.

Benefits: Please follow the MIRRORS links at
http://jadesukka.homelinux.org:8180/betawiki/Betawiki:Templates/Template:Signed
and back (project namespace) 
http://test.leuksman.com/index.php?title=Template:VIKIVAKI/all and back
(Template namespace)
http://test.leuksman.com/index.php/Template_talk:Signed and back (Template talk
namespace)


I mainly started this "portability issues" because I noticed discrepancies
between the test environments at
http://test.leuksman.com/index.php/Template:Templates and
http://jadesukka.homelinux.org:8180/betawiki/Malline:Templates . These pages do
NOT share the same wiki code so far. I found some valuable turanrounds to
overcome breaking the table.

Best regards Reinhardt [[user:gangleri]]
Comment 1 lɛʁi לערי ריינהארט 2005-12-02 21:34:12 UTC
*note*

{{GENERICNAMESPACE}} should return 10 digit numbers as namespace is an 'int'
field now, so in theory probably 2^31-1 is the maximum namespace value.

2^31-1 is 2.147.483.647

Example: {{GENERICNAMESPACE}} should return 0000000002 for {{ns:user}}

regards reinhardt [[user:gangleri]]
Comment 2 Brion Vibber 2005-12-02 21:55:04 UTC
That doesn't make any sense. Zero-padding to the theoretical maximum is useless 
and makes things hard to read for no reason.
Comment 3 lɛʁi לערי ריינהארט 2005-12-02 22:57:07 UTC
(In reply to comment #2)
> That doesn't make any sense. Zero-padding to the theoretical maximum is useless 
> and makes things hard to read for no reason.

The main reason for the request from comment 1 was to be able to have a kind of
ordering as you can see at
http://test.leuksman.com/view/Special:Allpages/GENERIC?namespace=10 .
Comment 4 Brion Vibber 2005-12-03 00:08:18 UTC
More aggravating template junk, closing WONTFIX.
Comment 5 lɛʁi לערי ריינהארט 2006-02-01 15:23:28 UTC
A similar request for {{ns}} can be found
at bug 1924 comment 71
Bug 1924: Restricted read access for subset of wiki
Comment 6 lɛʁi לערי ריינהארט 2006-06-03 21:39:34 UTC
(In reply to comment #4)
> More aggravating template junk, closing WONTFIX.

Hi Brion! Knowledge about {{CANONICALNAMESPACE}} and {{CANONICALNAMESPACEE}} are
fundamental for linking to pages with identical page names names from namespaces
as MediaWiki, Special, from a wiki in an arbitrary language to a wiki in another
arbitrary langauge inside templates or MediaWiki messages.

Please reconsider your opinion about this topic. Thanks!
Comment 7 Rob Church 2006-06-03 21:44:42 UTC
You already know the canonical namespace names. They can be seen in the code.

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


Navigation
Links