Difference between revisions of "Template talk:Random Screen"

From FreeSpace Wiki
Jump to: navigation, search
(explanation, two separate lists unnecessary)
 
Line 4: Line 4:
 
:::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)
 
::::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)
 +
Rolledback edits by Matthegeek, see [[Talk:Screenshots]]. [[User:Black Wolf|Black Wolf]] 07:53, 17 September 2012 (UTC)

Latest revision as of 02:53, 17 September 2012

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)

Rolledback edits by Matthegeek, see Talk:Screenshots. Black Wolf 07:53, 17 September 2012 (UTC)