Template talk:Film date
Page contents not supported in other languages.
Film Template‑class | |||||||
|
{{Edit protected}}
Please synchronize with Sandbox per Template talk:Infobox film#Film date. BOVINEBOY2008 13:32, 14 September 2010 (UTC)[reply]
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]
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]
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]
Please could the format of the location be made more normal? It looks awful (at least on IE8). I think it's the "line-height:130%" style. --Stfg (talk) 16:37, 1 October 2011 (UTC)[reply]
<span style="font-size:80%; line-height:130%;">example</span>
→ example), but there may be reasons not to use that...I don't know. Since this template just uses {{Small}}, I'll ask on the Small talk page and see if there's any resistance to changing it. – RobinHood70 talk 18:29, 3 October 2011 (UTC)[reply]I was expecting something really basic, like:
but the country handling does not seem to support that. So we should be doing:
as always? Varlaam (talk) 22:26, 2 April 2012 (UTC)[reply]
I've created a new sandbox version at Template:Film date/sandbox. The main changes are to allow dates/locations to be easily cited using named refs, and to use {{Plainlist}} to handle the list formatting. I've tried it on a few test cases, and believe it works, but would like to wait for some more testing before it's made "live". Any help would be appreciated.
This template (or rather, its auto-categorization) is currently being discussed at TfD.
--NSH001 (talk) 21:55, 2 May 2012 (UTC)[reply]
If you use this template as part of an item in a bulleted list, it generates incorrect HTML, namely a spurious closing </div>> tag immediately after defining the "plainlist" <div>>. Normally this won't matter, as it's never going to be used within a bulleted list within an infobox, but it did mess up the presentation of the documentation here - now fixed by removing the bulleted list format from the examples. Just noting it here, for the record. --NSH001 (talk) 19:52, 4 May 2012 (UTC)[reply]
{{film date|2013}} adds articles to the category "upcoming films", even when they have already been released. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 21:38, 21 March 2013 (UTC)[reply]
Is there anyway to use this template to show that a film was unreleased and place it in Category:Unreleased films? Aspects (talk) 15:50, 12 April 2015 (UTC)[reply]
When this template is used inside an infobox - and it's principal use seems to be in {{Infobox film}} - the location is rendered at 85% of 90% of base font size. This produces text too small for many visitors to read comfortably and breaches MOS:FONTSIZE which states "Avoid using smaller font sizes in elements that already use a smaller font size, such as infoboxes, navboxes and reference sections. In no case should the resulting font size drop below 85% of the page fontsize (or 11px).
"
It could be easily fixed by removing the five instances of {{Small}} wrapping the location parameters and references. --RexxS (talk) 00:44, 3 June 2015 (UTC)[reply]
Per some recent discussions the film project has had (Here is one discussion. There may be more, will continue to link if I find them), it has been determined that for any upcoming film, including the "[Year] film" category on the page is also acceptable. As such, I wanted to propose that this template be updated to include both Category:Upcoming films plus [[:Category [year] film]] when the film is still upcoming. This template should really be handling this, not being added by users. And with this, these two categories would be on the article until the release date hits, at which time, it will once again work as it does now, with the Upcoming films cat being removed from the article. - Favre1fan93 (talk) 18:41, 6 March 2016 (UTC)[reply]
@Favre1fan93: please would you amend it again so that it only puts the film in a (future) year category if that category does exist? 100 Years (film) has a planned release date of 2115 – yes, 100 years in the future – and that category was deleted per Wikipedia:Categories_for_discussion/Log/2016_July_25#Category:2115_films. To add to the confusion, it was empty at the time of closure due to anon edits (Special:Contributions/2600:8800:301:5900:E1DA:C611:1287:8ABA).Please also update the documentation, which currently says films with a future release date will only be categorised in Upcoming films. – Fayenatic London 20:17, 4 August 2016 (UTC)[reply]
Could you please remove the small text part of the template as MOS:ACCESS#Text says "Avoid using smaller font sizes in elements that already use a smaller font size, such as infoboxes, navboxes and reference sections."
--Emir of Wikipedia (talk) 22:10, 30 November 2017 (UTC)[reply]
Done, Thanks to Favre1fan93 for catching the problem. Cabayi (talk) 19:11, 1 December 2017 (UTC)[reply]
Could the nowrap be removed from the template? It causes the infobox the to expand. Now that the small text has been removed from the template, the nowrap causes the to infobox expand even more. For example, Harry Potter and the Deathly Hallows – Part 2. -- Wrath X (talk) 07:53, 3 December 2017 (UTC)[reply]
{{nowrap}}
seems to still be used here; see Altman as an example. Either that or something else is going on with this particular article's infobox. — Hugh (talk) 01:00, 15 March 2018 (UTC)[reply]Per the above discussion, please implement the most recent version of the sandbox (here), which removes the use of the "No wrap" template. - Favre1fan93 (talk) 18:24, 3 January 2018 (UTC)[reply]
See: Carmen Comes Home. The release date table header and date itself have a bullet in between. Opencooper (talk) 01:22, 25 December 2018 (UTC)[reply]
Splitting release info onto different lines fails badly:
wikitext | output |
---|---|
{{Infobox film| ...| released = {{film date |2001|2|3|France |2003|4|5|Ukraine |2005|6|7|Chile |2007|8|9|Kenya }}| ...}} |
)
)
)
) |
Could we trim outer whitespace and make it not? ―cobaltcigs 14:34, 9 December 2019 (UTC)[reply]
Template:Film date/sandbox. I've created a new version which offers the following advantages:
|df=
/|mf=
are unspecified. In the fullness of time, the latter parameters should probably be removed.class="nowrap"
to the entire surrounding div by default. So maybe people can stop writing their goddamn festival names like this
. Or maybe nothing will stop them. It's hard to say, actually…Updated example | ||||
---|---|---|---|---|
|
Done I do need to further improve how it handles degenerate input. Like intelligently coping with words where a number is expected, rather than requiring explicitly blank parameters after "incomplete" dates.
Also, I feel like nobody's really watching this page. @Lugnuts:? What do you think about item #2 in particular? ―cobaltcigs 13:42, 2 February 2020 (UTC)[reply]
See testcases. I think it's just about ready. ―cobaltcigs 12:15, 7 February 2020 (UTC)[reply]
I suppose the final question would be whether and how soon to remove the |df=y
/|mf=y
parameters, so that the date format can only be set using the standard templates which affect the entire article (see dmy example / mdy example / diff). Note that {{start date}}, {{birth date and age}}, et al. would benefit from the same functionality (which, as far as I know, is currently only used by citation templates). ―cobaltcigs 03:15, 8 February 2020 (UTC)[reply]
{{foo date [and foo]?}}
" templates, minus those which already contain {{use foo dates}}
templates. ―cobaltcigs 11:33, 13 February 2020 (UTC)[reply]Sorry, I can't say "change X to Y", but I can say, this template has two errors that need correcting. To see the lint errors, please install lintHint if you haven't done so already. See WP:Linterfor more info on that.
{{Film date|2011|9|22|Estonia}}
{{Film date|2011|9|22|Estonia}}
: Respectfully submitted, Anomalocaris (talk) 23:07, 22 March 2020 (UTC)[reply]
Misnested tag with different rendering in HTML5 and HTML4 | 2 |
Missing end tag | 2 |
Stripped tags | 2 |
|released=
parameter of {{Infobox film}}." It doesn't say that it's forbidden to use it anywhere else, including on a line beginning with bullet (*), number (#) or indent (:) markup. If it is forbidden to use it there, template documentation should say so. —Anomalocaris (talk) 03:17, 23 March 2020 (UTC)[reply]<div></div>
before this template can prevent lintHint from seeing the missing end tag and stripped tag. Here is a demonstration, where I will use the template twice. The first has the two lint errors, but the second one doesn't.{{Film date|2011|9|22|Estonia}}
{{Film date|2011|9|22|Estonia}}
<div></div>
more completely isolates the template from the indentation and markup, but apparently it does, and apparently the errors I thought were attributable to the template itself are actually attributable to an incomplete isolation of the template from indentation or bullet markup, which still doesn't make sense to me. —Anomalocaris (talk) 04:18, 23 March 2020 (UTC)[reply]In this edit[1], I added some tracking categories, as documented at Template:Film_date#Tracking (permalink).
This was prompted by finding that my bot task WP:BHGbot 5 (as proposed at WT:WikiProject Film#Diffusing_Category:Directorial_debut_films) was not proceeding as expected, because it assumed that all the articles in a "YYYY films" category were there because of direct category markup, e.g. [[:Category:1916 films]]
. That assumption turns out to be false in about 10% of cases, which the bot is skipping. I found that the reason down is the use of {{Film date}}, and created these tracking categories to see what use cases I needed to consider doing a second run with bot on these exceptions.
However, I hope hat the tracking categories will be useful for other purposes. I hope that User:cobaltcigs's Lua rewrite is implemented ... but please could it also populate these tracking categories? --BrownHairedGirl (talk) • (contribs) 03:10, 3 April 2020 (UTC)[reply]
Found an error with this template where the dates are displaying outside of the infobox. It's on both RoboCop and Basic Instinct, and I assume every other article which uses the template. Appears on both mobile and desktop as seen from my phone. May also be an issue with Template:Infobox film rather than this one. QuietHere (talk | contributions) 06:56, 19 September 2023 (UTC)[reply]