Good afternoon!
How do I make a Category page remove a certain prefix from the page names, which make up that category?
Let me give an example: Suppose you've got a Wiki, where you are documenting settings of your servers. Let's say, there are 2 servers and you're documenting the web server and email server daemons. That's actually what I'm doing. So I've got these pages:
- Server1/email - Server1/web - Server2/email - Server2/web
The Server1/* pages belong to the Category:Server1 and Server2/* makes up Category:Server2. When I now go to Category:Server1, I see:
S - Server1/email - Server1/web
That's no good, as the Server1/ prefix "clutters up" the display. Additionally, all those pages are sorted under the "S" heading; but that could be worked around by setting a "custom" sort key (ie. I'd use something like [[Category:Server1/email|email]] on the Server1/email page).
But this would still show Server1/email on the Category:Server1 page.
How could I work around this feature?
Thanks a lot,
Michael
On 22/01/2008, Michael Schmarck michael.schmarck@habmalnefrage.de wrote:
How do I make a Category page remove a certain prefix from the page names, which make up that category?
On the article page: would {{DEFAULTSORT:{{PAGENAME}}}} work? (Assuming the parser doesn't turn up its nose at nested magic words.)
- d.
ยท David Gerard dgerard@gmail.com:
On 22/01/2008, Michael Schmarck michael.schmarck@habmalnefrage.de wrote:
How do I make a Category page remove a certain prefix from the page names, which make up that category?
On the article page: would {{DEFAULTSORT:{{PAGENAME}}}} work?
Haven't tried and can't try right now, but what's that supposed to do? If I have a page named "Server1/email", then {{PAGENAME}} expands to "Server1/email", doesn't it?
Hmm, wouldn't {{SUBPAGENAME}} be the Magic word to use here? Would that return "email" for "Server1/email"? If I don't misunderstand http://meta.wikimedia.org/wiki/DEFAULTSORT#Page_names_and_related_info, then that would be better, wouldn't it?
But still - does that "modify" how a page name is displayed on a category page?
Thanks,
Michael Schmarck
mediawiki-l@lists.wikimedia.org