Jump to content

Template talk:Film date

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Horkana (talk | contribs) at 02:28, 9 March 2011 (→‎ISO 8601: new section). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

WikiProject iconFilm Template‑class
WikiProject iconThis template is within the scope of WikiProject Film. If you would like to participate, please visit the project page, where you can join the discussion and see lists of open tasks and regional and topical task forces. To use this banner, please refer to the documentation. To improve this article, please refer to the guidelines.
TemplateThis template does not require a rating on Wikipedia's content assessment scale.

Request edit

{{Edit protected}} Please synchronize with Sandbox per Template talk:Infobox film#Film date. BOVINEBOY2008 13:32, 14 September 2010 (UTC)[reply]

 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)[reply]
Can and will do, thank you. BOVINEBOY2008 20:39, 14 September 2010 (UTC)[reply]

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)[reply]

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)[reply]
{{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)[reply]
 Done. It works in the Sandbox. BOVINEBOY2008 13:23, 23 September 2010 (UTC)[reply]

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)[reply]

The problem is how the different browsers are interpreting the &ensp; (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 &nbsp; 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)[reply]
Thanks! --Mepolypse (talk) 23:00, 23 November 2010 (UTC)[reply]

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)[reply]