Difference between revisions of "Template talk:Random Screen"

From FreeSpace Wiki
Jump to: navigation, search
(explanation, two separate lists unnecessary)
Line 3: Line 3:
 
::If it's such a big issue, then why not display one screenshot instead of two? - [[User:TopAce|TopAce]] 17:57, 5 March 2010 (UTC)
 
::If it's such a big issue, then why not display one screenshot instead of two? - [[User:TopAce|TopAce]] 17:57, 5 March 2010 (UTC)
 
:::I sent chief1983 the PHP code, so if he can make a way to not display duplicate pictures, let's give him a chance. -- [[User:Goober5000|Goober5000]] 00:43, 6 March 2010 (UTC)
 
:::I sent chief1983 the PHP code, so if he can make a way to not display duplicate pictures, let's give him a chance. -- [[User:Goober5000|Goober5000]] 00:43, 6 March 2010 (UTC)
 +
::::MediaWiki caches template calls, but only if there's no parameter list (because it thinks that a parameterless template should always return the same value, an assumption broken by randomselection). You can simply add an empty parameter list to prevent this caching, like I did on {{tl|Main Screens}}. [[User:Nx|Nx]] 23:49, 9 March 2010 (UTC)

Revision as of 17:49, 9 March 2010

I don't want to split it into two different lists. With One list repeated twice it's a nice simple copy and paste. At the very least wait and see if anything comes of the current forum efforts. Black Wolf 13:25, 5 March 2010 (UTC)

Oh, okay. I split them into two different lists, odd and even, because I kept getting the same screenshot repeated twice by chance. -- Androgeos Exeunt 17:54, 5 March 2010 (UTC)
If it's such a big issue, then why not display one screenshot instead of two? - TopAce 17:57, 5 March 2010 (UTC)
I sent chief1983 the PHP code, so if he can make a way to not display duplicate pictures, let's give him a chance. -- Goober5000 00:43, 6 March 2010 (UTC)
MediaWiki caches template calls, but only if there's no parameter list (because it thinks that a parameterless template should always return the same value, an assumption broken by randomselection). You can simply add an empty parameter list to prevent this caching, like I did on {{Main Screens}}. Nx 23:49, 9 March 2010 (UTC)