Template talk:Timeline of release years

Bug and feature add
Hey, 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 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)


 * This kind of styling question I'll defer to -- ferret (talk) 15:57, 29 November 2023 (UTC)
 * 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 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)
 * 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)
 * 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)
 * 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)

Range coloring isn't working
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)


 * @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)
 * 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)
 * Also, There's an event for 2031, but it isn't dispplayed; why is that? 𝓥𝓮𝓼𝓽𝓻𝓲𝓪𝓷24𝓑𝓲𝓸 (ᴛᴀʟᴋ) 16:36, 21 March 2024 (UTC)
 * @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)
 * Okay, Thanks 𝓥𝓮𝓼𝓽𝓻𝓲𝓪𝓷24𝓑𝓲𝓸 (ᴛᴀʟᴋ) 02:32, 22 March 2024 (UTC)
 * 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)