Template:Infobox/select2/doc
This is a documentation subpage for Template:Infobox/select2 (see that page for the template itself). It contains usage information, categories and other content that is not part of the original template page. |
Usage
editThis 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
editThis 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.