More actions
(Created page with "<includeonly>{{#vardefine:CHARACTER|{{#replace:{{{character|}}}|'|}}}} {{#cargo_query: tables=Files |fields=_pageName, Caption, Date |where={{#if:{{{character|}}}|Files.Charac...") |
m (remove illegal characters in cameos too) |
||
Line 1: | Line 1: | ||
<includeonly>{{#vardefine:CHARACTER|{{#replace:{{{character|}}}|'|}}}} | <includeonly>{{#vardefine:CHARACTER|{{#replace:{{{character|}}}|'|}}}}{{#vardefine:CAMEO|{{#replace:{{{cameo|}}}|'|}}}} | ||
{{#cargo_query: | {{#cargo_query: | ||
tables=Files | tables=Files | ||
|fields=_pageName, Caption, Date | |fields=_pageName, Caption, Date | ||
|where={{#if:{{{character|}}}|Files.Characters HOLDS '{{#var:CHARACTER}}'}} {{#if:{{{cameo|}}}|{{#if:{{{character|}}}|AND}} Files.Cameos HOLDS '{{#var: | |where={{#if:{{{character|}}}|Files.Characters HOLDS '{{#var:CHARACTER}}'}} {{#if:{{{cameo|}}}|{{#if:{{{character|}}}|AND}} Files.Cameos HOLDS '{{#var:CAMEO}}'}} {{#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={{{sort|}}} | |order by={{{sort|}}} | ||
|limit={{{limit|4}}} | |limit={{{limit|4}}} | ||
Line 16: | Line 16: | ||
|caption field=Caption | |caption field=Caption | ||
|image width={{{widths|250}}} | |image width={{{widths|250}}} | ||
}}</includeonly><noinclude>Query for API. See also [[Template:Gallery_Section_(Cargo)/ | }} | ||
{{#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|}}}'}} | |||
</includeonly><noinclude>Query for API. See also [[Template:Gallery_Section_(Cargo)/Q3|Q3]].</noinclude> |
Latest revision as of 02:53, 11 June 2020
Query for API. See also Q3.