Jump to content

Template:Featured species/doc

From HopperWiki

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.

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

See also

Cookies help us deliver our services. By using our services, you agree to our use of cookies.