Topic on Adventures in Odyssey Wiki:Town Hall2

Jump to navigation Jump to search
OdysseyFan (talkcontribs)

I'm planning an addition to the calendar Pages with the "navbox" but there is some legacy data on those pages I thought someone might like preserved

ie May 2013

otherwise I plane to change {{calendar(.*) }} to {{calendar}} {{Schedule Navbox}} any thoughts/objections? if I change to {{calendar$1}} {{Schedule Navbox}} </code> that might preserve the legacy info, but it is not currently displayed so not sure if it's relevant...

Aiow (talkcontribs)

Yah, all those old parameters are not needed any longer. We have changed the way the calendar is built a few times now; and there actually are zero required parameters now. I agree keeping the old parameters is a good idea just so we do not loose the original info. Do you really want the new Template:Schedule_Navbox on each month's schedule page? I think that would be a but too much. What about some kind of header for each month's page that can link to several schedule pages such as Schedule, Category:Weekly Schedule, Episodes that have aired today etc.

OdysseyFan (talkcontribs)

that's probably a better idea... just an information header

OdysseyFan (talkcontribs)
OdysseyFan (talkcontribs)

and that should be an easy replacement with

Replace Text cal-num">(.*)<\/span><div class='cal-ep'> to cal-num">$1</span><div class='cal-ep'>{{{$1}}}


and I say easy but it took me hours to figure out that code, I tested it restricted to 1 page, but it works... edited Template:Calendar/31/tue see Schedule_for_December_2009

applying on a large scale shortly and we should have some impressing historical data, should also be able to find some other items the "Best Of Barclays" Saturday summer marathon, etc. and addl tagging of "New Episodes" for First Air Date.

OdysseyFan (talkcontribs)

looks like it's working....

OdysseyFan (talkcontribs)

So I know this has been floated before, but if you are making a change on this scale, please post the primary code changes and the planned scope when you do this. I meant to do that for the Official Podcasts navbox and Avery awards change, but that didn't require a large replace text function like this one.

Aiow (talkcontribs)

Well only the admins have access to Special:ReplaceText, so that is limited. But yes 100% agree that outlining a large change/refactor/project first is always a good idea. Especially here on this wiki when so often others built the original system years ago and you may not fully understand what is going on (not pointing at you odysseyfan, just a general warning). Glad the text replacement was "easy." Its nice to have the supplemental text displaying again. PS the code to add the header to the calendar template is simply {{Schedule Navbox/header}}. The #lst is an extension to transclude only part of a page, which is not needed in this case.

OdysseyFan (talkcontribs)

yeah I just copied it from the previous edit, wasn't sure what you were trying to do there, but I think separating the pages worked better.