Jump to content

Template:Infobox/select2

From Wikinews, the free news source you can write!

{{{1}}}

[edit] Template documentation

Usage

This is a subtemplate of {{infobox}}. It takes from one to twelve unnamed parameters, and returns one of them. As of this writing, the selection should rotate once an hour, based on the {{CURRENTHOUR}} magic word.

Internals

This template contains the rotation by hour, and is called by {{infobox/select}} when there is actually more than one image to choose from. Keeping these two templates separate means if an infobox doesn't provide more than one image, it doesn't transclude any template that invokes {{CURRENTHOUR}}, and the wiki software shouldn't have to be at all clever to avoid recomputing the infobox on the hour.

See also