Difference between revisions of "OmniPrereleases"

From Sega Retro

Line 9: Line 9:
 
|join on=prototypes.format=codeformat.format
 
|join on=prototypes.format=codeformat.format
 
|orderby=format,date
 
|orderby=format,date
 +
|group by=prototypes.name
 
|where=final="{{#var:gamename}}"
 
|where=final="{{#var:gamename}}"
 
|format=template
 
|format=template
Line 14: Line 15:
 
}}
 
}}
  
 +
<!--loop through systems-->
 +
{{#vardefine:j|0}}
 +
{{#while:
 +
| {{#if:{{#explode:{{#var:systems}}|,|{{#var:j}}}}|true}}
 +
| {{#vardefine:newsystem|yes}}{{#vardefine:currentsystem|{{#explode:{{#var:systems}}|,|{{#var:j}}}}}}
  
{{#var:systems}}
+
<!--loop through prototypes-->
 
+
<div style="display:inline;">
 
 
{{#var:names_MD}}
 
 
 
 
{{#vardefine:i|0}}
 
{{#vardefine:i|0}}
 
{{#while:
 
{{#while:
| {{#if:{{#explode:{{#var:names_MD}}|¦|{{#var:i}}}}|true}}
+
| {{#if:{{#explode:{{#var:names_{{#var:currentsystem}}}}|¦|{{#var:i}}}}|true}}
| {{#vardefine:output|{{#explode:{{#var:names_MD}}|¦|{{#var:i}}}}}}
+
| {{#vardefine:output|{{#explode:{{#var:names_{{#var:currentsystem}}}}|¦|{{#var:i}}}}}}
 
+
{{#if:{{#var:newsystem}}|<br/>{{ {{#var:currentsystem}} }} Prototypes:{{#vardefine:newsystem|}}}} [[{{#var:gamename}} ({{#var:output}})|{{#var:output}}]] {{!}}<nowiki> </nowiki>
*[[{{#var:gamename}} ({{#var:output}})|{{#var:output}}]]<br/>
 
 
 
 
{{incvar|i}}
 
{{incvar|i}}
 
+
}}
 +
</div>
 +
{{incvar|j}}
 
}}
 
}}
  
  
{{#var:names_GG}}
 
 
{{#vardefine:i|0}}
 
{{#while:
 
| {{#if:{{#explode:{{#var:names_GG}}|¦|{{#var:i}}}}|true}}
 
| {{#vardefine:output|{{#explode:{{#var:names_GG}}|¦|{{#var:i}}}}}}
 
 
*[[{{#var:gamename}} ({{#var:output}})|{{#var:output}}]]<br/>
 
 
{{incvar|i}}
 
}}
 
  
 
[[Category:Templates]]
 
[[Category:Templates]]

Revision as of 12:09, 3 March 2022