Template talk:Start date/Archive 01

From Wikipedia, the free encyclopedia
Jump to: navigation, search

Issues to resolve

Resolved: No consensus for merge after over a year.
  • no HH:MM:SS component as yet
  • Possible merge with {{End date}}, with flag for "start" or "end" property.
Andy Mabbett | Talk to Andy Mabbett 18:27, 31 July 2007 (UTC)
It would be hard to find a short, descriptive name for it; the obvious choices are already taken by other templates. — SMcCandlish [talk] [cont] ‹(-¿-)› 14:47, 1 September 2008 (UTC)

Month-year format wrong

This now generates dates like "Month, Year", which should instead be "Month Year" per WP:MOSDATE#Dates. --PEJL 22:09, 1 August 2007 (UTC)

OK, I fixed that. --PEJL 23:11, 1 August 2007 (UTC)

Space at end of date

There is an unnecessary space after each date. It is present in the html between the last link and the <span style="display:none"> tag. I have the same behaviour with SeaMonkey 1.1.3 and Internet Explorer 7. Doub 06:55, 18 August 2007 (UTC)

Yes, I've noticed that as well. It appears to only be possible to get rid of it if we use non-breaking spaces, as spaces are moved and removed by MediaWiki otherwise. I've done so. If anyone knows of a better way to fix this without using non-breaking spaces, please implement that. --PEJL 08:34, 18 August 2007 (UTC)

links to separate years and months

As per WP:CONTEXT#Dates, stand alone links to months and years should no be used. Can someone fix it so that the template does not create links to the year and month when there are no date present? Rettetast (talk) 23:00, 29 May 2008 (UTC)

I agree with this but I do not understand how to do it. Lightmouse (talk) 23:08, 29 May 2008 (UTC)

I managed to get rid of the stand alone month links, but the year links are still there. Rettetast (talk) 00:44, 30 May 2008 (UTC)

Multiple changes

I just made a fairly extensive edit to this template. First, I removed pad2digit, as that workaround is no longer needed (and it doesn't really make it too much harder to read when using padleft directly). Second, I cut out most of the non-breaking spaces, except for the one in the display:none span that is still needed (I haven't found a simple workaround for that yet). Finally, I removed the links on the year when the day is not present, per above. --- RockMFR 02:11, 12 June 2008 (UTC)

Edit protected


Change the code to:

<onlyinclude>{{#if: {{{4|}}}
  |{{#if: {{{5|}}}
     |{{padleft:{{{4}}}|2|0}}:{{padleft:{{{5}}}|2|0}}{{#if: {{{6|}}}
                                                   |:{{padleft:{{{6}}}|2|0}} }}, }} }}<!--ABOVE FOR TIME; BELOW FOR DATE
-->{{#if: {{{1|}}}
     |{{#if: {{{2|}}}
        |{{#if: {{{3|}}}
           |{{#ifeq: {{{df|}}}|yes|[[{{#expr:{{{3}}}}} {{MONTHNAME|{{{2}}}}}]]|[[{{MONTHNAME|{{{2}}}}} {{#expr:{{{3}}}}}]],}} [[{{{1}}}]]|{{MONTHNAME|{{{2}}}}} {{{1}}}}}|{{{1}}}}}}}{{#if: {{{7|}}}
              | ({{#ifeq: {{{7}}}|Z|UTC|{{{7}}}}})}}<!-- BELOW FOR hCalendar
--><span style="display:none"> (<span class="dtstart updated">{{#if: {{{1|}}}
  | {{{1}}}{{#if: {{{2|}}}
     | -{{padleft:{{{2}}}|2|0}}{{#if: {{{3|}}}
        | -{{padleft:{{{3}}}|2|0}} }} }}<!--
-->{{#if: {{{4|}}}
     | T{{padleft:{{{4}}}|2|0}}{{#if: {{{5|}}}
        | :{{padleft:{{{5}}}|2|0}}{{#if: {{{6|}}}
           | :{{padleft:{{{6}}}|2|0}} }} }} }} }}{{{7|}}}</span>)</span></onlyinclude>

This should remove the problem with leading zeroes in dates which is discouraged. Sceptre (talk) 12:08, 26 August 2008 (UTC)

Yes check.svg Done. I modified the code a bit, including updating the protection template. Cheers. --MZMcBride (talk) 04:44, 28 August 2008 (UTC)

Is someone going to fix this, or what?

{{Editprotected}} A bunch of the examples look to be completely hosed, wrapping to two lines and with extraneous ')"' stuff, while all of the ones that provide a time have no space between the time-and-comma and the date. — SMcCandlish [talk] [cont] ‹(-¿-)› 14:45, 1 September 2008 (UTC)

Reverted for now. Looking into what's going on... --- RockMFR 16:26, 1 September 2008 (UTC)
Okay everything should be good now. --- RockMFR 16:37, 1 September 2008 (UTC)

Add class="bday"


Please change <span class="dtstart updated"> to <span class="bday dtstart updated">; this will allow the template's use in infoboxes generating hCard microformats for organisations and other non- human entities, where {{Birth date}} is inappropriate, and where a YYYY or YYYY-MMM date may be required. Thank you. Andy Mabbett (User:Pigsonthewing); Andy's talk; Andy's edits 21:56, 10 September 2008 (UTC)

Wouldn't this cause potential problems in cases where it is not a birthdate? Whichever downstream users are making use of the microformats would have to deal with a lot of "birthdates" that aren't really birthdates. How about making the class optional? --- RockMFR 03:34, 11 September 2008 (UTC)
{{not done}} editprotected declined: Unclear consensus on change. —EncMstr (talk) 00:58, 13 September 2008 (UTC)
In such cases, the class will just be ignored, because in such cases the template will not be appearing inside an element with hCard's parent class="vcard" The effect will be just like when the existing hAtom class updated is ignored, when the template is used for hCalendar start-dates, and does not apepar inside an element with hAtom's parent class="hentry". No styles are applied to these classes, so it's quite safe. Andy Mabbett (User:Pigsonthewing); Andy's talk; Andy's edits 22:41, 15 September 2008 (UTC)
Okay. Done. --- RockMFR 16:14, 18 September 2008 (UTC)
Brilliant, Thank you. Andy Mabbett (User:Pigsonthewing); Andy's talk; Andy's edits 16:31, 18 September 2008 (UTC)