🇮🇷 Iran Proxy | https://www.wikipedia.org/wiki/Module_talk:Episode_list/doc
Jump to content

Template talk:Episode list

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia


duplicate-ids

[edit]

See Adventure_Time_season_2#Episodes, each cell in the Prod.code column generates a "pc1002" ID. On Module:Episode_list#L-281, plese fix it Shizhao (talk) 07:44, 1 September 2025 (UTC)[reply]

It is recommended to modify line 281 to the following code:
attr('id', 'pc' .. idTrim(idTrim(args.ProdCode, ' ----') .. math.random(1000), '<'))

Shizhao (talk) 07:57, 1 September 2025 (UTC)[reply]

why would a random number be a good idea for an id? How would know what to link to? Also, the ID that should be applied here, is #epnumber, so Adventure Time season 2#ep27. Gonnym (talk) 08:00, 1 September 2025 (UTC)[reply]
you're right. So what is the best way to fix this problem? Shizhao (talk) 08:06, 1 September 2025 (UTC)[reply]
I'm trying to understand what the problem is. The "ep" id works, so what is the issue? Gonnym (talk) 08:08, 1 September 2025 (UTC)[reply]
The production numbers do still use an ID, regardless of what ID in the row should be used, and duplicate HTML ID's can produce accessability issues. For the above episode link you've given, while using a random number would be a bad idea, the production code cell should have an ID of #pc1002-029 (using the full unique production code). -- Alex_21 TALK 10:03, 1 September 2025 (UTC)[reply]
 Partly done: I've fixed the issue. On Module:Episode_list#L-81, string.find("1002-029", ' ----') was a RegEx pattern, thus removing everything after the "1002". I have changed this use to plaintext; string.find("1002-029", ' ----', 1, true) adds the parameters |init=1 (start at the start of the string, default behaviour), and |plain=true (make the search for plaintext and not RegEx - this is the important bit). The line at Module:Episode_list#L-281 is only meant to remove the literal string of ' ----'.
All should work now; see Adventure Time season 2#pc1002-029. -- Alex_21 TALK 10:14, 1 September 2025 (UTC)[reply]

Add an option to merge the director and writer cells.

[edit]

Some shows/episodes combine the directing and writing credits. For those, it would be nice to have an option to merge the "Directed by" and "Written by" cells. ~2025-31468-71 (talk) 23:05, 15 November 2025 (UTC)[reply]

Do you have an example of this? Why not just use |DirectedBy=PersonA|WrittenBy=PersonA? -- Alex_21 TALK 00:32, 16 November 2025 (UTC)[reply]
In List of Battle for Dream Island episodes. Battle for Dream Island was originally made by two kids, and only later expanded into an entire professional team. So early episodes (prior to 2017) do not have credits at all, and we just blanket credit the two original creators. It's a bit awkward to use DirectedBy and WrittenBy separately for those early episodes, because, strictly speaking, we do not know who wrote and who directed, or if separating those roles even makes sense. ~2025-31468-71 (talk) 06:13, 16 November 2025 (UTC)[reply]
I will note that shows do periodically merge the two credits, Stranger Things for example frequently lists "Written and directed by The Duffer Brothers" rather than separating them out. However, this is rare, and even then I think that Alex's suggestion should suffice. This is how List of Stranger Things episodes was handled. If these early episodes "do not have credits at all", I question how we know that these "two kids" wrote and directed those episodes? There are no sources on the episode list so it appears to be WP:OR? TheDoctorWho (talk) 06:46, 16 November 2025 (UTC)[reply]
I agree that there should be a source in the article concerning that; it could certainly be contested at any point.
Another option would be to user |directorR=Directed and written by in the {{Episode table}}, so that the column header appears as "Directed and written by", and then continue to use |DirectedBy=... in the episode lists as usual. -- Alex_21 TALK 07:20, 16 November 2025 (UTC)[reply]