Hi developers, would it be possible to make a function {{CURRENTSECOND}}, in order to be able to have a sort of random function. What I wat to do is the following: I want to give the protal I've build a random logo. ''ll make several logo's and have one popped-up randomly. With a function {{currentsecond}} this would be possible. Another request, way much less important is whether one could refresh the speciaal:wantedpages in the Dutch wiki (nl). Thanks for listening Best regards, Mig de Jong
--
Migdejong@gmail.com Rode Kruislaan 1121 A 1111 XA Diemen The Netherlands 00-31-6-14800370
On 11/7/05, Mig de Jong migdejong@gmail.com wrote:
Hi developers, would it be possible to make a function {{CURRENTSECOND}}, in order to be able to have a sort of random function. What I wat to do is the following: I want to give the protal I've build a random logo. ''ll make several logo's and have one popped-up randomly. With a function {{currentsecond}} this would be possible. Another request, way much less important is whether one could refresh the speciaal:wantedpages in the Dutch wiki (nl). Thanks for listening
It might make more sense to install the random selection extension (http://meta.wikimedia.org/wiki/User:Algorithm/RandomSelection) so you can do this without having to make lots of new pages. See http://games.wikicities.com/wiki/Dice and http://uncyclopedia.org/wiki/Template:Stub for examples of the extension in use.
Angela.
Besides. This is probably the worst random selection method I've ever seen in use. It only allows for the middle options to appear... Ever tried the dice-rolling game. You'd be arrested for using it in a casino...
Mig
On 11/15/05, Migdejong Migdejong@hotmail.com wrote:
Besides. This is probably the worst random selection method I've ever seen in use. It only allows for the middle options to appear... Ever tried the dice-rolling game. You'd be arrested for using it in a casino...
I don't think that's true considering I just tried it and rolled a 1 followed by a 6, which are not the middle options. If there really is a problem with the extension, which I'm not convinced there is, please make comments on that at http://meta.wikimedia.org/wiki/User_talk:Algorithm/RandomSelection
Angela.
You're rigth. This time (on another PC) it did work. Why is there such a big difference? On the first pc it showed all the time 3 or 4, 5 or 6 and 3 or 4. It seemed a bit weird like that. So how do I install this, and where? I'm a complete noob on this...
Mig
Copy the text from the extension (http://meta.wikimedia.org/wiki/User:Algorithm/RandomSelection) into a file called RandomSelection.php in docroot/extensions. (Depending on your wiki version, you might need the older version of the extension -- I did.) Then add the line
require_once( "extensions/RandomSelection.php" );
to your LocalSettings.php and everything should just work. Use the same markup as the examples given earlier in this thread to use the random selection function.
I've just used this to enable random quotes to be shown at the top of my Special:Recentchanges, which was a silly cosmetic feature I missed from MoinMoin. Yay.
Jillian
On 11/16/05, Mig Migdejong@hotmail.com wrote:
You're rigth. This time (on another PC) it did work. Why is there such a big difference? On the first pc it showed all the time 3 or 4, 5 or 6 and 3 or 4. It seemed a bit weird like that. So how do I install this, and where? I'm a complete noob on this...
Mig
Wikitech-l mailing list Wikitech-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/wikitech-l
wikitech-l@lists.wikimedia.org