Template talk:Timeline of release years

From Wikipedia the free encyclopedia

WikiProject iconTime Template‑class
WikiProject iconThis template is within the scope of WikiProject Time, a collaborative effort to improve the coverage of Time on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
TemplateThis template does not require a rating on Wikipedia's content assessment scale.
WikiProject iconHistory Template‑class
WikiProject iconThis template is within the scope of WikiProject History, a collaborative effort to improve the coverage of the subject of History on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
TemplateThis template does not require a rating on Wikipedia's content assessment scale.

Split colours for a given year[edit]

Unless I'm mistaken it's not possible to have two colours for separate items within the same year- to say have an item on 1997a and 1997b have distinct colours. Is this something that could be added? ERAGON (talk) 10:58, 22 November 2023 (UTC)[reply]

Not currently possible. Would require some work as by the time colors are being decided, we no longer know "1997a" or "1997b". We simply have an ordered list of "1997" items. -- ferret (talk) 16:22, 22 November 2023 (UTC)[reply]
I'd appreciate the feature if a refactor could be done to allow it. I'd encountered the limitation before, but today I was attempting to set up colours to categorise Quake releases by storyline, and ran into the issue of multiple releases in a single year attached to differing storylines. --ERAGON (talk) 21:36, 22 November 2023 (UTC)[reply]

Bug and feature add[edit]

Hey Ferret, wanted to bring up two things with you. First a bug I've been noticing: if you view any use of this template on mobile when it is the first thing after a subheading, that subheading is "squished" vertically to the left of the timeline rather than rendering properly above the timeline. See Mario Kart#Games on a mobile device if you can to see what I mean. Second, can an alignment parameter (|align=) be added? I believe this might need to be adjusted in the css styling, but floating right can stay the default, there just should be the options to set the table to float left, or non-float center. Thanks. - Favre1fan93 (talk) 15:50, 29 November 2023 (UTC)[reply]

This kind of styling question I'll defer to @Izno: -- ferret (talk) 15:57, 29 November 2023 (UTC)[reply]
The previous CSS is overly aggressive about some assumptions that I would need to see big evidence for. Correcting (at some speed).
|align= already exists. It supports only |align=left. It may not be documented. I see 0 reason to support any other alignment with this template given its general shape of being a long narrow table. (In general, the "let me put it wherever I want" is not generally useful for most templates.) Izno (talk) 00:28, 30 November 2023 (UTC)[reply]
@Izno: There needs to be some ability to align center with the parameter or hard override the styling with div spans. I know and understand in likely 99% of all cases with this template this would not be needed as you said, but center would be useful when the timeline is meant to be the sole thing in its section. Having it float right or left and using a {{clear}} below is not really visually ideal. The specific example I am looking at here is ultimately for use with this, which is a desired implementation in Draft:Marvel Cinematic Universe timeline and the work that's being done to move this to mainspace. - Favre1fan93 (talk) 15:52, 30 November 2023 (UTC)[reply]
You'll need to get consensus. I do not think this template is intended to be a section all to itself in any way whatsoever and if that's really a use case you are considering, a wikitext table or simple list (like some of the other content in the draft page) would be preferable. Similar comment for if you intend the section to be a short, potentially summary style section. Izno (talk) 21:03, 30 November 2023 (UTC)[reply]
I don't see why I'll need to get consensus for full functionality of an existing parameter. If |align= didn't exist, then sure, I'd understand that. But since it does, it should have full alignment functionality to cover left, right, and center, not partial as it is now. - Favre1fan93 (talk) 16:31, 6 December 2023 (UTC)[reply]

Range coloring isn't working[edit]

I used this Template on the page Ben 10, but year color ranges aren't working. I triple checked all the parameters and tried purging the page; But, still no use. Could you please check what is the problem with it? 𝓥𝓮𝓼𝓽𝓻𝓲𝓪𝓷24𝓑𝓲𝓸 (ᴛᴀʟᴋ) 15:50, 21 March 2024 (UTC)[reply]

@Vestrian24Bio The module was never tested with years that have only 3 digits. That is the issue. It currently does a regex for four digits. @Izno I pretend I don't know regex, but I think we just need to replace %d%d%d%d with %d{1,4}? Or even just %d+. -- ferret (talk) 16:15, 21 March 2024 (UTC)[reply]
Added a 'zero' to the year ranges to make them four digit numbers, and now it works fine. Thank you! 𝓥𝓮𝓼𝓽𝓻𝓲𝓪𝓷24𝓑𝓲𝓸 (ᴛᴀʟᴋ) 16:34, 21 March 2024 (UTC)[reply]
Also, There's an event for 2031, but it isn't dispplayed; why is that? 𝓥𝓮𝓼𝓽𝓻𝓲𝓪𝓷24𝓑𝓲𝓸 (ᴛᴀʟᴋ) 16:36, 21 March 2024 (UTC)[reply]
@Vestrian24Bio The automatic year detection only looks "3 years" ahead. Remember this was originally for release dates, which can't really happen in the future. Add "last = 2031". -- ferret (talk) 17:56, 21 March 2024 (UTC)[reply]
Okay, Thanks 𝓥𝓮𝓼𝓽𝓻𝓲𝓪𝓷24𝓑𝓲𝓸 (ᴛᴀʟᴋ) 02:32, 22 March 2024 (UTC)[reply]
I would say this is the wrong template to use if you're trying to depict a fictional timeline (which you should not try to do anyway per MOS:UNIVERSE). Izno (talk) 19:40, 23 March 2024 (UTC)[reply]