Template talk:Film date
Film Template‑class | |||||||
|
Request edit
{{Edit protected}}
Please synchronize with Sandbox per Template talk:Infobox film#Film date. BOVINEBOY2008 13:32, 14 September 2010 (UTC)
- Done. Although usually you should give a rationale of why the change is needed. However, I think I worked it out form the code diff. Rambo's Revenge (talk) 20:34, 14 September 2010 (UTC)
- Can and will do, thank you. BOVINEBOY2008 20:39, 14 September 2010 (UTC)
Subtemplates
This template is still using one or more subtemplates of the {{Film}} project banner. They will need to be migrated here at some point. PC78 (talk) 01:00, 23 September 2010 (UTC)
- Sorry, I don't understand. You are talking about {{Film/Numbered Month}} and this needs to be moved to {{Film date/Numbered Month}} ? BOVINEBOY2008 04:53, 23 September 2010 (UTC)
- {{Film/NumberedMonth}}, but yes, that's what I mean. Perhaps it could just be replaced with {{MONTHNUMBER}} instead? PC78 (talk) 09:59, 23 September 2010 (UTC)
- Done. It works in the Sandbox. BOVINEBOY2008 13:23, 23 September 2010 (UTC)
Browser-dependent line wrapping issue
Currently, this template produces funky line wrapping when the output doesn't fit on one line, but only in some web browsers. Code such as this:
{{Film date|2011|4|15|United Kingdom}}
inside a width-constrained area (such as {{Infobox film}}) yields HTML like this:
April 15, 2011<span style="display:none"> (<span class="bday dtstart published updated">2011-04-15</span>)</span> <span style="white-space:nowrap;"><span style="font-size:smaller; line-height:130%">(United Kingdom)</span></span>
This should work fine and does so in Firefox, but in Safari (version 5.0.3) yields incorrect line wrapping output like this:
April 15, 2011 (United Kingdom)
It seems Safari doesn't treat the space before the nowrap span as a soft break position. Can anyone think of a workaround for this, to avoid this browser inconsistency? (The example is from here.) --Mepolypse (talk) 23:52, 22 November 2010 (UTC)
- The problem is how the different browsers are interpreting the   (en space) entity. Some are allowing it to wrap, where others aren't. I'd suggest replacing it with a normal space, or maybe an and a normal space if you need the increased width (though that gives a pixel or two more width than the en space did). For now, I've replaced it with a normal space. – RobinHood70 talk 21:53, 23 November 2010 (UTC)
- Thanks! --Mepolypse (talk) 23:00, 23 November 2010 (UTC)
ISO 8601
It seems very strange and inconsistent that there are no leading zeros in the dates: e.g {{Film date|YYYY|M|D}} instead of consistently using {{Film date|YYYY|MM|DD}}. Why differ from ISO 8601 without some especially good reason? Also it was my understanding that this template was merely a specialization of Template:Start_date which does in fact include the leading zeroes. There are editors actively removing leading zeros based on the template documentation presented here. I urge you to include them. I'd have added them myself but I've had too much bad luck before with changes trying to encourage greater consistency that I didn't even think were WP:BOLD but others objected to. (Also I'll be away and it may be a long while before I reply to any discussion that may result from this.) -- Horkana (talk) 02:28, 9 March 2011 (UTC)