Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Wikipedia: Mediawiki

MediaWiki:Sidebar

 

 

Wikipedia mediawiki RSS feed   Index | Next | Previous | View Threaded


stipen.treublatt at gmx

May 12, 2012, 11:43 PM

Post #1 of 7 (566 views)
Permalink
MediaWiki:Sidebar

In 1.17., the following Code in MediaWiki:Sidebar worked as intended:

{{#ifeq: {{NAMESPACE}} | |
*Search for "{{PAGENAME}}"
**external link with PAGENAME as parameter
| }}

After upgrading to 1.19., it doesnt work anymore. Any advice how to fix it?

Greetings
Stip


_______________________________________________
MediaWiki-l mailing list
MediaWiki-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l


Platonides at gmail

May 13, 2012, 8:04 AM

Post #2 of 7 (556 views)
Permalink
Re: MediaWiki:Sidebar [In reply to]

On 13/05/12 08:43, Stip wrote:
> In 1.17., the following Code in MediaWiki:Sidebar worked as intended:
>
> {{#ifeq: {{NAMESPACE}} | |
> *Search for "{{PAGENAME}}"
> **external link with PAGENAME as parameter
> | }}
>
> After upgrading to 1.19., it doesnt work anymore. Any advice how to fix it?
>
> Greetings
> Stip

In which way it doesn't work?
1.17.4 seems to conditionally render the Search for "{{PAGENAME}}" but
not to show the link.

As for getting the old behavior, change in Skin.php, function
addToSidebar (line 1237) the wfMsgForContentNoTrans to wfMsgForContent
(you shouldn't be doing these things, though What about hiding it with CSS?)



_______________________________________________
MediaWiki-l mailing list
MediaWiki-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l


stipen.treublatt at gmx

May 13, 2012, 8:17 AM

Post #3 of 7 (559 views)
Permalink
Re: MediaWiki:Sidebar [In reply to]

Am 13.05.2012 17:04, schrieb Platonides:
> On 13/05/12 08:43, Stip wrote:
>> In 1.17., the following Code in MediaWiki:Sidebar worked as intended:
>>
>> {{#ifeq: {{NAMESPACE}} | |
>> *Search for "{{PAGENAME}}"
>> **external link with PAGENAME as parameter
>> | }}
>>
>> After upgrading to 1.19., it doesnt work anymore. Any advice how to fix it?
>>
>> Greetings
>> Stip
> In which way it doesn't work?
> 1.17.4 seems to conditionally render the Search for "{{PAGENAME}}" but
> not to show the link.
In 1.17.0 it showed the searchlink, if the page you were viewing was in
the article namespace.

Now it only shows "Search for "{{PAGENAME}}"" without showing the
external link.

> As for getting the old behavior, change in Skin.php, function
> addToSidebar (line 1237) the wfMsgForContentNoTrans to wfMsgForContent
> (you shouldn't be doing these things, though What about hiding it with CSS?)
Thanks! The point of the whole thing is to have external links which
look like this:
http://www.forum.de/search.php?keywords={{PAGENAME}}{{!}} Forum

So if you follow that link, it takes you to a searchpage of that forum
with the name of the current article as searchparameter. To achieve
that, I need PAGENAME to work in the sidebar. Is above solution the only
one who does this?
As for hiding it with CSS: First, I have no clue how to do that, and
second, if PAGENAME doesnt work in the sidebar, the whole concept does
not work. Or am I wrong on that?

Thanks for the reply!
Stip

_______________________________________________
MediaWiki-l mailing list
MediaWiki-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l


bruce at whealton

May 13, 2012, 8:53 AM

Post #4 of 7 (559 views)
Permalink
Re: MediaWiki:Sidebar [In reply to]

Just out of curiosity, what does this do?
Thanks,
Bruce

-----Original Message-----
From: mediawiki-l-bounces [at] lists
[mailto:mediawiki-l-bounces [at] lists] On Behalf Of Stip
Sent: Sunday, May 13, 2012 2:44 AM
To: MediaWiki announcements and site admin list
Subject: [Mediawiki-l] MediaWiki:Sidebar

In 1.17., the following Code in MediaWiki:Sidebar worked as intended:

{{#ifeq: {{NAMESPACE}} | |
*Search for "{{PAGENAME}}"
**external link with PAGENAME as parameter
| }}

After upgrading to 1.19., it doesnt work anymore. Any advice how to fix it?

Greetings
Stip


_______________________________________________
MediaWiki-l mailing list
MediaWiki-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l


_______________________________________________
MediaWiki-l mailing list
MediaWiki-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l


stipen.treublatt at gmx

May 13, 2012, 9:02 AM

Post #5 of 7 (558 views)
Permalink
Re: MediaWiki:Sidebar [In reply to]

If the page you are viewing is in the article namespace, it shows an
external link to a forum searchpage, with the name of the page you are
viewing as the search parameter.
Example:

{{#ifeq: {{NAMESPACE}} | |
*Search for "{{PAGENAME}}"
**http://www.forum.de/search.php?keywords={{PAGENAME}}{{!}} Forum
| }}


Am 13.05.2012 17:53, schrieb Bruce Whealton:
> Just out of curiosity, what does this do?
> Thanks,
> Bruce
>
> -----Original Message-----
> From: mediawiki-l-bounces [at] lists
> [mailto:mediawiki-l-bounces [at] lists] On Behalf Of Stip
> Sent: Sunday, May 13, 2012 2:44 AM
> To: MediaWiki announcements and site admin list
> Subject: [Mediawiki-l] MediaWiki:Sidebar
>
> In 1.17., the following Code in MediaWiki:Sidebar worked as intended:
>
> {{#ifeq: {{NAMESPACE}} | |
> *Search for "{{PAGENAME}}"
> **external link with PAGENAME as parameter
> | }}
>
> After upgrading to 1.19., it doesnt work anymore. Any advice how to fix it?
>
> Greetings
> Stip
>
>
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l [at] lists
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>
>
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l [at] lists
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>


_______________________________________________
MediaWiki-l mailing list
MediaWiki-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l


Platonides at gmail

May 13, 2012, 9:36 AM

Post #6 of 7 (554 views)
Permalink
Re: MediaWiki:Sidebar [In reply to]

On 13/05/12 17:17, Stip wrote:
> The point of the whole thing is to have external links which
> look like this:
> http://www.forum.de/search.php?keywords={{PAGENAME}}{{!}} Forum

Ok, I wasn't testing with {{!}} template.

> So if you follow that link, it takes you to a searchpage of that forum
> with the name of the current article as searchparameter. To achieve
> that, I need PAGENAME to work in the sidebar. Is above solution the only
> one who does this?
{{PAGENAME}} works by default in the sidebar, but not in the sidebar titles.


> As for hiding it with CSS: First, I have no clue how to do that, and
> second, if PAGENAME doesnt work in the sidebar, the whole concept does
> not work. Or am I wrong on that?

If you had:
*Search for this page
** http://example.net/{{PAGENAMEE}} | Link

you can add in [[MediaWiki:Common.css]]
#p-Search_for_this_page { display: none }
.ns-0 #p-Search_for_this_page { display: block }


_______________________________________________
MediaWiki-l mailing list
MediaWiki-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l


stipen.treublatt at gmx

May 13, 2012, 10:15 AM

Post #7 of 7 (556 views)
Permalink
Re: MediaWiki:Sidebar [In reply to]

Am 13.05.2012 18:36, schrieb Platonides:
> If you had:
> *Search for this page
> ** http://example.net/{{PAGENAMEE}} | Link
>
> you can add in [[MediaWiki:Common.css]]
> #p-Search_for_this_page { display: none }
> .ns-0 #p-Search_for_this_page { display: block }
>
>
Thanks very much for this, works like a charm! :D

Greetings
Stip

_______________________________________________
MediaWiki-l mailing list
MediaWiki-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Wikipedia mediawiki RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.