Difference between revisions of "Template talk:EpisodePrevNext"
Solar Dragon (talk | contribs) |
|||
(One intermediate revision by one other user not shown) | |||
Line 4: | Line 4: | ||
Done. And it looks good. Feel free to make any changes to it. Code for moz bit is in the border template thingies. ☆<span style="font-family:Algerian;">[[User:Solar Dragon|<font color="green">The</font> <font color="red">Solar</font> <font color="blue">Dragon</font>]] <sup>([[User talk:Solar Dragon|<font color="gold">Talk</font>]])</sup></span>☆ 05:26, April 5, 2010 (UTC) | Done. And it looks good. Feel free to make any changes to it. Code for moz bit is in the border template thingies. ☆<span style="font-family:Algerian;">[[User:Solar Dragon|<font color="green">The</font> <font color="red">Solar</font> <font color="blue">Dragon</font>]] <sup>([[User talk:Solar Dragon|<font color="gold">Talk</font>]])</sup></span>☆ 05:26, April 5, 2010 (UTC) | ||
:Wouldnt it look better without 'moz-border-readius'?--[[User:Smiley12#|Smiley]][[User talk:Smiley12|12]] was here at 05:30, April 5, 2010 (UTC) | :Wouldnt it look better without 'moz-border-readius'?--[[User:Smiley12#|Smiley]][[User talk:Smiley12|12]] was here at 05:30, April 5, 2010 (UTC) | ||
− | ::I don't know. You can change it if you think so. | + | ::I don't know. You can change it if you think so. Template:Border-radius, Template:Border-radius2. Change it there. Also, what about episodes like Kamp Krusty (Episode)? I would like to remove the (Episode) bit from the template too. ☆<span style="font-family:Algerian;">[[User:Solar Dragon|<font color="green">The</font> <font color="red">Solar</font> <font color="blue">Dragon</font>]] <sup>([[User talk:Solar Dragon|<font color="gold">Talk</font>]])</sup></span>☆ 05:32, April 5, 2010 (UTC) |
:How bout now, I just thought it would fit better with the tab border--[[User:Smiley12#|Smiley]][[User talk:Smiley12|12]] was here at 05:36, April 5, 2010 (UTC) | :How bout now, I just thought it would fit better with the tab border--[[User:Smiley12#|Smiley]][[User talk:Smiley12|12]] was here at 05:36, April 5, 2010 (UTC) | ||
::Looks all right. We still have to think of a way around the episodes with something at the end (Episode) for example. And, do them for all the other tabs too... I just remembered that. ☆<span style="font-family:Algerian;">[[User:Solar Dragon|<font color="green">The</font> <font color="red">Solar</font> <font color="blue">Dragon</font>]] <sup>([[User talk:Solar Dragon|<font color="gold">Talk</font>]])</sup></span>☆ 05:38, April 5, 2010 (UTC) | ::Looks all right. We still have to think of a way around the episodes with something at the end (Episode) for example. And, do them for all the other tabs too... I just remembered that. ☆<span style="font-family:Algerian;">[[User:Solar Dragon|<font color="green">The</font> <font color="red">Solar</font> <font color="blue">Dragon</font>]] <sup>([[User talk:Solar Dragon|<font color="gold">Talk</font>]])</sup></span>☆ 05:38, April 5, 2010 (UTC) | ||
Line 43: | Line 43: | ||
:Yeah. I guess I see your point know. Ok. Tomorrow I'll start improving the templates. / [[User:Loco87|'''<font color=chocolate><font face="Agency FB"><font size="4">Loco</font></font></font><font color=00C87B><font face="Agency FB"><font size="4">87</font></font></font>''']] <sup>([[User talk:Loco87|<font color=grey><font face="Courier New">'''TALK'''</font></font>]] / [[Special:Contributions/Loco87|<font color=navyblue><font face="Century Gothic">Contribs</font></font>]])</sup> 15:55, July 10, 2017 (EDT) | :Yeah. I guess I see your point know. Ok. Tomorrow I'll start improving the templates. / [[User:Loco87|'''<font color=chocolate><font face="Agency FB"><font size="4">Loco</font></font></font><font color=00C87B><font face="Agency FB"><font size="4">87</font></font></font>''']] <sup>([[User talk:Loco87|<font color=grey><font face="Courier New">'''TALK'''</font></font>]] / [[Special:Contributions/Loco87|<font color=navyblue><font face="Century Gothic">Contribs</font></font>]])</sup> 15:55, July 10, 2017 (EDT) | ||
− | Now see | + | Now see "User:2F13/EpisodeNumber2Season". Guess what <code><nowiki>{{User:2F13/EpisodeNumber2Season|{{User:Loco87/PrevNextList|Girly Edition}}}}</nowiki></code> gives back. :-) So no '''another''' ''600+ Lines Long And To Be Maintained At Every Episode'' template (User:Loco87/PrevNextListSeason) is required. You need to update only "User:Loco87/PrevNextList" at every week and this will be called four times within "User:Loco87/PrevNext" --[[User:2F13|2F13]] ([[User talk:2F13|talk]]) 15:43, July 13, 2017 (EDT) |
:I've slightly modified your template to include season 29 and the unique special case of <code><nowiki>{{User:2F13/EpisodeNumber2Season|{{User:Loco87/PrevNextList|The Great Phatsby}}}}</nowiki></code>, that returned nothing (because the output of my template is "608, 609" with this input. Before updating the actual prevnext template I'd like to test more the templates. / [[User:Loco87|'''<font color=chocolate><font face="Agency FB"><font size="4">Loco</font></font></font><font color=00C87B><font face="Agency FB"><font size="4">87</font></font></font>''']] <sup>([[User talk:Loco87|<font color=grey><font face="Courier New">'''TALK'''</font></font>]] / [[Special:Contributions/Loco87|<font color=navyblue><font face="Century Gothic">Contribs</font></font>]])</sup> 08:50, July 14, 2017 (EDT) | :I've slightly modified your template to include season 29 and the unique special case of <code><nowiki>{{User:2F13/EpisodeNumber2Season|{{User:Loco87/PrevNextList|The Great Phatsby}}}}</nowiki></code>, that returned nothing (because the output of my template is "608, 609" with this input. Before updating the actual prevnext template I'd like to test more the templates. / [[User:Loco87|'''<font color=chocolate><font face="Agency FB"><font size="4">Loco</font></font></font><font color=00C87B><font face="Agency FB"><font size="4">87</font></font></font>''']] <sup>([[User talk:Loco87|<font color=grey><font face="Courier New">'''TALK'''</font></font>]] / [[Special:Contributions/Loco87|<font color=navyblue><font face="Century Gothic">Contribs</font></font>]])</sup> 08:50, July 14, 2017 (EDT) | ||
::Template call <code><nowiki>{{EpisodeNumber2Season|{{PrevNextList|The Great Phatsby}}}}</nowiki></code> should not occur in [[The Great Phatsby: Part One|episode page]] headers but <code><nowiki>{{EpisodeNumber2Season|{{PrevNextList|The Great Phatsby: Part One}}}}</nowiki></code>. --[[User:2F13|2F13]] ([[User talk:2F13|talk]]) 12:51, July 14, 2017 (EDT) | ::Template call <code><nowiki>{{EpisodeNumber2Season|{{PrevNextList|The Great Phatsby}}}}</nowiki></code> should not occur in [[The Great Phatsby: Part One|episode page]] headers but <code><nowiki>{{EpisodeNumber2Season|{{PrevNextList|The Great Phatsby: Part One}}}}</nowiki></code>. --[[User:2F13|2F13]] ([[User talk:2F13|talk]]) 12:51, July 14, 2017 (EDT) | ||
:::If you had "Springfield Splendor" as the input, it would return "28". Also, the two parts of The Great Phatsby [[The Great Phatsby/Credits|share the credits tab]], so <code><nowiki>{{EpisodeNumber2Season|{{PrevNextList|The Great Phatsby}}}}</nowiki></code> should occur. / [[User:Loco87|'''<font color=chocolate><font face="Agency FB"><font size="4">Loco</font></font></font><font color=00C87B><font face="Agency FB"><font size="4">87</font></font></font>''']] <sup>([[User talk:Loco87|<font color=grey><font face="Courier New">'''TALK'''</font></font>]] / [[Special:Contributions/Loco87|<font color=navyblue><font face="Century Gothic">Contribs</font></font>]])</sup> 13:52, July 14, 2017 (EDT) | :::If you had "Springfield Splendor" as the input, it would return "28". Also, the two parts of The Great Phatsby [[The Great Phatsby/Credits|share the credits tab]], so <code><nowiki>{{EpisodeNumber2Season|{{PrevNextList|The Great Phatsby}}}}</nowiki></code> should occur. / [[User:Loco87|'''<font color=chocolate><font face="Agency FB"><font size="4">Loco</font></font></font><font color=00C87B><font face="Agency FB"><font size="4">87</font></font></font>''']] <sup>([[User talk:Loco87|<font color=grey><font face="Courier New">'''TALK'''</font></font>]] / [[Special:Contributions/Loco87|<font color=navyblue><font face="Century Gothic">Contribs</font></font>]])</sup> 13:52, July 14, 2017 (EDT) | ||
:::: Ah! Personally (as a programmer) I don't think the common credits page is a wise solution because it breaks some rules but this is the reality. You are right. --[[User:2F13|2F13]] ([[User talk:2F13|talk]]) 14:17, July 14, 2017 (EDT) | :::: Ah! Personally (as a programmer) I don't think the common credits page is a wise solution because it breaks some rules but this is the reality. You are right. --[[User:2F13|2F13]] ([[User talk:2F13|talk]]) 14:17, July 14, 2017 (EDT) |
Latest revision as of 07:48, August 5, 2020
This is a talk page, where you can leave messages and comments about the EpisodePrevNext template. | |||
---|---|---|---|
|
Done[edit]
Done. And it looks good. Feel free to make any changes to it. Code for moz bit is in the border template thingies. ☆The Solar Dragon (Talk)☆ 05:26, April 5, 2010 (UTC)
- Wouldnt it look better without 'moz-border-readius'?--Smiley12 was here at 05:30, April 5, 2010 (UTC)
- I don't know. You can change it if you think so. Template:Border-radius, Template:Border-radius2. Change it there. Also, what about episodes like Kamp Krusty (Episode)? I would like to remove the (Episode) bit from the template too. ☆The Solar Dragon (Talk)☆ 05:32, April 5, 2010 (UTC)
- How bout now, I just thought it would fit better with the tab border--Smiley12 was here at 05:36, April 5, 2010 (UTC)
- Looks all right. We still have to think of a way around the episodes with something at the end (Episode) for example. And, do them for all the other tabs too... I just remembered that. ☆The Solar Dragon (Talk)☆ 05:38, April 5, 2010 (UTC)
- Maybe move 'Kamp Krusty' to 'Kamp Krusty Location' and move 'Kamp Krust (episode)' to 'Kamp Krusty' --Smiley12 was here at 05:40, April 5, 2010 (UTC)
- New Kid on the Block Same here. ☆The Solar Dragon (Talk)☆ 05:48, April 5, 2010 (UTC)
- What about for Good Night?--Smiley12 was here at 05:49, April 5, 2010 (UTC)
- Got our source for the problem. Too long page names. Only need to correct it now. Need a way to stretch the middle box as well as shrink the other two as well. ☆The Solar Dragon (Talk)☆ 06:00, April 5, 2010 (UTC)
- What about for Good Night?--Smiley12 was here at 05:49, April 5, 2010 (UTC)
- New Kid on the Block Same here. ☆The Solar Dragon (Talk)☆ 05:48, April 5, 2010 (UTC)
- Maybe move 'Kamp Krusty' to 'Kamp Krusty Location' and move 'Kamp Krust (episode)' to 'Kamp Krusty' --Smiley12 was here at 05:40, April 5, 2010 (UTC)
- Looks all right. We still have to think of a way around the episodes with something at the end (Episode) for example. And, do them for all the other tabs too... I just remembered that. ☆The Solar Dragon (Talk)☆ 05:38, April 5, 2010 (UTC)
Trying to get a solution. Here. Hopefully someone will help out. ☆The Solar Dragon (Talk)☆ 06:05, April 5, 2010 (UTC)
All sorted now, thanks to Joey. For the pages with brackets at the end, just add in the episode name at the end. Same goes for all the other tabs too. They all work now. ☆The Solar Dragon (Talk)☆ 11:19, April 5, 2010 (UTC)
Larger and smaller boxes[edit]
This template looks like this in many pages. One box is larger than the other, making the center box be unaligned. How can that be sorted out? — TheHomer 21:51, June 21, 2010 (UTC)
- Here is another example. — TheHomer 22:20, June 21, 2010 (UTC)
- I know. You could try asking on Community Central forums. The Solar Dragon (Talk - Contribs.) 05:11, June 22, 2010 (UTC)
- I asked at the forum and a wikia stuff emeber fixed it. — TheHomer 00:12, June 23, 2010 (UTC)
- I know. You could try asking on Community Central forums. The Solar Dragon (Talk - Contribs.) 05:11, June 22, 2010 (UTC)
Rewritement[edit]
This template is looong and hard to maintain. I added line breaks and now it is easier to edit and any changes can be see well. In the second step the three identical "episode title=episode number" lists will be replaced by three template call. --2F13 (talk) 12:29, July 9, 2017 (EDT)
- First of all, it's true the template is long. But it's not that hard to maintain. I (and LPNintendoITA) have been the main users who have updated it regularly during the last months and, in my case, I think it's easy to maintain it (I don't know if it was hard for LPN 'cause I'm not him and I can't know it). I've also often used my bot to update the template. That being said, I don't see any problem in keeping the template the way it is now (after your latest edits). I think in fact nothing changed, it's the same. / Loco87 (TALK / Contribs) 10:14, July 10, 2017 (EDT)
- Okay, it is not hard to find something in a 20 kB long line for some of us. :-) However I spent half an hour while I found every location where "HOMЯ" had to be fixed. I got nervous a bit.
- It is quite lucky however that you don't see any change therefore you have no reason to disagree my last edit. The matter of my change will be clear as soon as a new title will be added.
- Step two. Currently the template contains 3 times the same title list. Any book about programming discourages this. I'll create some new – much shorter but compatible – templates then I'll ask your opinion. --2F13 (talk) 10:47, July 10, 2017 (EDT)
- 1)When I've said I see no changes, I meant that you only made changes on the presentation/style of the code, in other words, that the template was just the same code (a bit) clearer. 2) "Currently the template contains 3 times the same title list. Any book about programming discourages this. I'll create some new – much shorter but compatible – templates" It's a good idea. I'd like to help with that. That would be a great improvement. There's a problem though with some aspects: 1)in the gags prevnext template, not every episode appears because not every episode has gags tabs and 2) There's a problem with "The Great Phatsby"(I think this problem just affects this episode), as some tabs are shared by pt1 and pt2 and other tabs are different for pt1 and pt2. Other than that, it will be great to have these three template. / Loco87 (TALK / Contribs) 12:45, July 10, 2017 (EDT)
- I've made my versions of the templates and they work. Look at them and, if you think something could be done to improve them, just say it. I will keep them under my userspace until I think they can be used officially. I have to check they work with every tab. I only have checked the general tab. / Loco87 (TALK / Contribs) 13:32, July 10, 2017 (EDT)
- I planned the very same with two differences.
- 1. Its name should be more expressive like TitleToEpisodeNumber or so.
- 2. I'd break the long line. :-)
- An other template called EpisodeNumberToSeason is also needed. (It will consist some log2(28) if-then-else constructs.) Then the season will be retrieved from title in two steps.
- I'll have some spare time to do this at the weekend only. Please be patient. :-) --2F13 (talk) 13:51, July 10, 2017 (EDT)
Well. Check these diffs: [1] [2] Which one is more readable? :-) --2F13 (talk) 15:23, July 10, 2017 (EDT)
- Yeah. I guess I see your point know. Ok. Tomorrow I'll start improving the templates. / Loco87 (TALK / Contribs) 15:55, July 10, 2017 (EDT)
Now see "User:2F13/EpisodeNumber2Season". Guess what {{User:2F13/EpisodeNumber2Season|{{User:Loco87/PrevNextList|Girly Edition}}}}
gives back. :-) So no another 600+ Lines Long And To Be Maintained At Every Episode template (User:Loco87/PrevNextListSeason) is required. You need to update only "User:Loco87/PrevNextList" at every week and this will be called four times within "User:Loco87/PrevNext" --2F13 (talk) 15:43, July 13, 2017 (EDT)
- I've slightly modified your template to include season 29 and the unique special case of
{{User:2F13/EpisodeNumber2Season|{{User:Loco87/PrevNextList|The Great Phatsby}}}}
, that returned nothing (because the output of my template is "608, 609" with this input. Before updating the actual prevnext template I'd like to test more the templates. / Loco87 (TALK / Contribs) 08:50, July 14, 2017 (EDT)- Template call
{{EpisodeNumber2Season|{{PrevNextList|The Great Phatsby}}}}
should not occur in episode page headers but{{EpisodeNumber2Season|{{PrevNextList|The Great Phatsby: Part One}}}}
. --2F13 (talk) 12:51, July 14, 2017 (EDT)- If you had "Springfield Splendor" as the input, it would return "28". Also, the two parts of The Great Phatsby share the credits tab, so
{{EpisodeNumber2Season|{{PrevNextList|The Great Phatsby}}}}
should occur. / Loco87 (TALK / Contribs) 13:52, July 14, 2017 (EDT)
- If you had "Springfield Splendor" as the input, it would return "28". Also, the two parts of The Great Phatsby share the credits tab, so
- Template call