Template talk:Infobox Radio show

From Wikipedia, the free encyclopedia

This article is supported by the Radio WikiProject.

This project provides a central approach to Radio-related subjects on Wikipedia.
Please participate by editing the article attached to this page and help us assess and improve articles to good and 1.0 standards. Visit the wikiproject page for more details.

Template This article has been rated as Template-Class on the Project's quality scale.
(If you rated the article please give a short summary at comments to explain the ratings and/or to identify the strengths and weaknesses.)

Contents

[edit] Merging Template

I'm going to merge Template:Infobox Radio with Template:Infobox Radio Show as they serve identical purposes and are almost the same, both being derived from Template:Infobox Television.
I will temporarily add a few extra fields here to minimise disruption during the merge. --AGoon 20:41, 18 October 2006 (UTC)

Merging done, you should only see minor differences in formatting, and a few extra fields available (any problems tell me on User_talk:AGoon). Perhaps hold off using new fields for a week, just in case there are any problems or objections. --AGoon 01:39, 19 October 2006 (UTC)

[edit] Removed myspace attribute

I have removed the myspace (MySpace Profile) attribute as I couldn't see any reason for such a specific field in an infobox for radio shows, even if it is an integral part of one radio show, it's certainly not a general attribute applicable to radio shows. The only page that was using this attribute was This_Week_in_Science (TWIS), strangely enough user TWIS was the user who created this version of a radio show template (although another almost identical one already existed) and the user that added that attribute to the base TV template s/he was working from. I moved the info in the myspace Infobox field to the external links section of that wikipedia page. --AGoon 10:45, 19 October 2006 (UTC)

[edit] Presenter attribute

Should we have a presenter attribute for the infobox? Programmes such as Desert Island Discs, Today, PM, and, oh, much of Radio 4's output could usefully have this in the infobox. At the moment, one is left with a choice between starring and narrated, neither of which seems appropriate. If there are no objections, I'll be bold and simply add this attribute. TimR 12:16, 11 March 2007 (UTC)

I have added the presenter field. --PhantomS 07:19, 12 March 2007 (UTC)

[edit] Conductor attribute?

What about a conductor attribute for the infobox? A number of radio shows had orchestras with conductors of note who have existing Wikipedia articles. Alphageekpa 19:59, 29 May 2007 (UTC)

[edit] Imagesize parameter

Caution Correct handling of the imagesize parameter in this template is currently very fragile. Please read this comment if you are planning to change it.

This seems to be a tricky problem. The parameter has previously been implemented something like this:

[[Image:{{{image<includeonly>|</includeonly>}}}<!--
-->|{{{imagesize<includeonly>|180x180px</includeonly>}}}]]

The problem with this is that if you use the template by pasting the empty version in and filling in some of the fields, but leaving the imagesize field blank, like this:

{{Infobox Radio Show
| show_name          = After Henry
| image              = AfterHenrySimonBrettNovelCover.jpg
| imagesize          = 
...

then when the template gets expanded, the imagesize parameter is defined, but empty. As a result, the default value of 180x180px is not used, and the {{Infobox}} template is called with its image parameter set to:

[[Image:AfterHenrySimonBrettNovelCover.jpg|]]

(Note the "|" character at the end.) Unfortunately, this isn't what we want, as the 180x180px value isn't used, and, more worryingly, the {{Infobox}} template can't cope with this correctly, so the image is not displayed at all.

The unexpected side effect of this problem is that as the functionality was accidentally broken after some pages had successfully used this template, some pages which haven't been edited since still retain the image in the infobox, but for some reason the "File links" section on the corresponding image pages no longer show the pages which should contain them. As a result, some are being marked in good faith as orphaned, (e.g. these two) and probably some are being deleted.

I think that it's a bit much to expect people to know that they have to remove the imagesize call to get the default value, rather than simply leaving it empty, so we're going to have to cope with it being defined, but empty. The best way to do this, as far as I am aware, is with the #if parser function. I've now fixed this twice to something along the lines of this:

|image = [[Image:{{{image<includeonly>|</includeonly>}}}<!--
-->{{{#if:{{{imagesize|<noinclude>1</noinclude>}}}|{{{imagesize}}}|180x180px}}]]

This looks messier, I admit, but it works, as it passes the default 180x180px value when the imagesize parameter is defined, but empty. Please do not change this without checking that it's not going to break existing, correct pages. Thanks. TimR (talk) 09:20, 18 April 2008 (UTC)