Template talk:Episode list

From Wikipedia, the free encyclopedia

Protected Template:Episode list has been protected indefinitely. Use {{editprotected}} on this page to request an edit.
TV This article is part of WikiProject Television, an attempt to build a comprehensive and detailed guide to television programs and related subjects on Wikipedia. If you would like to participate, you can edit the article attached to this page, or visit the project page, where you can join the project and/or contribute to the discussion.
NA This page is not an article and does not require a rating.
Warning Due to hundreds of transclusions of this template in a single article, template size is important and changes should be made only when necessary.

Contents

[edit] Usage

  • For lists that don't wish to use screenshots or an images column, editors simply need to remove the |Image= parameter.
  • For lists that only want to list titles and air dates, etc, and do not want to include images and/or summaries can remove |ShortSummary= and |Image=, which will remove the colored line separator and any cell coloring.

[edit] Parameters

Episode list parameters (and basic guidelines)
EpisodeNumber
(optional)
A number representing the episode's order in the series. For example, the first episode would be 1 or 01, and so on.
EpisodeNumber2
(optional)
A second episode number column. Useful for when a series aired in a different order, or only included certain episodes, etc.
Title The title of the episode. The title will appear bold and in "quotes" when rendered, so it is not necessary to place them in quotes before hand. Only link to an episode article if it's already been created.
AltTitle
(optional)
An alternative title, such as the title of the episode in Japanese if it is an anime, or a title that was originally changed. It will be listed below Title and be presented in "quotes".
Aux1
Aux2
Aux3
(optional)
Optional parameters. The meaning is specified by the table header.
OriginalAirDate
(optional)
This is the date the episode first aired on TV.
AltDate
(optional)
The next notable air date, such as the first air date of an anime in English.
ProdCode
(optional)
The production code in the series
ShortSummary
(optional)
A short summary of the episode. When writing these summaries try to write just information to identify the episode. Like with the screen shot, make summaries specific to that episode (as in, a description that would normally not be confused with another episode). If possible, keep summaries under three or four sentences. Further details should not be provided on the List of episodes, but instead on that series' Plot summary of the main article, the Plot summary article, or the episode's own article.
LineColor
(optional)
Hex codes for the separator line between episode entries. Use code without the #. #00ff00 would be entered as 00ff00. When none is defined the color defaults to "#CCCCFF".


Image parameters
Image
(optional)
A screenshot that represents that episode, and if possible, is specific to that episode. You do not need to include "[[Image:" before the file name, or "]]" after the file name, as this is already done for you. For example, you'd usually type [[Image:Show Name ep16.jpg]] to include an image on an article, but here you only need Show Name ep16.jpg


If an image of that episode has not already been uploaded to Wikipedia, you may upload your own screen shot as Fair use. Image sizes should be max'ed around 375x280, but no less than 125x94. When adding an image please indicate under the Licensing pop-up menu that it is a "TV screenshot", say which series and episode it is in the Summary (for example "This is a screenshot from Show Name episode 16"). File names, if possible, should follow the format TV_Show_Name_ep00.jpg. If you did not create the screenshot yourself then state the last URL or source where you got it from.

Remember you must make a fair use rationale statement in the image summary as well! See Wikipedia:Image description page#Fair use rationale. For an example see Image:Kamisama Kazoku ep01.jpg

ImageSize
(optional)
Sets the screenshot size. When no ImageSize is defined it defaults to 125px. It is a good idea to to stick to a range of 100px at the smallest and 150px at the largest, depending on aspect ratios and making good use of horizontal screen space.


This is where information from the template is placed when rendered ({{{LineColor}}} not shown, since there's no text to display, just a color):

[[Image:{{{Image}}}|125px|]] "{{{Title}}}"
"{{{AltTitle}}}"
{{{Aux1}}} {{{Aux3}}} {{{OriginalAirDate}}} {{{AltDate}}} {{{ProdCode}}} {{{EpisodeNumber}}} {{{EpisodeNumber2}}}
{{{ShortSummary}}} 

[edit] Using the template

When using optional parameters (such as Aux1, AltDate, etc) only list the parameters that are being used, and adjust the table headers accordingly. This will help avoid confusion when one entry has a parameter filled out and another does not. A table cell will be open for a listed parameter, whether it is filled out or not.

To apply an entry to an episode listing add the following where the episode would go in the List of episodes.

{{Episode list
 |EpisodeNumber=
 |EpisodeNumber2=
 |Image=
 |ImageSize=
 |Title=
 |AltTitle=
 |Aux1=
 |Aux2=
 |Aux3=
 |OriginalAirDate=
 |AltDate=
 |ProdCode=
 |ShortSummary=
 |LineColor=
}}

Because this is only part of a WikiTable, you first need to open the WikiTable. You need to edit this example according to the options that you want to show in your table. For example to create a list with: Screenshot, Title, Original airdate, Production code and Episodenumber, but NOT with Aux1, Aux2 and AltDate colums.

{| class="wikitable" style="width:98%;"
|-
! width=125|Screenshot !! Title !! width="120"|Original airdate !! width="120"|Production code !! width="20"|#

The Television episode template(s) would the follow here

{{Episode list
 |EpisodeNumber=01
 |Image=Wikipedia-screenshot.png
 |Title=[[Cartman Gets an Anal Probe]]
 |OriginalAirDate=[[August 13]], [[1997]]
 |ProdCode=101
 |ShortSummary=Space aliens implant a transmitter in [[Eric Cartman|Cartman]] and abduct [[Kyle Broflovski|Kyle]]'s brother.
 |LineColor=333333
}}

After the final episode entry/template you will need to close the WikiTable with:

 |}

[edit] Example

Screenshot Title Original airdate Production code #
"Cartman Gets an Anal Probe" August 13, 1997 101 01
Space aliens implant a transmitter in Cartman and abduct Kyle's brother. 


[edit] Full Example

This example shows a couple more of the options the table could have

{| class="wikitable" style="width:98%;"
|-
! width=125|Screenshot !! Original Title (top)<br />Censored Title (bottom) !!  Censored
!! Director !! Writer !! width="120"|Original airdate !! width="120"|UK airdate !! width="50"|Production code !! width="20"|#
{{Episode list
 |Image=Wikipedia-screenshot.png
 |Title=[[Cartman Gets an Anal Probe]]
 |AltTitle=Cartman Gets an $*&% Probe
 |OriginalAirDate=[[August 13]], [[1997]]
 |AltDate=[[October 23]], [[1997]]
 |Aux1=Censored
 |Aux2=Someone
 |Aux3=Someone
 |ProdCode=101
 |EpisodeNumber=01
 |ShortSummary=Space aliens implant a transmitter in [[Eric Cartman|Cartman]] and abduct [[Kyle Broflovski|Kyle]]'s brother.
 |LineColor=333333
}}
|}
Screenshot Original Title (top)
Censored Title (bottom)
Censored Director Writer Original airdate UK airdate Production code #
"Cartman Gets an Anal Probe"
"Cartman Gets an $*&% Probe"
Censored Someone Someone August 13, 1997 October 23, 1997 101 01
Space aliens implant a transmitter in Cartman and abduct Kyle's brother. 

[edit] No image example

When |Image= is removed the image column won't display and the episode numbers will be presented on the left side instead of the right.

{| class="wikitable" style="width:98%;"
|-
! width="20"| # !! Title !! Director !! width="120" | Original airdate !! width="120" | Production code
{{Episode list
 |Title=[[Cartman Gets an Anal Probe]]
 |OriginalAirDate=[[August 13]], [[1997]]
 |Aux1=Someone
 |ProdCode=101
 |EpisodeNumber=01
 |ShortSummary=Space aliens implant a transmitter in [[Eric Cartman|Cartman]] and abduct [[Kyle Broflovski|Kyle]]'s brother.
 |LineColor=333333
}}
|}
# Title Director Original airdate Production code
01 "Cartman Gets an Anal Probe" Someone August 13, 1997 101
Space aliens implant a transmitter in Cartman and abduct Kyle's brother. 

[edit] Tips

It may be helpful to include a hidden message that will appear when someone edits the article. Placed above the table headers and under the article section, such as:

==Episodes==
<!-- For help with this template see http://en.wikipedia.org/wiki/Template_talk:Episode_list

And don't forget, all images uploaded MUST have a fair use rational written up. See http://en.wikipedia.org/wiki/Wikipedia:Image_description_page#Fair_use_rationale

-->

This message won't be visible when normally viewing the article. A message such as this notes where one can get help for the template as well as reminds editors about the fair use requirements for screenshots.

[edit] Template Discussions

Archive
Archives

See also Wikipedia talk:WikiProject List of Television Episodes and Template talk:Japanese episode list.

[edit] Page anchors

While on the topic of improving the template, I keep forgetting to note the page anchors via "id" thing that Farix and I were playing around with a few nights ago. I can't remember the proper terminology for it, but I think it's "page anchor". Like the Table of Contents, it would allow us to jump to a specific point in an article, such as a specific episode on a list. For example List of The X-Files episodes#ep21-121. Right now it's set up to use either the EpisodeNumber or ProdCode parameters as the last value, [[List of Show Name episodes#(ep or pc)(number)]]. Here's a copy of the discussion Farix and I were having:

Basically I figured one would use one or the other, but not both. I've seen lists where the ep number resets for each season, so I figured another alternative might be good for those lists. But yeah, there's probably a better way of doing that.. Any ideas? -- Ned Scott 22:35, 8 August 2006 (UTC)

Including the season number may be a way to go about it, but that means adding an extra field to the templates. But perhaps the best way would be to use the episode title instead. --TheFarix (Talk) 22:42, 8 August 2006 (UTC)

Actually, after switching List of Ōban Star-Racers episodes to the Episode list template, I realized that won't work either because episode articles are linked to the title. Hmmm, maybe having the episode link and the episode title as separate fields, like what is done with some of the cite templates, may work. That will free up the episode name to be used as an ID. --TheFarix (Talk) 01:42, 9 August 2006 (UTC)
While the titles are more likely to not over-lap, using the numbers makes for a smaller URL/wikilink. It might be easier to just suggest a standard numbering method for the EpisodeNumber parameter. I'm just pleased to see that the basic concept of it works, so it'd probably be a good idea to work out the finer details on WT:LOE. -- Ned Scott 02:35, 9 August 2006 (UTC)

So that's basically where we're at. Suggestions? Comments? -- Ned Scott 05:42, 12 August 2006 (UTC)

[edit] New template code being tested

New template code being tested. See WT:LOE#un-filled parameters are no longer an issue -- Ned Scott 09:48, 26 August 2006 (UTC)

[edit] Problem

Curly braces are showing up in the color bar, at least on my monitor. - Peregrinefisher 01:24, 3 September 2006 (UTC)

oops, fixed. -- Ned Scott 03:55, 3 September 2006 (UTC)

[edit] Color bar

How can I change yhe color of the color bar? Can I do it once per table or does it have to be done for each row? - Peregrinefisher 04:06, 3 September 2006 (UTC)

  • |LineColor= For the bottom line color, value in hex web colors without pound sign (#)
  • |TopColor= For the "title" row, value in hex web colors without pound sign (#)
for each episode row. I haven't figured out a way to make it so that you can set a value once and just use that, yet. -- Ned Scott 04:57, 3 September 2006 (UTC)
Thanks. Is there a way to put the color bar below the title bar, above the first entry? - Peregrinefisher 05:12, 3 September 2006 (UTC)
I probably should have had it do that by default, but I don't want to change it now without knowing how it might effect some articles. I've just been putting in the extra line manually by putting it in right after the table headers. For example:
{|class="wikitable"
! Screenshot !! Title !! Original air date !! E#
|-
| colspan="3" bgcolor="#FFA040" |
{{Episode list
Make colspan however number of Columns you have (add up title, episode number, prod, etc) and the bgcolor= whatever value you used for LineColor. -- Ned Scott 05:25, 3 September 2006 (UTC)

[edit] More Aux fields?

What should I do if I want to include more than 2 fields that don't have a special parameter? I want to include the episodes number overall and within a season. Writer and Director are allready taking up Aux1 and Aux2. I could use prod num or alternate date, but that doesn't seem right. - Peregrinefisher 22:27, 3 September 2006 (UTC)

There's actually |EpisodeNumber2= I Just forgot to add it to the instructions :D -- Ned Scott 00:51, 4 September 2006 (UTC)

[edit] References in the table header

What's the best way to put references in table header? Say for tv.com and production code. I did this, but it doesn't look right. - Peregrinefisher 23:03, 5 September 2006 (UTC)

[edit] Limit?

I've been standardising the list of Yu-Gi-Oh! episodes and there's something that I can't really seem to work out. It's at my Work Area. It can only go up to 210 boxes and then it goes screwy. I've tried removing some and it only goes up to 210 boxes. Maybe you could take a look, I'm not good at this coding stuff. (please don't point me to Template:Japanese episode list, I've worked on this for 6 hours and I just found out about that template, and I don't want to do it all over again. Template:nihongo works better for me.) - Zero1328 Talk? 09:47, 8 September 2006 (UTC)

That's strange as hell, I've never seen it do that before. I'll see what I can find out, if this is a limit to the templates or to the tables (probably a limit on the template, from the looks of it.) -- Ned Scott 10:56, 8 September 2006 (UTC)
Have you been able to work anything out? I can't really think of any way to overcome this. {{digimon episode}} doesn't seem to have any problems, maybe there's a difference somewhere. - Zero1328 Talk? 08:52, 13 September 2006 (UTC)
This is very strange, I seemed to have fixed it, but I don't really understand why what I did fixed it. I basically took out the <includeonly> and self-translcuding example of Template:Episode list and... that seemed to fix the problem. -- Ned Scott 08:11, 14 September 2006 (UTC)
That is definitely very wierd. Well, thanks for "fixing" the problem, I guess. - Zero1328 Talk? 08:52, 14 September 2006 (UTC)
It didn't seem to fix the problem when I put it in the actual article. [1] I have a little theory, maybe the size of the template code is too long and you "fixed" it by reducing the size. {{digimon episode}} is much smaller. That's all I can think of. - Zero1328 Talk? 01:28, 17 September 2006 (UTC)
Sorry it's taken my so long to respond. Yeah, it does seem that the size of the template code might be the problem. I have some ideas to make the template more efficient, and that should hopefully push the limit back further. Or a special split template could be made for really high use TV shows. -- Ned Scott 07:03, 22 September 2006 (UTC)

See also: #Limits part 2

[edit] Matching code?

If I want to create a matching table, how would I go about doing that? I really love the layout of this table and while I get most of the wiki table code, I see two problems. First is the separator line between each episode entry, then the photo and caption. I'm sure I can figure out the rest, but could someone give me a code hint on how to accomplish those two things?

I worked on an episode list for Rome which is located here. I suggested it on the talk page, but someone rightly pointed out that if we implement it, then the other tables in the Rome article should match.

I'm willing to work on those tables, but I'm having trouble finding a way to put in that separator line (without text) and the photo thing. Any help is much appreciated. MagnoliaSouth | Talk 04:50, 17 September 2006 (UTC)

I think I have it! I'll share the code here for those who might have the same problem I have had.
{| class="wikitable" style="width:95%;"
|-
! A !! B !! C !! D 
|-
! E !! colspan="3" | F 
|-
| align="center"| a
| align="center"| b
| align="center"| c
| align="center"| d
|-
| align="center"| e
| style="background:white" colspan="3" | f
|- style="background:#CCCCFF; height:2px"
| colspan="4" |  
|}
It will look like this:
A B C D
E F
a b c d
e f
The only thing I changed was cells A and E. I added an extra box below A to add a caption, but if anyone prefers to follow the format exactly, then it would be like this...
{| class="wikitable" style="width:95%;"
|-
! A !! B !! C !! D 
|-
| align="center" rowspan="2"| a
| align="center"| b
| align="center"| c
| align="center"| d
|-
| style="background:white" colspan="3" | f
|- style="background:#CCCCFF; height:2px"
| colspan="4" |  
|}
and will look like this (note that 'E/e' is missing):
A B C D
a b c d
f
I've no idea if this will help anyone, but thought I'd share it in any case. MagnoliaSouth | Talk 08:27, 17 September 2006 (UTC)
You seem to have the basic idea down. List of Excel Saga media is also a good example of what you are trying to do, in that it uses an episode list template and then matches the style manually with the other tables on that page. -- Ned Scott 08:50, 17 September 2006 (UTC)

[edit] Line color

The colored seperator line isn't showing up in my IE. Is there anything we can do? Ned? - Peregrinefisher 08:49, 31 October 2006 (UTC)

I can confirm this issue for IE7. The template was built before IE7 really came out. We need to review this issue.--Will2k 17:35, 7 November 2006 (UTC)
I knew I forgot to do something.. There is an alternative that will show up in IE, but I didn't include it right away because it looked really ugly with some lighter colors. I'll throw up some examples in a bit here, so you can see what I mean. It'll probably be fine, just some lists should change the color they use on some of the lines. -- Ned Scott 08:34, 16 December 2006 (UTC)

[edit] Broken column span

Check out List of South Park episodes. There are some extra columns without data showing up there.... Is this the result of a recent template change?--GunnarRene 16:52, 17 January 2007 (UTC)

I'm not seeing it in Safari (web browser) or the Mac version of Mozilla Firefox. What browser are you using? -- Ned Scott 17:13, 17 January 2007 (UTC)

[edit] Image Size

Is there a way of entering the image size just at the top, instead of entering it for each episode imageGman124 21:18, 5 March 2007 (UTC)

No there is not. You can leave the option empty, and then it will default to 125px --TheDJ (talkcontribsWikiProject Television) 00:26, 6 March 2007 (UTC)
As DJ said, there currently is not a way, but I would love to find one. This would also help out for those who choose to use custom colors for the line dividers and cell shading. -- Ned Scott 02:43, 6 March 2007 (UTC)
ThanksGman124 05:41, 6 March 2007 (UTC)
Maybe we should make a template for the table header part of the LOE? Is there any way a header can control these types of things? - Peregrine Fisher 06:09, 6 March 2007 (UTC)
Not without an overall template, I'm afraid. Maybe A bug could be filled for a {{VARIABLE}} Magic wordthat would allow a given variable to beset fro severables templates on a page à la {{DEFAULTSORT}}? I somehow doubt it's workable, though.Circeus 22:00, 7 March 2007 (UTC)

[edit] Limits part 2

See also: #Limit?

I'm having the same problem right now on List of One Piece episodes. I'm trying to add episode 297, but it goes all screwy, like Zero said. Also, Template:One Piece general at the bottom of the page hasn't been working for a while either, and I think it's related. The Splendiferous Gegiford 18:35, 4 February 2007 (UTC)

There appears to be the same problem in List of ER episodes, the template doesn't work correctly for the last episodes. This is not caused by the large number of transclusions, but by the article size: if your shorten some of the episode descriptions (and look at the preview) the problem goes away; if you insert some text somewhere, it happens earlier in the list. -- memset 16:25, 10 March 2007 (UTC)

it seems we really need to revisit this issue. --TheDJ (talkcontribsWikiProject Television) 17:14, 10 March 2007 (UTC)
We just started making the entries by hand on List of One Piece episodes after the point where the template doesn't work. If we can fix the template that would be best, but it's a workaround that works pretty well. - Peregrine Fisher 18:48, 10 March 2007 (UTC)
Yeah, but that still kinda sucks of course. We should get a wikimedia coder to explain exactly what's going on here. --TheDJ (talkcontribsWikiProject Television) 19:12, 10 March 2007 (UTC)
We could ask at Help talk:Table. I should say that everytime someone from there helps me with something difficult, its User:EncMstr. He seems to know a lot about tables. - Peregrine Fisher 19:16, 10 March 2007 (UTC)
I asked at Wikipedia:Requested templates. -- memset 21:28, 13 March 2007 (UTC)


Everyone's having the same problem because of Template limits. If you view the source for one of the impacted pages (e.g. List of One Piece episodes), you'll see this:

Pre-expand include size: 2042426 bytes
Post-expand include size: 474690 bytes
Template argument size: 593060 bytes
Maximum: 2048000 bytes

Every time a template is used, regardless of whether or not all or some of the parameters being used, it stacks up and creates a large pre-expand include size. Once that pre-expand include size hits the maximum (currently 2048000 bytes), template transclusion begins to fail. The same problem was seen in Template:Length conversion when someone tried to combine every type of length conversion into a giant template using #switch's. One patch/temporary fix is to move all documentation to a separate page, doing what is called Template doc page pattern. That can help alleviate some of the issue. With this template, it's using something I've never seen and don't understand: ParaCheck123. If that is truly necessary, then one option is shortening it to PC123. Any time a template is transcluded hundreds of times, there's exponential growth with something that seemingly simple. If ParaCheck123 isn't necessary, removing it would free up a lot of pre-expand size, and the problem would probably be fixed. Cheers. --MZMcBride 01:04, 14 March 2007 (UTC)


OK, so we need to seriously cut down on the bytes in the template itself. That definetly can be done. For instance i'm pretty sure: {{ #ifeq: {{{Aux1|ParaCheck123}}} | ParaCheck123 | 0 | 1 }} + can also be written as {{#ifeq:{{{Aux1|}}}||0|1}}+. It won't be as readable, but it'll work. We can also save a ton of whitespace, and indeed move the doc to somewhere else. {{editprotected}} Request to temporarily make this page semi protected in order to do some serious weeding. --TheDJ (talkcontribsWikiProject Television) 02:54, 14 March 2007 (UTC)

If the template is updated, it should be done in one try, so there should probably be a temporary template page first. This template is transcluded thousands of times, and it's going to quickly cause a large spike in the job queue once the template is changed. Three ways to make it smaller are: remove whitespace, use {{/doc}}, and change "ParaCheck123" to "PC". Cheers. --MZMcBride 03:23, 14 March 2007 (UTC)
Also, Template:!! is used just once in this template, but that requires listing it at the bottom of every edit page that uses this template. That should be switched from {{!!}} to {{!}}{{!}} in order to stop that from happening. Or use a line break and it will only require one {{!}}. --MZMcBride 03:27, 14 March 2007 (UTC)
It's related to the over-all article size? Ah, this whole time I thought it was because the template had too many variables, but I guess that bit of info changes things. The "paracheck" however, is required or else all lists of episodes will display all possible columns, with or without them being listed in the article itself. This allows editors to keep optional table cells open without having to place a dash or something for that variable. -- Ned Scott 04:41, 14 March 2007 (UTC)

Ah, just thought of something we could cut out easily. TopColor, I've never seen it used (no one will miss it) and it can be safely cut. Not much, but it's something for now. Please replace template page contents with this. -- Ned Scott 04:49, 14 March 2007 (UTC)

Can "ParaCheck123" be shortened to "PC"? Doing so would free up 200000 bytes on a page with 200 episodes. Also per my comments above, this template should be updated as few times as possible and it should implement other byte-reducing measures when it is updated. Cheers. --MZMcBride 05:01, 14 March 2007 (UTC)
I put my proposed code here. --MZMcBride 05:07, 14 March 2007 (UTC)
I wanted to use something that would not likely be used in the template itself. It could be anything, really, just something uncommon. I guess some zany unicode character could work. -- Ned Scott 05:13, 14 March 2007 (UTC)
new and improved, ParaCheck123 is now replaced with "ʁ". There is also this second version which excludes centering the text in some columns, a minor formatting change, but gets rid a bunch of "align="center"" -- Ned Scott 05:22, 14 March 2007 (UTC)

We should make a test version of a "standard" page however to test if everything still works. But these chagnes will surely help --TheDJ (talkcontribsWikiProject Television) 05:40, 14 March 2007 (UTC)

also, I forgot to do the /doc thing (thanks DJ), which is now shown at User:Ned Scott/sandbox. -- Ned Scott 05:53, 14 March 2007 (UTC)
The spaces in lines like #expr: {{#ifeq:{{{Aux1|PC}}}|PC|0|1}}+ should be removed as well. See my sandbox for the code. --MZMcBride 05:57, 14 March 2007 (UTC)
this idea I had a while back would save a lot of data and solve the color bar problem in IE. Makes it look funny for articles that use a light color value, but that's a minor problem. I'll try to work this into my current sandbox copy. -- Ned Scott 06:13, 14 March 2007 (UTC)
Test of "average" (sort of) extreme episode list: User:Ned Scott/sandbox2, using User:Ned Scott/sandbox. -- Ned Scott 06:37, 14 March 2007 (UTC)

This not only uses less data, but the line colors there will now work in Internet Explorer. -- Ned Scott 07:06, 14 March 2007 (UTC)

The template in the sandbox seems to be a vast improvement. The current Template:Episode list stops at about 252 transclusions, while the newer User:Ned Scott/sandbox "template" stops at about 456 transclusions. Great work everyone! Now it just needs to be implemented.... --MZMcBride 23:25, 14 March 2007 (UTC)

If anyone's interested, I got the code down to exactly 2000 characters (coincidence!) here, and the results for sundry formats are here. The character count could be brought lower if a couple dozen spaces here and there were removed. My version uses wikitext tables, and not tr/td/th stuff. If the latter were implemented it could probably go well under 1000 characters. Of course, no need in being so efficient if makes the code unreadable. GracenotesT § 03:59, 15 March 2007 (UTC)

Without the "ParaCheck" (changed to "ʁ" in my sandbox version) then the template will break on most, if not all, of the articles that currently use it. It's used as a way to switch between images and no images formats, as well as triggering table columns without having to force a space or dash for that parameter in the article (some articles don't use Aux1 or Aux2, some only use Aux1, etc). -- Ned Scott 04:06, 15 March 2007 (UTC)
Then I am quite surprised why every item in User:Gracenotes/Sandbox works. Is it a coincidence, that I picked examples from articles for which my version will not break? GracenotesT § 04:27, 15 March 2007 (UTC)
If all parts are filled out then it's not a problem. The idea is that if a list is in-progress then table columns will still open up and maintain proper formatting. -- Ned Scott 04:36, 15 March 2007 (UTC)
See my example on User:Ned Scott/sandbox4. Also, there are three different formats (almost forgot about the 3rd) the template can make. One is screenshot and summary, two is summary only, and three is no image or summary (basic list, one line per episode, and no color line). -- Ned Scott 04:38, 15 March 2007 (UTC)
Ah, that works, although it might be best just to have separate templates (eg, Episode list, Episode list image). By the way, using "ʁ" isn't that bad of an idea, besides the fact that it takes up two bytes, while another character make take up only one. GracenotesT § 04:46, 15 March 2007 (UTC)
Actually, we did have a separate no images template originally, but I did not know about the added limits merging the two would have made at the time. Splitting them shouldn't be too hard, as a bot could be used to update only the articles that need to be. A bit more than just looking at whatlinkshere, since that won't tell you if it's image or no image, but still shouldn't be hard for a bot. -- Ned Scott 05:05, 15 March 2007 (UTC)
My version works, of course -- it just has a bug different set of features. Well, all that matters is that the size is down, and that all articles for which the new version will break are fixed beforehand. GracenotesT § 20:15, 15 March 2007 (UTC)

Oh, and then there's also Template:Japanese episode list. At the time I was fiddling around with the templates, I wanted to do something to make them more attractive for their adoption. I edit a lot of anime articles, and I knew that naming the parameters specifically (although only a few) can often be of a big help. This template also adds an additional title element for the Japanese character set. Other than that, it is the same as this template. -- Ned Scott 05:05, 15 March 2007 (UTC)

[edit] I think we're ready

{{editprotected}}

Just as about as stripped down as we can without breaking any articles, this version of my sandbox page is ready to replace the contents of this template. I have tested the sandbox template at User:Ned Scott/sandbox2, User:Ned Scott/sandbox4, and tested a few randomly picked articles (see this history for March 14th for different articles being tested with the sandbox template). All tests worked without any problems, except that some articles will need to change from using lighter colors in their color bars to look better. (This is something pretty much inevitable, since it's also the only way to fix the linecolor for Internet Explorer.) All we need now is an admin to copy this into the template. -- Ned Scott 05:57, 15 March 2007 (UTC)

Granted there is still room for improvement, but further work will likely take a bit longer and might require updating many of the articles that transclude the template. -- Ned Scott 05:58, 15 March 2007 (UTC)
Dag nabit, I came across an error that is in this version when I was changing Template:Japanese episode list to have the same updates. In a list that uses no images and uses both EpisodeNumber and EpisodeNumber2, EpisodeNumber2 breaks. Looking more into this.. -- Ned Scott 02:54, 16 March 2007 (UTC)
See this example (assuming when you click this the template has not been fixed). -- Ned Scott 02:59, 16 March 2007 (UTC)

It doesn't happen with ep1 and ep2 being both used when images are being used, so it has something to do when the template is triggered to flip the numbers from the right side (image format) to the left side (no image format). So far I haven't figured it out yet. -- Ned Scott 09:21, 16 March 2007 (UTC)

*smacks forehead* I had a {{!}} when I should have had a {{!!}}. It's fixed now, but I might test it a bit more before making making the edit request again. -- Ned Scott 09:57, 16 March 2007 (UTC)

updated template is ready to go. -- Ned Scott 09:34, 17 March 2007 (UTC)

Please revert today's edits, the updated version looks very silly in firefox, also very screwy in IE6. Matthew 11:38, 17 March 2007 (UTC)
Explain silly? Are you talking about the color bars? -- Ned Scott 11:49, 17 March 2007 (UTC)
There was borders, now there isn't, I do not see any discussion to remove them from this highly used template, also screws up in IE6, as stated, silly. Matthew
If you want us to revert code that was discussed and tested then you'll have to give a little more information. There's no reason the borders should not be displaying in Firefox. and "screws up" IE? Explain. -- Ned Scott

Image:LOE examples.png

Ned you're not sysop so you cannot revert. There was no discussion to implement these changes, just you leaving a few messages (PS: Do not remove my request, a sysop will accept or deny it). Matthew
There's nothing wrong at all. The border might be thinner, but that's because this is the first time the hight has had to be defined. Before this change IE didn't show the color line at all because IE doesn't handle tables correctly. -- Ned Scott 12:09, 17 March 2007 (UTC)
Can you show me a consensus to implement these borky changes? If not I see no reason why they should be kept at present, clearly a better way without messing the table needs to be found, it's quite apparent they should not look like that. Matthew 12:12, 17 March 2007 (UTC)
That's not how things work here, Matthew. We needed to cut down on the template's size, and correctly rendering a color line with proper code was one of the ways we did it. If for some wild ass reason we go back to the old line code that's one thing, but we sure as hell are not going to do a complete revert. It's slightly thinner in Firefox, and still needs some tweaking in IE to get it to work, if that is even possible. Again, IE never correctly rendered the lines in the first place. -- Ned Scott 12:18, 17 March 2007 (UTC)
That's because IE is a piece of junk, and yes that is exactly the way things work Ned, you get consensus to implement disputed edits. Matthew 12:21, 17 March 2007 (UTC)
And the changes were discussed on this very talk page... Don't tell me your browser can't even show you that much. -- Ned Scott 12:20, 17 March 2007 (UTC)
Show me the discussion stating lines should be frakked with? Matthew 12:21, 17 March 2007 (UTC)
Discussion is only needed if one can reasonably foresee a dispute. Even now.. I'm at a loss of words why you feel this is a dispute. What we know is this, the lines are about 2 pix shorter and IE still doesn't work. We can make the lines thicker, that's not a problem, but we cannot revert back to a version that completely breaks on high usage lists. -- Ned Scott 12:29, 17 March 2007 (UTC)
There was nothing broken about it before, it should either show or it shouldn't which was perfectly fine before, trying to make it show properly in all browsers is more then likely not possible. Matthew 12:32, 17 March 2007 (UTC)
The old way used a lot of code (considering our limit problem), which is a very good reason to use the new way. Firefox and Safari display it completely fine, and most sane people stay away from IE (IE screws up a lot of things...). -- Ned Scott 12:40, 17 March 2007 (UTC)
I use Firefox 2.0, it's not showing properly for me (example #2), the border has gone and the colouring shade has vanished, which causes the design to no longer blend, it may seem a minor change but it's quite large to me as you're altering the designs of multiple LOEs, which will now probably require colour updates.. Matthew 12:45, 17 March 2007 (UTC)
Oh, we already knew that there would be some required color adjustments, but like I said, it's more important that the code be smaller. This should only be a problem with lighter colors anyways. It seems a minor change fixes it for IE now, see how User:Ned Scott/sandbox5 looks. The only thing different now is that the line is thinner and there is no border around it (again, an issue with light colors only). -- Ned Scott 12:54, 17 March 2007 (UTC)
Could we not get the devs. to increase the size or have they said "no"? Matthew
(Yay for ever-growing indents!) Increasing the size may fix the problem, but that doesn't make the code more simpler or efficient. Doing that will probably also increase page load time. - Zero1328 Talk? 13:43, 17 March 2007 (UTC)

[edit] Update for IE

I hate to request another edit so fast, when we were trying to keep the edit count for the template low, but this edit will fix the IE problem. -- Ned Scott 13:11, 17 March 2007 (UTC)

I thought we previously decided that {{!!}} could be replaced with an alternative. Using it only once seems goofy, and it requires that the template is listed every time {{Episode list}} is. --MZMcBride 17:14, 17 March 2007 (UTC)
When I tried to replace some with manual HTML table code it got screwy. I'll throw some examples up on my sandbox if I have time before work. -- Ned Scott 19:26, 17 March 2007 (UTC)
User:Ned Scott/sandbox4#Additional code replaced with HTML. This uses User:Ned Scott/sandbox3. -- Ned Scott 19:38, 17 March 2007 (UTC)
I don't see why {{!}}{{!}} can't be used... can you explain ? --TheDJ (talkcontribsWikiProject Television) 19:55, 17 March 2007 (UTC)
I'm a bit confused at this question. {{!!}} does the same thing as {{!}}{{!}}. -- Ned Scott 23:41, 17 March 2007 (UTC)
Yes it does. Which was the whole point. why include another template a million times if we can just use the one. It's easier for the wikipedia servers to just have to include one of them. --TheDJ (talkcontribsWikiProject Television) 00:00, 18 March 2007 (UTC)

[edit] Captions

The image captions aren't working for me right now. It may have something to do with the recent changes, I don't know. - Peregrine Fisher 18:56, 17 March 2007 (UTC)

I had taken out ImageCaption and TopColor because they didn't seem to be used very much and were "less vital", but I guess they could be added back in.. -- Ned Scott 19:32, 17 March 2007 (UTC)
I would like to have the caption part, I feel it helps meet FU requirements. It allows the image to be discussed specifically without messing up the formatting. It's true other people don't use it much, but I've included it with the 1000+ images I've inserted into LOEs. TopColor I don't really care about, since you can simulate it with the table header, I believe. - Peregrine Fisher 19:52, 17 March 2007 (UTC)
Can you point us at some articles that use this option btw? might be handy. --TheDJ (talkcontribsWikiProject Television) 19:53, 17 March 2007 (UTC)
I'm using it now in List of Man vs. Wild episodes. There's lots more at User:Peregrine Fisher/Contributions. - Peregrine Fisher 20:17, 17 March 2007 (UTC)

{{editprotected}} Ok, ImageCaption back in, IE fix, and come further code optimization (by User:MZMcBride): replace template with this. -- Ned Scott 00:04, 18 March 2007 (UTC)

Done Cbrown1023 talk 02:07, 18 March 2007 (UTC)
Thank you very much. -- Ned Scott 06:55, 18 March 2007 (UTC)

[edit] Centering the date

Not centering the date doesn't look right. It's probably the same with some other fields that I don't use. - Peregrine Fisher 04:26, 19 March 2007 (UTC)

I agree. The date should be centered. I don't think this change was even brought up in the recent change discussion. Would like to see it added back. :: ZJH (T C E) 22:01, 19 March 2007 (UTC)
Again, this was something taken out to help the template's limitation problem. It was a low priority option and helped to remove a good amount of code. I’ve got some ideas on how we could add it back without increasing size, but it would likely involve renaming parameters and having to update all lists via bot. -- Ned Scott 22:39, 19 March 2007 (UTC)
Is there a zilla # for this limitation problem? :: ZJH (T C E) 19:05, 20 March 2007 (UTC)
I'm not sure if there has been a request to increase the template limit size, but the developers were the ones who implemented it. It's a restriction that they placed on the articles to avoid server load and page-usage issues. For more information, see here. --MZMcBride 19:08, 20 March 2007 (UTC)

[edit] Edit protected

Hi, please change: <td>{{{OriginalAirDate}}}</td> to <td align="center">{{{OriginalAirDate}}}</td>. This well centralise the date. Thanks. Matthew 22:42, 26 March 2007 (UTC)

There are several dates - do they all need to be centered? Is there a working example somewhere I can use to make sure the edit is effective? CMummert · talk 22:49, 26 March 2007 (UTC)
I'm not sure if the other date fields are used, I know the OriginalAirDate is used on basically all transclusions and thus is priority to fix. I've set up a sandbox, here, for you to view an example. Cheers, Matthew 22:54, 26 March 2007 (UTC)
The original air date is centered when I look at that, in opera and in firefox. Is is not centered for you? CMummert · talk 22:57, 26 March 2007 (UTC)
That's because the version in my sandbox is a locally stored copy with the centre fix applied, for a non-central example see List of Jericho episodes (using this template). Matthew 23:02, 26 March 2007 (UTC)
{{editprotected}} done. CMummert · talk 23:05, 26 March 2007 (UTC)
Much appreciated, thanks. Matthew 23:08, 26 March 2007 (UTC)

Wow, thanks guys for completely ignoring the discussion right above this one, but whatever. I can understand adding it back in for OriginalAirDate, I guess, but remember that we are trying to make this template smaller because of the template limitation issue. -- Ned Scott 01:28, 28 March 2007 (UTC)

Sorry about that - the thought of template size didn't enter my mind; I was just handling what seemed to be a reasonable and easily revertable editprotected request. I'll remember to scan the talk page higher up in the future.
Can I suggest adding a large disclaimer to the template page warning editors that it runs into size issues? I look for such warnings before making edits, and wouldn't have made this one if I had been warned not to. CMummert · talk 02:05, 28 March 2007 (UTC)
Sorry if I was a bit harsh, it is pretty easy to miss these things. Although, in regards to the template's limitations, we only lost three transclusions when you compare my sandbox test before and after, so it really wasn't a big deal. -- Ned Scott 04:04, 28 March 2007 (UTC)
If anyone is wondering, the first link is using User:Ned Scott/sandbox, which contains the template contents from before, the second link is using the current version of the template. -- Ned Scott 05:31, 28 March 2007 (UTC)
According to Wikipedia:Template limits, text inside a noinclude section is not counted against the preexpand size. If that is true, the best place to put a warning is inside a noinclude section in the template itself. Am I reading the specs wrong? CMummert · talk 11:52, 28 March 2007 (UTC)
Wrong, and so is the page in that case. I recently fixed a project from the Council that they use in creating their listings of WikiProjects. I simply moved all the documentation in the noinclude to a /doc subpage, and the template worked again. It might not be counted, but it sure seems to matter. --TheDJ (talkcontribsWikiProject Television) 13:01, 28 March 2007 (UTC)
Page is correct. It says that templates in <noinclude> are not taken into account on the preexpand size, but actual raw text, still counts. Also by reading this page I learned that if you put the documentation on a subpage, and then edit the doc, this will only cause a queuejob for the actual inclusion, and not for all the template transclusions. Kinda logical I guess, but a nice trick. Should definetly be used on all high volume templates. --TheDJ (talkcontribsWikiProject Television) 13:08, 28 March 2007 (UTC)
Thanks. I was mentally adding the word "not" to the sentence in the docs. I'll rephrase it. CMummert · talk 14:13, 28 March 2007 (UTC)

[edit] Sortable episode format

Sortable version in testing, see Talk:List of The Melancholy of Haruhi Suzumiya episodes#Sortable episode format. -- Ned Scott 19:20, 31 March 2007 (UTC)

Uh. I don't like that, looks too much for me. Wouldn't it also add to the transclusion size? :-\? I personally believe it works better using the style already used at that LOE. Matthew 19:24, 31 March 2007 (UTC)
I take it that it is not possible to keep the LOE looking the same and still be sortable? Also, there are ways to specify a sort key using <span style="display:none">. - Peregrine Fisher 20:50, 31 March 2007 (UTC)
With more tweaking they'll look exactly the same except for the episode number cells will have to be the full length. The sortable version will also be it's own template, separate from this one, due to the style change. Basically, people can use it on lists where the value of being sortable outweighs the minor style change. -- Ned Scott 00:16, 1 April 2007 (UTC)