Jump to content

Template:Cargo query

From WhiskerWiki

This function was created as a wrapper function for making Cargo queries of WhiskerWiki's databases. It outputs a formatted and collapsible html display table. This template is a basic wrapper around a Cargo query that retains almost all the functionality of a raw Cargo query but importantly "future-proofs" the wiki by allowing central control and formatting of queries across the wiki. This template can be called as shown below. All fields shown are required except for `cargo_display_fields` which will default to `cargo_fields` if not defined.

Example usage

{{Cargo_query
|cargo_table=Resource
|cargo_fields=English_short_title, Geographic_purview, Category, Descriptive_keyword, Author, Language, Species_purview
|cargo_display_fields=English_short_title, Geographic_purview, Category, Descriptive_keyword, Author, Language, Species_purview
|cargo_where=Category HOLDS "Guide" AND Descriptive_keyword HOLDS "Species Identification"
}}

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