Jump to content
Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Renders the homepage Featured Article panel. One article per day from the candidate pool defined once in Template:Home/FeaturedArticle/Pool: seven topic trees (Botany, Genetics, Chemistry, Climate, History, Culture, Cultivation — Climate is a topic category, not a portal card), the fourteen Conservation topic subcategories *excluding* Eradication Tracking and Analysis, the eight Geography topic subcategories, and the Historical sources tree.

Eradication Tracking and Analysis is omitted by name rather than by negation because eradication event pages cross-list there for portal navigation but functionally belong to the News slot, and SMW negation cascade made !Eradication campaigns unreliable for this purpose. By naming sibling topics explicitly we get precise control.

Selection is a deterministic daily rotation: the pool is sorted by title and the day of the year picks the offset through Template:Home/DailyOffset (the day times a stride of 97, modulo the pool count, the count read live from the same pool condition), so neighbouring days land far apart in the list. SMW's order=random takes no seed, so the earlier order=random,2026-11-20 idiom re-rolled on every parse; this form gives one stable pick per day regardless of purges.

When new topic categories are added under existing portals, no change here is required (subcategory recursion catches them). When a new portal is added, or new Conservation/Geography topic subcategories, append them to Template:Home/FeaturedArticle/Pool.

The pick itself lives in Template:Home/FeaturedArticle/Pick, which takes an offset and defaults to the daily rotation. Splitting it out is what lets the "Show another" control re-run the identical ask for a different offset, so a swapped card is byte-identical to a server-rendered one.

The wrapper div carries the live pool size and the offset showing on arrival. MediaWiki:Common.js reads both: it reveals the control only when the pool holds two or more articles, then swaps the card in place on click. What a visitor without JavaScript sees is unchanged.

On a day with an article chosen in Template:Home/DailyPicks the card shows that article. The wrapper keeps the rotation's offset, so "Show another" steps through the pool as on any other day.

Inner render in Template:Home/FeaturedArticle/Render.