Template talk:Client

From XMMS2

Jump to: navigation, search

While the recently by Malvineous applied Wikipedia infobox style looks nice, it has some issues:

  1. Homepage URLs are not properly wrapped over multiple lines (see revision 8676 of Client:Remuco or Client:xmms2-notify).
  2. There is an image included, but this Wiki is not able to upload image (webserver is not allowed to write files). Also, the image link should not be visible if there is no image for a client. Maybe the image thing could be a template parameter?
  3. The automatic categories look awkward if a client uses multiple languages (see Client:Remuco).

(updated -- obensonne 00:10, 21 August 2009 (UTC))

Yes there are a few issues, I was going to post to the XMMS2 mailing list to ask for a few changes (upgrade to latest MediaWiki version and enable uploads.) We'll also need the ParserFunctions installed to fix your second point about hiding the image link (there is some commented out code in the template that, if ParserFunctions were available, would display a message instead asking for a screenshot to be uploaded.) I also agree the categories look weird with multiple languages, but if ParserFunctions can be installed it will be possible to solve this by adding multiple language tags (devlang1=xxx devlang2=yyy) and have it come out looking nice. But it can't be done without ParserFunctions! -- Malvineous 00:09, 19 August 2009 (UTC)
Image file name

This template falls back to PAGENAME if the image parameter is not given. However PAGENAME usually is something like Client:XYZ and colons are apparently not allowed in image file names (in my case it has been replaced by a '-'). -- obensonne 21:33, 20 August 2009 (UTC)

Thanks for pointing that out. Hopefully the Client pages can be moved into a dedicated namespace to fix this! I've also added extra tags to specify up to three development languages now that ParserExtensions are available, so hopefully that will fix your third point above. (I was using Client:Remuco for testing, I hope you don't mind!) I've also added a note about uploading an image if one doesn't exist yet, what do you think? -- Malvineous 23:01, 20 August 2009 (UTC)
Things get better and better :) I've re-enabled the image parameter in Client:Remuco (you've probably disabled for testing). But I don't mind, feel free to use that client page for testing, especially when this name space thing works and the image may be renamed to Remuco.png (?) so that the image parameter is not needed anymore. -- obensonne 00:17, 21 August 2009 (UTC)
author(s)

Is author2,author3,author4 really needed? Couldn't we just keep comma separation? For the author->authors handling we could use {{#pos:{{author}}|,}} to figure out if there are multiple authors? That way we don't have to add author5, author6, and so on.. Anders Waldenborg 20:36, 22 August 2009 (UTC)

Having numbered tags like that seems to be a common way of doing this (some of the Wikipedia templates go up to field99), so I kept it like that for future use - if we ever want to use categories to provide a list of clients by a particular author for example, or otherwise manipulate the list of authors it's much easier if they're already split out as individuals rather than a single string. I've never used #pos before but I guess it could work, so by all means adjust it how you see fit if it will work better this way. -- Malvineous 11:29, 26 August 2009 (UTC)
Personal tools