Difference between revisions of "VenueOpenCheck"

From Sega Retro

(Created page with "{{#cargo_query: tables=venuebranding |fields=pagename,venuename,branding,date |where=branding="Club Sega" |order by=date |format=template |template=VenueBrandCheck/Cargo }}<no...")
 
Line 1: Line 1:
{{#cargo_query:
+
<includeonly>{{#cargo_query:
 
tables=venuebranding
 
tables=venuebranding
 
|fields=pagename,venuename,branding,date
 
|fields=pagename,venuename,branding,date
|where=branding="Club Sega"
+
|where=venuename="{{{1|}}}"
 
|order by=date
 
|order by=date
 
|format=template
 
|format=template
|template=VenueBrandCheck/Cargo
+
|template=VenueOpenCheck/Cargo
}}<noinclude>[[Category:Sega Retro templates]]</noinclude>
+
|more results text=
 +
}}{{#vardefine:pagename2|{{#var:pagename}}}}{{#vardefine:venuename2|{{#var:venuename}}}}{{#vardefine:branding2|{{#var:branding}}}}{{#vardefine:date2|{{#var:date}}}}{{#cargo_query:
 +
tables=venuebranding
 +
|fields=pagename,venuename,branding,date
 +
|where=pagename="{{#var:pagename}}"
 +
|order by=date DESC
 +
|limit=1
 +
|format=template
 +
|template=VenueOpenCheck/Cargo
 +
|more results text=
 +
}}{{#ifeq:{{#var:branding}}|{{#var:branding2}}|{{#vardefine:result|true}}|{{#vardefine:result|}}}}{{Clearvar|pagename|pagename2|venuename|venuename2|branding|branding2|date|date2}}</includeonly><noinclude>
 +
 
 +
A check to see if a venue is still open.
 +
*{{VenueOpenCheck|Hi-Tech Land Sega Shintoku}}{{#var:result}}
 +
*{{VenueOpenCheck|Club Sega Akihabara}}{{#var:result}}
 +
*{{VenueOpenCheck|Sega Akihabara 1-Goukan}}{{#var:result}}
 +
 
 +
[[Category:Sega Retro templates]]</noinclude>

Revision as of 08:44, 5 November 2020


A check to see if a venue is still open.