Jump to content

Template:Cargo query doc

From HopperWiki

A meta-template that generates standard documentation for any template built on p.query. Place this on the /doc subpage of each Cargo query template.

Usage

Pass each display column as a numbered parameter col1 through col10:

{{Cargo query doc
| table        = Resource
| filter_field = All_geography
| col1         = Name
| col2         = Species purview
| col3         = Year published
| col4         = Resource link
| col5         = Descriptive keyword
| col6         = Language
| col7         = Geographic purview
| col8         = Author
| row_cutoff   = 3
}}

Parameters

Parameter Required Notes
table Yes The Cargo table being queried
filter_field For Tier 1 templates The focal field filtered by page title
filters For Tier 2 templates The full semicolon-separated filter string
col1 – col10 Yes Display column names, one per parameter
order_by No ORDER BY clause if the template sets one
row_cutoff No Defaults to 3
character_cutoff No Defaults to 600
custom_intro No Override the auto-generated first sentence entirely
Cookies help us deliver our services. By using our services, you agree to our use of cookies.