Use on templates

[edit]

This template is used on templates which are then transcluded onto articles. This results in situations such as this on 2010 United Kingdom general election where pages find themselves in multiple maintance cats (in this case the article has ((Use dmy dates|date=January 2020)) and the template (Template:2010 United Kingdom parliamentary election) has ((Use dmy dates|date=July 2013))). This is a problem because templates don't appear in the tracking categories, making it very difficult to see why 2010 United Kingdom general election is in Category:Use dmy dates from July 2013 (because it is transcluded from the template), effectively meaning that the tracking category for certain months aren't likely to be cleared, as it is very hard to work out why certain articles are still in them.

So would it be possible to allow pages in the template name space to appear in the tracking cats? Then we can put the templare in a <noinclude> tag.(I am not watching this page, so please ping me if you want my attention.) SSSB (talk) 13:33, 12 October 2021 (UTC)[reply]

I'm struggling to see what advantage having this template transcluded via another actually brings. Surely this is an article level template that should be used at an individual article level. Having a template coded with ((Use dmy dates|date=January 2020)) so that it puts all of its articles in the 2020 category, regardless of if they truly should be there, seems a bit odd. What massive advantage am I missing? - X201 (talk) 13:54, 12 October 2021 (UTC)[reply]
I do not think that this set of templates should be used in the template namespace but only in article namespace. Otherwise you can end up with conflicting entries on some articles. i.e. ((use dmy dates)) in the article and ((use mdy dates)) from a transluded template. I have been attempting to resolve this situation by removing the one in the template. Keith D (talk) 16:28, 12 October 2021 (UTC)[reply]
I agree. Templates that cause dates to be shown should be coded in a way that allows date formats to be customised by a parameter if they don't obey the article level template. They should not impose their own format. Peter coxhead (talk) 16:34, 12 October 2021 (UTC)[reply]
Is it still worth having the cats list those in the template space, so we can track and remove them - or can we get a bot to remove them for us? SSSB (talk) 16:31, 12 October 2021 (UTC)[reply]
There are times when it is valid to place ((use DMY dates)) (or similar) in a template; but when that is done, it must be inside <noinclude>...</noinclude>. --Redrose64 🌹 (talk) 20:41, 12 October 2021 (UTC)[reply]
I have modified the documentation here and at ((use mdy dates)) to reflect the above discussion, and I have checked all of the tranclusions in template space to ensure that they are properly noincluded (or removed, in the case of stub templates). – Jonesey95 (talk) 15:56, 7 July 2022 (UTC)[reply]

Should all articles have a dmy/mdy template?

[edit]

Input is welcome at Wikipedia talk:Date formattings#Should all articles have a dmy/mdy template?. – Uanfala (talk) 01:14, 21 April 2022 (UTC)[reply]

"High-use" template glitch?

[edit]

I was just looking at the script documentation page and was mildly shocked to read that "This template is used on approximately 1,530,000 pages, or roughly 3% of all pages." It made me wonder if the number if articles on English Wikipedia have exploded astronomically since I last checked. -- Ohc revolution of our times 20:10, 6 May 2022 (UTC)[reply]

You can use ((high use |no-percent=yes)) which will suppress the 'percent of all pages' annotation.
—Trappist the monk (talk) 21:46, 6 May 2022 (UTC)[reply]
Thanks, will do. -- Ohc revolution of our times 22:06, 6 May 2022 (UTC)[reply]
Pages here does not mean 'articles' only: it includes redirects, talk pages, categories, user pages... – Uanfala (talk) 13:46, 7 May 2022 (UTC)[reply]

Whitespace

[edit]

Might a recent change be causing whitespace at the top of (some) articles? Maybe ones that weren’t affected by having a blank line between the infobox and lede previously. See this page, which I've since fixed. The other template at the top of that article is Use British English, which hasn't been modified recently. I've seen this issue in many articles recently, which is a concern. Seasider53 (talk) 22:36, 14 June 2022 (UTC)[reply]

Because the fix for the extraneous whitespace was to remove an extra line feed (U+000A, \n) character from the article, this template cannot be the thing that inserted that LF. In fact, that extraneous line feed has been in the article since the article was created.
—Trappist the monk (talk) 23:00, 14 June 2022 (UTC)[reply]
I don't think it was, though (or maybe, more likely, that was a bad example). I've removed blank lines from such locations in roughly twenty articles of mine recently that I know didn't have them to begin with. I'll try to find them. Seasider53 (talk) 23:13, 14 June 2022 (UTC)[reply]
Did they all use ((infobox church))? If so, this was the fix. The problem arose in this edit where Terasail (talk · contribs) added two newlines, instead of one (normal) or none (best). --Redrose64 🌹 (talk) 15:19, 15 June 2022 (UTC)[reply]
My bad, I will make sure to avoid adding unnecessary newlines in the future. Terasail[✉️] 17:53, 15 June 2022 (UTC)[reply]

General discussion regarding use of this/these templates

[edit]

Is this the system that we should be using to monitor the consistent use of dates in the articles? Does it need to be done at all? Is there a better way to go about it? Please drop your ideas and/or suggestions here. Dawnseeker2000 04:45, 21 December 2023 (UTC)[reply]

Yes,it needs to be done because editors tend to be lazy or nonobservant. I spend a lot of time making articles consistent - and then doing it again because a new editor uses his/her local format even when the entire article uses the other format.
I can't think of any better system and it is a lot better than the wild west we had before - and yes, we've tried real hard to think of better. It would be nice if the reader could have a preference to display them in his/her local format but there are technical problems doing this (US format has weird problems with grammar in many cases) and readers not logged in get which format?  Stepho  talk  06:21, 21 December 2023 (UTC)[reply]