Template:Featured species/doc
Purpose
This template is a wrapper for the Lua module Module:Featured, and is used to dynamically display the most recently featured species. It is primarily intended for use on the front page or other high-visibility pages.
How it works
The template queries the Featured_content Cargo table for the most recent entry of type species by date_featured and transcludes that subpage. Registration is handled automatically by Template:Featured register — no index page is required.
To make a new featured species
Only one step is required:
Create a new subpage of Template:Featured species with the following at the top, inside <noinclude> tags:
{{Featured register|type=person|date_featured=YYYY-MM-DD}}
Substitute person with resource or species as appropriate.
The subpage will register itself in Cargo automatically on save. The most recent entry by date will be rendered via Module:Featured. To see the other previous entries (subpages) for Template:Featured species go here.
Scheduling future items
Setting date_featured to a future date will suppress the item until that date arrives.
Maintenance
- Each featured species is stored as a subpage of Template:Featured species
- Registration is handled by Template:Featured register inside a
<noinclude>block on each subpage - The most recent entry (by date) is rendered via Module:Featured
- The archive of all entries is available at Template:Featured species/archive