Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Gallery Section (Cargo)/Q1: Difference between revisions

Template page
(Created page with "<includeonly>{{#cargo_query: tables=Files |fields=_pageName, Caption, Date |where={{#if:{{{character|}}}|Files.Characters HOLDS '{{#var:CHARACTER}}'}} {{#if:{{{location|}}}|AN...")
 
m (fix some typos, add option to query cameos)
Line 1: Line 1:
<includeonly>{{#cargo_query:
<includeonly>
{{#cargo_query:
tables=Files
tables=Files
|fields=_pageName, Caption, Date
|fields=_pageName, Caption, Date
|where={{#if:{{{character|}}}|Files.Characters HOLDS '{{#var:CHARACTER}}'}} {{#if:{{{location|}}}|AND Files.Locations HOLDS '{{{location|}}}'}} {{#if:{{{weapon|}}}|AND Files.Weapons HOLDS '{{{weapons|}}}'}} {{#if:{{{artist|}}}|AND Files.Artists HOLDS '{{{artist|}}}'}} {{#if:{{{section|}}}|AND Files.Gallery_Sections HOLDS '{{{section|}}}'}} {{#if:{{{source|}}}|AND Files.Source HOLDS '{{{source|}}}'}}
|where={{#if:{{{character|}}}|Files.Characters HOLDS '{{#var:CHARACTER}}'}} {{#if:{{{cameo|}}}|{{#if:{{{character|}}}|AND}} Files.Cameos HOLDS '{{#var:CHARACTER}}'}} {{#if:{{{location|}}}|{{#if:{{{character|}}}{{{cameo|}}}|AND}} Files.Locations HOLDS '{{{location|}}}'}} {{#if:{{{weapon|}}}|AND Files.Weapons HOLDS '{{{weapon|}}}'}} {{#if:{{{artist|}}}|AND Files.Artists HOLDS '{{{artist|}}}'}} {{#if:{{{section|}}}|AND Files.Gallery_Sections HOLDS '{{{section|}}}'}} {{#if:{{{source|}}}|AND Files.Source HOLDS '{{{source|}}}'}}
|order by={{#var:sort}}
|order by={{#var:sort}}
|limit={{{limit|4}}}
|limit={{{limit|4}}}

Revision as of 21:47, 9 June 2020

Main query