User talk:Dantman

hehe thanks! -Afker All hail AliceSoft! 06:02, 22 January 2009 (UTC)

Fancy template design
Given a sequential list of possible inputs (static, stored in another template), depending on the actual input (assuming to be among the list of possibles), spit out the previous & next item in the list. If actual input is not in the list, spit out the first item in the list & nothing. Useful for navigational templates to progress through a sequence of pages not named by numbers and with minimal user input. I'm gonna give it a shot myself, but I'd be interested to see your implementation versus what I eventually get. -Afker All hail AliceSoft! 04:47, 1 February 2009 (UTC)


 * PS, for code simplicity you can assume a max list size of 10, though I'm gonna build one for 50. -Afker All hail AliceSoft! 04:48, 1 February 2009 (UTC)


 * Umm, not quite "See also", but rather "See next" plus "See previous". Something that lets me progress through the pages in Toushin Toshi 3:Dungeons sequentially by just inserting a template (which reads the pagename for input to figure out what to print), so yeah, arraymapping might be what I end up using, but I would be trying to simplifying the cases inside a single switch statement instead of simplifying a bunch of if statements.  Not sure how the interactions of the extensions would end up working out.  Worse comes to worse I'd just have to break up the switch into 50 IFs...
 * Ideally, I really want something that has the elegance along the lines of the old Template:Switch (even though #switch and other parser functions were specifically invented to, as you say, push fancy stuff php side instead of using hacks). -Afker All hail AliceSoft! 05:56, 1 February 2009 (UTC)