Difference between revisions of "VenueOpenCheck"

From Sega Retro

Line 10: Line 10:
 
tables=venuebranding
 
tables=venuebranding
 
|fields=pagename,venuename,branding,date
 
|fields=pagename,venuename,branding,date
|where=pagename="{{#var:pagename}}"
+
|where=pagename="{{#var:pagename}}" and venuename != "{{#var:venuename2}}"
 
|order by=date DESC
 
|order by=date DESC
 
|limit=1
 
|limit=1
Line 16: Line 16:
 
|template=VenueOpenCheck/Cargo
 
|template=VenueOpenCheck/Cargo
 
|more results text=
 
|more results text=
}}{{#ifeq:{{#var:venuename}}|closed|{{#vardefine:result|false}}|{{#ifeq:{{#var:branding}}|{{#var:branding2}}|{{#vardefine:result|true}}|{{#vardefine:result|false}}}}}}{{Clearvar|pagename|pagename2|venuename|venuename2|branding|branding2|date|date2}}</includeonly><noinclude>
+
}}{{#ifeq:{{#var:branding}}|{{#var:branding2}}|{{#vardefine:result|true}}|{{#vardefine:result|false}}}}{{Clearvar|pagename|pagename2|venuename|venuename2|branding|branding2|date|date2}}</includeonly><noinclude>
  
 
A check to see if a venue is still open.
 
A check to see if a venue is still open.

Revision as of 12:20, 5 November 2020


A check to see if a venue is still open.

  • Hi-Tech Land Sega Shintoku -> false
  • Club Sega Akihabara -> false
  • Sega Akihabara 1-Goukan -> false