Last modified: 2011-03-13 18:06:48 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
All All
: Lowest enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  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: ---


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 and

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

Both and 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 all the requested
functionality for 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

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
and back (project namespace) and back
(Template namespace) and back (Template talk

I mainly started this "portability issues" because I noticed discrepancies
between the test environments at and . 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

{{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 .
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.