Extensions:Species Trait Index

From Lorekeeper Wiki
Jump to navigation Jump to search
Species Trait Index
Description Provides a visual index of traits associated with a given species.
Author(s) Mercury
Status stable
Github itinerare/lorekeeper-ext-archive/species-trait-index
LK Version Unspecified
Is part of LK v2 (modified-main)






This extension is now incorporated into modified-main . The information here is maintained as documentation, and further support is via that branch.

Provides for a visual index of traits associated with a given species. The traits are arranged in the style of user inventories-- that is, in their categories if present-- though they are also arranged by rarity (ascending). Images are displayed if present, with a border colour-coded as with the rarity of the trait (if the rarity has an associated colour.) The trait's name is displayed either in addition to the image or alone in the case of no trait image. Traits without images are listed last within their rarity in an effort to preserve alignment. In the event a trait is associated with a subtype, the associated subtype is also listed.

This also adds a link to species' trait index to world entries if the species has traits associated with it.

Installation

Pull the branch. No further action necessary.

Configuration

None necessary. It is worth noting that trait images are capped to 150px height so that the whole page is not overlong in the event that you have many traits associated with a species; you can adjust this in the species_features blade as desired.

For the develop branch version, as per June 5th 2024

In the config/lorekeeper/extensions.php file, find:

    /*  Visual Trait Indexes
     *
     *  Species Trait Index - Mercury
     *  Subtype Trait Index - Speedy
     *  Universal Trait Index - CHERVB
     *  Trait Modals addition - Moif
     */

Under 'visual_trait_index' => look for the the following options:

'enable_species_index' => 0 Set this to 1 to enable the Species Trait Index. It will appear on the Encyclopedia, on the species page, under the name of each species, provided there is a trait exclusive to that species.

Usage

Troubleshooting

Find me in the Lorekeeper discord!

Images

See Also