Jump to content

Template:Person gallery

From HopperWiki

Purpose

This template dynamically generates a gallery of images and associated details (like organization and position titles) for a specified list of people.

Usage

This template should be added where you need to display a gallery of people with their names, images, and associated professional information. It uses Cargo to fetch data from the Person table in the database.

Syntax

{{Person gallery|names=<comma-separated list of full names>|gallery_mode=<mode>}}

Handling errors

If no images are available for the provided names, the template will display an error message in the gallery area.

Developer notes

The template relies on Module:Person's get_person_gallery function, which queries the Person table (falling back to Person_extra for names not found there) and renders through Module:Gallery's build_gallery. Ensure the Cargo table and fields (Full_name, Image, Organizations, Position_titles) are properly configured and standardized across the wiki. Changes to database schema or Cargo configuration may require updates to the Lua script to maintain functionality.

See Also

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