Template:Infobox/select/doc
< Template:Infobox | select
This is a documentation subpage for Template:Infobox/select (see that page for the template itself). It contains usage information, categories and other content that is not part of the original template page. |
This template is used on over 8,000 pages. Changes to this template may cause some server load, and mistakes will be visible on many pages. Please carefully test any edits before making them, and avoid making unnecessary edits. |
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, and {{infobox/p2}} uses it to select from multiple images.
Internals
editWhen there is more than one image to choose from, this template calls {{infobox/select2}}. The call to {{CURRENTHOUR}}
is isolated in the other template, so that it never occurs in the expansion of any infobox with only one image, and the wiki software shouldn't have to be at all clever to avoid recomputing the infobox on the hour.