Template:Item query: Difference between revisions

From Chinese Religious Text Authority
No edit summary
No edit summary
Line 17: Line 17:
       IF("{{{publisher|}}}" = "", TRUE, publishers HOLDS LIKE '%{{{publisher|}}}%') AND
       IF("{{{publisher|}}}" = "", TRUE, publishers HOLDS LIKE '%{{{publisher|}}}%') AND
       IF("{{{year_exact|}}}" = "", TRUE, YEAR(date) = "{{{year_exact|}}}" OR (YEAR(date_start) <= "{{{year_exact|}}}" AND YEAR(date_end) >= "{{{year_exact|}}}")) AND
       IF("{{{year_exact|}}}" = "", TRUE, YEAR(date) = "{{{year_exact|}}}" OR (YEAR(date_start) <= "{{{year_exact|}}}" AND YEAR(date_end) >= "{{{year_exact|}}}")) AND
       IF("{{{year_max|}}}" = "", TRUE, YEAR(date) < "{{{year_max|}}}" AND YEAR(date_end) < "{{{year_max|}}}")
       IF("{{{year_max|}}}" = "", TRUE, YEAR(date) < "{{{year_max|}}}" OR YEAR(date_end) < "{{{year_max|}}}")


|group by=Item_infobox._ID
|group by=Item_infobox._ID

Revision as of 18:27, 26 May 2021

This is the 'Item query' template. It should be called via the Form:Item query form.