Wikinews:Wikinews ads/random
Jump to navigation
Jump to search
Wikinews: All your articles are belong to us!
Refresh. Outputs a random ad from Wikinews:Wikinews ads (based on reminder of when you divide the current time by the number of ads. if reminder is 1, display ad 1.
Takes the following arguments:
- first unnamed argument: switch statement to use (for example if you want to display ad 17 {{Wikinews:Wikinews ads/random|17}})
- template= Use alternate template to display (e.g. you could have a template that displays as list). Template gets passed each ad as an unamed parameter
- nolinks If you don't want links in ads (aka you're linking the ad already), put to some value, otherwise omit it.
See also[edit]
- {{Wikinews:Wikinews ads/rotate}} depends on this template
- Consider also using something like User:TheFearow/randomad.js.