User talk:Aichon: Difference between revisions

From The Urban Dead Wiki
Jump to navigationJump to search
Line 118: Line 118:
single 54-case switch be as far as tree-hugging, terrorist-supporting wiki page magic inclusion things be? Would it kill the FA page?-[[MHS|<span style="color: Black">'''MHS'''</span>]][[User_Talk:MHSstaff|<span style="color: DarkBlue">'''staff'''</span>]] 23:11, 19 January 2011 (UTC)
single 54-case switch be as far as tree-hugging, terrorist-supporting wiki page magic inclusion things be? Would it kill the FA page?-[[MHS|<span style="color: Black">'''MHS'''</span>]][[User_Talk:MHSstaff|<span style="color: DarkBlue">'''staff'''</span>]] 23:11, 19 January 2011 (UTC)
:It'd actually be a 108 case switch statements (54 for current and 54 for previous), and it wouldn't be that bad. Each case would basically just have the unique portion of the link to each FA blurb, which would likely just be a few characters long, and anything that was common to the link could be put before or after the switch in the template so that it didn't have to get repeated 108 times. Shouldn't even be close to page-breaking if done right, but I'd suggest sandboxing it first to make sure anyway. {{User:Aichon/Signature}} 05:23, 20 January 2011 (UTC)
:It'd actually be a 108 case switch statements (54 for current and 54 for previous), and it wouldn't be that bad. Each case would basically just have the unique portion of the link to each FA blurb, which would likely just be a few characters long, and anything that was common to the link could be put before or after the switch in the template so that it didn't have to get repeated 108 times. Shouldn't even be close to page-breaking if done right, but I'd suggest sandboxing it first to make sure anyway. {{User:Aichon/Signature}} 05:23, 20 January 2011 (UTC)
::Here is what I am thinking. A master switch template that calls one of 54 pre-generated templates based on the number of FA articles we have. Those templates then get the correct FA article based on the current week. I basically have a program that spits out the wiki code so its just a matter of copying and pasting. Here is the [[User:MHSstaff/Projects/TestingGrounds‎|'''17-article version''']] for example, and here is a [[User:MHSstaff/Projects/TestingGrounds2‎|'''43 article version''']]. Here is sorta [[User:MHSstaff/Projects/TestingGrounds1|'''what the main template''']] would like, and [[User:MHSstaff/Projects/TestingGrounds4|'''here is where''']] I am calling it. This way, you wouldn't have to update as you voted in new articles. You just change the number of articles variable in the page calling main driver template, make a new FA blurb page, and the main template picks the right one for cycling. What changes should be made? I can update the code to spit out the version with your suggestions but there is no point in copying and pasting it until we have something we all like. -[[MHS|<span style="color: Black">'''MHS'''</span>]][[User_Talk:MHSstaff|<span style="color: DarkBlue">'''staff'''</span>]] 19:16, 20 January 2011 (UTC)
::Here is what I am thinking. A master switch template that calls one of 54 pre-generated templates based on the number of FA articles we have. Those templates then get the correct FA article based on the current week. I basically have a program that spits out the wiki code so its just a matter of copying and pasting. Here is the [[User:MHSstaff/Projects/TestingGrounds‎|'''17-article version''']] for example, and here is a [[User:MHSstaff/Projects/TestingGrounds2‎|'''43 article version''']]. Here is sorta [[User:MHSstaff/Projects/TestingGrounds1|'''what the main template''']] would like, and [[User:MHSstaff/Projects/TestingGrounds4|'''here is where''']] I am calling it. This way, you wouldn't have to update as you voted in new articles. You just change the number of articles (nofa) variable in [[User:MHSstaff/Projects/TestingGrounds4|'''the page calling main driver template''']], make a new FA blurb page, and the main template picks the right one for cycling. What changes should be made? I can update the code to spit out the version with your suggestions but there is no point in copying and pasting it until we have something we all like. -[[MHS|<span style="color: Black">'''MHS'''</span>]][[User_Talk:MHSstaff|<span style="color: DarkBlue">'''staff'''</span>]] 19:16, 20 January 2011 (UTC)
:::Otherwise, you would have to edit the cases in the template each time you add in articles so the new ones will get called during their week, which would kinda suck. -[[MHS|<span style="color: Black">'''MHS'''</span>]][[User_Talk:MHSstaff|<span style="color: DarkBlue">'''staff'''</span>]] 19:33, 20 January 2011 (UTC)
:::Otherwise, you would have to edit the cases in the template each time you add in articles so the new ones will get called during their week, which would kinda suck. -[[MHS|<span style="color: Black">'''MHS'''</span>]][[User_Talk:MHSstaff|<span style="color: DarkBlue">'''staff'''</span>]] 19:33, 20 January 2011 (UTC)



Revision as of 19:37, 20 January 2011

Aichon:Talk
Aichon
ˈīˌkän :Talk