Difference between revisions of "MediaWiki talk:Whitelistedittext"
m (issue with dynamic link for search) |
m (on search issue and PAGENAMEE) |
||
Line 1: | Line 1: | ||
My editor's login link which uses the returnto URL variable does not work when article titles contain spaces, as the <nowiki>{{PAGENAME}}</nowiki> variable puts the spaces into the content, and external links in the <nowiki>[url linktext]</nowiki> format interpret the first space as the start of the link text. Anyone know how to fix this? Otherwise we can use a login link without the returnto URL variable. --[[User:Monger|Monger]] 02:38, 26 February 2006 (PST) | My editor's login link which uses the returnto URL variable does not work when article titles contain spaces, as the <nowiki>{{PAGENAME}}</nowiki> variable puts the spaces into the content, and external links in the <nowiki>[url linktext]</nowiki> format interpret the first space as the start of the link text. Anyone know how to fix this? Otherwise we can use a login link without the returnto URL variable. --[[User:Monger|Monger]] 02:38, 26 February 2006 (PST) | ||
− | :I think I fixed this by using <nowiki>{{PAGENAMEE}}</nowiki> instead of <nowiki>{{PAGENAME}}</nowiki>. [http://meta.wikimedia.org/wiki/Help:Page_name#Variables_PAGENAME_and_PAGENAMEE MediaWiki.org - Help:Page name - Variables PAGENAME and PAGENAMEE] has some more details on this. [[User:Peterf|Peter F.]] 22:49, 27 February 2006 (PST) | + | |
+ | : I think I fixed this by using <nowiki>{{PAGENAMEE}}</nowiki> instead of <nowiki>{{PAGENAME}}</nowiki>. [http://meta.wikimedia.org/wiki/Help:Page_name#Variables_PAGENAME_and_PAGENAMEE MediaWiki.org - Help:Page name - Variables PAGENAME and PAGENAMEE] has some more details on this. [[User:Peterf|Peter F.]] 22:49, 27 February 2006 (PST) | ||
+ | |||
+ | :: Thanks, man! --[[User:Monger|Monger]] 16:43, 7 March 2006 (PST) | ||
+ | |||
The search link on this page does not work when the article title that brought a user here has more than one word. What happens is spaces are converted to underscores rather than encoded to "%20"'s, so the MediaWiki search engine searches for e.g. "Page_Title" and will typically find no results. I have not yet been able to find information about how to address this. --[[User:Monger|Monger]] 17:44, 3 March 2006 (PST) | The search link on this page does not work when the article title that brought a user here has more than one word. What happens is spaces are converted to underscores rather than encoded to "%20"'s, so the MediaWiki search engine searches for e.g. "Page_Title" and will typically find no results. I have not yet been able to find information about how to address this. --[[User:Monger|Monger]] 17:44, 3 March 2006 (PST) | ||
+ | |||
+ | : Peter, I have restored PAGENAMEE variables to PAGENAME for the Special:Search and Special:Whatlinkshere links, if for no other reason that to help keep myself straight later on as to when PAGENAMEE is needed. In both cases mentioned, it is not needed, since spaces used inside wiki markup for local links in the <nowiki>[[page title|link text]]</nowiki> format are automatically converted to underscores. In regards to the search link issue mentioned earlier, neither PAGENAME nor PAGENAMEE get around the problem. --[[User:Monger|Monger]] 16:43, 7 March 2006 (PST) |
Revision as of 00:43, 8 March 2006
My editor's login link which uses the returnto URL variable does not work when article titles contain spaces, as the {{PAGENAME}} variable puts the spaces into the content, and external links in the [url linktext] format interpret the first space as the start of the link text. Anyone know how to fix this? Otherwise we can use a login link without the returnto URL variable. --Monger 02:38, 26 February 2006 (PST)
- I think I fixed this by using {{PAGENAMEE}} instead of {{PAGENAME}}. MediaWiki.org - Help:Page name - Variables PAGENAME and PAGENAMEE has some more details on this. Peter F. 22:49, 27 February 2006 (PST)
- Thanks, man! --Monger 16:43, 7 March 2006 (PST)
The search link on this page does not work when the article title that brought a user here has more than one word. What happens is spaces are converted to underscores rather than encoded to "%20"'s, so the MediaWiki search engine searches for e.g. "Page_Title" and will typically find no results. I have not yet been able to find information about how to address this. --Monger 17:44, 3 March 2006 (PST)
- Peter, I have restored PAGENAMEE variables to PAGENAME for the Special:Search and Special:Whatlinkshere links, if for no other reason that to help keep myself straight later on as to when PAGENAMEE is needed. In both cases mentioned, it is not needed, since spaces used inside wiki markup for local links in the [[page title|link text]] format are automatically converted to underscores. In regards to the search link issue mentioned earlier, neither PAGENAME nor PAGENAMEE get around the problem. --Monger 16:43, 7 March 2006 (PST)