Difference between revisions of "Template:Elsewhere results"

From DAS Wiki
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<noinclude>This is the 'Elsewhere results' template. It should be called via the [[Special:RunQuery/Elsewhere_search]] form.
 
<noinclude>This is the 'Elsewhere results' template. It should be called via the [[Special:RunQuery/Elsewhere_search]] form.
 
</noinclude><includeonly>
 
</noinclude><includeonly>
Records that match this query (City = {{{city|}}}):
+
Records that match this query (City is {{{city|}}}):
{{#if {{{city|}}}="Baltimore"|{{#cargo_compound_query:tables=Buildings;where=city ="";fields=_pageName=Title,address=Address,completion_date=Completed,architect=Architect,image=Picture
+
 
 +
{{#ifeq: {{{city|}}}|Baltimore
 +
|{{#cargo_compound_query:tables=Buildings;where=city IS NULL; fields=_pageName=Title,address=Address,completion_date=Completed,architect=Architect,image=Picture
 
|order by=_pageName ASC
 
|order by=_pageName ASC
 
|format=dynamic table
 
|format=dynamic table
|default=
+
}}
}}|{{#cargo_compound_query:tables=Buildings;where=city LIKE "%{{{city|}}}%";fields=_pageName=Title,address=Address,completion_date=Completed,architect=Architect,image=Picture
+
|{{#cargo_compound_query:tables=Buildings;where=city LIKE "%{{{city|}}}%";fields=_pageName=Title,address=Address,completion_date=Completed,architect=Architect,image=Picture
 
|order by=_pageName ASC
 
|order by=_pageName ASC
 
|format=dynamic table
 
|format=dynamic table
 
|default=
 
|default=
 +
}}
 
}}
 
}}
 
</includeonly>
 
</includeonly>

Latest revision as of 08:07, July 9, 2021

This is the 'Elsewhere results' template. It should be called via the Special:RunQuery/Elsewhere_search form.