Jump to content

Template:Wn/si/තොරතුරු පැනලය/select/උපදෙස්

From Wikimedia Incubator

භාවිතය

[edit source]

This is a subtemplate of {{Wn/si/තොරතුරු පැනලය}}. 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 {{Wn/si/තොරතුරු පැනලය/p2}} uses it to select from multiple images.

Internals

[edit source]

When there is more than one image to choose from, this template calls {{Wn/si/තොරතුරු පැනලය/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.

මේවාත් බලන්න

[edit source]