Adding Category Walker links to composer template

Moderators: kcleung, Wiki Admins

Post Reply
Davydov
Copyright Reviewer
Posts: 817
Joined: Sun Aug 17, 2008 8:31 am
notabot: 42
notabot2: Human
Contact:

Adding Category Walker links to composer template

Post by Davydov »

I've been trying unsuccessfully to do this, but I don't have the necessary expertise. My attempt is shown here:

http://imslp.org/wiki/MediaWiki:FTE:composertest

which is the same as the current template, with the addition of this line

Code: Select all

<div class='cp_symbol'>x</div> [http://imslp.org/wiki/Special:CategoryWalker/{{{PAGENAMEE}}}/ {{{msg:catwalker}}}]<br />
Unfortunately when applied the new link doesn't appear on every composer page, and when it does, the syntax of the URL is incorrect, but I'm not sure how to put it right. Can anyone help?
imslp
Site Admin
Posts: 1642
Joined: Thu Jan 01, 1970 12:00 am

Re: Adding Category Walker links to composer template

Post by imslp »

First, make sure that you are not in an {{~ifexist~}} block (or any other if block), which might be why it appears on some pages and not others. If that does not solve it, then it may be due to the cache which you need to use &action=purge on. Also, I would not use the external linking mechanism. Instead, use "[[Special:CategoryWalker/{{{PAGENAME}}}/|{{{msg:catwalker}}}]]".

And congratulations on tagging 50% of the pages! You might want to create a simple CW "entry page" with a couple of entry points (like we talked about before), and then you can add links to that page from both the Main Page and the sidebar (MediaWiki:Sidebar).

Tell me if you have any other problems setting this up.
Davydov
Copyright Reviewer
Posts: 817
Joined: Sun Aug 17, 2008 8:31 am
notabot: 42
notabot2: Human
Contact:

Re: Adding Category Walker links to composer template

Post by Davydov »

Thank you, that seems to have done it! It turns out to be the caching issue that's stopping the link from appearing on some of the composer pages, but that should sort itself out in a couple of days (and in the meantime there's always purging...).
Davydov
Copyright Reviewer
Posts: 817
Joined: Sun Aug 17, 2008 8:31 am
notabot: 42
notabot2: Human
Contact:

Re: Adding Category Walker links to composer template

Post by Davydov »

imslp wrote: You might want to create a simple CW "entry page" with a couple of entry points (like we talked about before), and then you can add links to that page from both the Main Page and the sidebar (MediaWiki:Sidebar).
OK, I've done this by creating this page, and placing a link to it from the Browse by Genre page. This should serve as a temporary measure until you have the time in May to come up with something generated automatically from MW:G.

There are major difficulties in plunging people straight into the category walker without explanation, so I've created just the 48 main instrumental categories (like "For 3 players" and "For orchestra"), with brief descriptions and links to the category walker. I understand your reservations about realizing categories, but I really believe it's necessary for these 48 (and rest assured that I've no plans to do the same for the remaining 1,700 lower-level categories!)
Post Reply