I want to have a namespace which has an ampersand in it e.g. "Me&You". I've followed the directions for $wgExtraNamespaces which ask to use $amp; for &, and everything goes okay except - a new page doesnt get recorded in the new namespace, when I check the database, so defeating the purpose (it gets a namespace of 0, the main space).
I can get this to work if I use just the & as it is, but the main "article" tab comes messed up. It shows this: "<nstab-Me&You>" instead of "article"
I can get rid of the ampersand and gain 2 more letters to make the namespace a little longer but I want the ampersand if possible. I've tried different combinations for other unicode characters too on a test wiki with the same result. I guess there's no current fix for this, right and I'd probably have to get rid of the ampersand? If you want to try it yourself, try: $wgExtraNamespaces = array(120 => "Me1&You", 121=> "Me1&You_Talk", 122 => "Me2&You", 123=> "Me2&You_Talk" ); And then add an article in each namespace and check the database, or the Special:Allpages which will show only one namespace's article, and thats the one for which the "article" tab is messed during display.
thanks Eric
--------------------------------- Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Eric K wrote:
I want to have a namespace which has an ampersand in it e.g. "Me&You".
That _should_ work, but hasn't been tested.
I've followed the directions for $wgExtraNamespaces which ask to use $amp; for &,
Any such direction is *wildly* incorrect and has no basis in fact. Definitely do not do that, as it will *not* work.
Please let us know where you found these directions so they may be corrected.
I can get this to work if I use just the & as it is, but the main "article" tab comes messed up. It shows this: "<nstab-Me&You>" instead of "article"
I think this is due to a bug in wfEmptyMsg().
To work around, try filling in the name in [[MediaWiki:Nstab-Me&You]].
- -- brion vibber (brion @ wikimedia.org)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Brion Vibber wrote:
I can get this to work if I use just the & as it is, but the main "article" tab comes messed up. It shows this: "<nstab-Me&You>" instead of "article"
I think this is due to a bug in wfEmptyMsg().
Fixed in r23557.
To work around, try filling in the name in [[MediaWiki:Nstab-Me&You]].
That'll be [[MediaWiki:Nstab-me&you]] (with lowercase).
- -- brion vibber (brion @ wikimedia.org)
Sorry I made a typo: they asked us to use & for & (not $amp;, which was the typo I made). The directions for using & can be found here: http://meta.wikimedia.org/wiki/Help:Custom_namespaces So that would be Me&You
I've tried filling in the name as [[MediaWiki:Nstab-Me&You]], but it didnt work. In summary again, when defining the namespace in the following way: Me&You - it comes out OK everywhere except the database table (mw_page) puts the namespace number as 0 (and not as 100+ as it should be) Me&You: works ok everywhere, except the "article" tab comes out messed up the N-stab stuff.
thanks! Eric
Brion Vibber brion@wikimedia.org wrote: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Eric K wrote:
I want to have a namespace which has an ampersand in it e.g. "Me&You".
That _should_ work, but hasn't been tested.
I've followed the directions for $wgExtraNamespaces which ask to use $amp; for &,
Any such direction is *wildly* incorrect and has no basis in fact. Definitely do not do that, as it will *not* work.
Please let us know where you found these directions so they may be corrected.
I can get this to work if I use just the & as it is, but the main "article" tab comes messed up. It shows this: "<nstab-Me&You>" instead of "article"
I think this is due to a bug in wfEmptyMsg().
To work around, try filling in the name in [[MediaWiki:Nstab-Me&You]].
- -- brion vibber (brion @ wikimedia.org)
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
--------------------------------- Shape Yahoo! in your own image. Join our Network Research Panel today!
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Eric K wrote:
Sorry I made a typo: they asked us to use & for & (not $amp;, which was the typo I made). The directions for using & can be found here: http://meta.wikimedia.org/wiki/Help:Custom_namespaces So that would be Me&You
That direction is completely and 100% wrong; I have removed it and replaced it with correct directions.
I've tried filling in the name as [[MediaWiki:Nstab-Me&You]], but it
didnt work. In summary again, when defining the namespace in the following way:
Use lowercase as in my followup.
Me&You - it comes out OK everywhere except the database table
(mw_page) puts the namespace number as 0 (and not as 100+ as it should be)
100% wrong.
Me&You: works ok everywhere, except the "article" tab comes out messed
up the N-stab stuff.
See above.
- -- brion vibber (brion @ wikimedia.org)
On 02/07/07, Brion Vibber brion@wikimedia.org wrote:
That direction is completely and 100% wrong; I have removed it and replaced it with correct directions.
Note that the page itself is redundant given we have rather top notch (ahem) documentation on using custom namespaces at http://www.mediawiki.org/wiki/Manual:Using_custom_namespaces.
I've redirected the page there.
Rob Church
Hi Brion, thanks a lot, it worked after the patch and I used the simple "&" now. The NS number showed up correctly in the database and the tab was OK too. There's another extension Inputbox, which can be configured to search specific namespaces. It makes a checkbox for a namespace if it finds the namespace exists. When I use NS's with "&" in them, it doesnt show up the checkbox for the NS, indicating it didnt find the namespace. It might be a bug with Inputbox, or could it be a bigger bug? I was going to test this by doing a general search from the default Search options, but since the NS pages are new, the search doesnt turn up anything. How can I find out if its a bug with the Inputbox, or if the Search has bugs for the NS? The inputbox is using this to get the NS names and work on them: $namespaces = $wgContLang->getNamespaces();
Could it be that this function has not been fixed yet for the '&' ? I checked the GlobalFunctions you updated and that wasnt using this function. thanks!
Brion Vibber brion@wikimedia.org wrote: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Eric K wrote:
Sorry I made a typo: they asked us to use & for & (not $amp;, which was the typo I made). The directions for using & can be found here: http://meta.wikimedia.org/wiki/Help:Custom_namespaces So that would be Me&You
That direction is completely and 100% wrong; I have removed it and replaced it with correct directions.
I've tried filling in the name as [[MediaWiki:Nstab-Me&You]], but it
didnt work. In summary again, when defining the namespace in the following way:
Use lowercase as in my followup.
Me&You - it comes out OK everywhere except the database table
(mw_page) puts the namespace number as 0 (and not as 100+ as it should be)
100% wrong.
Me&You: works ok everywhere, except the "article" tab comes out messed
up the N-stab stuff.
See above.
- -- brion vibber (brion @ wikimedia.org)
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
--------------------------------- Got a little couch potato? Check out fun summer activities for kids.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Eric K wrote:
Could it be that this function has not been fixed yet for the '&' ? I checked the GlobalFunctions you updated and that wasnt using this function. thanks!
inputbox.php is very poorly structured, and does all its escaping in the wrong place (on input). As a result, string comparisons fail.
- -- brion vibber (brion @ wikimedia.org)
mediawiki-l@lists.wikimedia.org