-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathremaining.html
84 lines (77 loc) · 2.67 KB
/
remaining.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
---
title: Remaining Games
robots: noindex
---
{% assign remaining_l = site.data.licensed_games | where: "hidden", false %}
{% assign remaining_u = site.data.unlicensed_games | where: "hidden", false %}
{% for item in site.data.list %}
{% assign wiki_data = nil %}
{% assign licensed = true %}
{% if item.wiki_line %}
{% assign line = item.wiki_line | split: "_" %}
{% assign i = line[1] | to_integer %}
{% if line[0] == "l" %}
{% assign wiki_data = site.data.licensed_games[i] %}
{% else %}
{% assign wiki_data = site.data.unlicensed_games[i] %}
{% if wiki_data %}{% assign licensed = false %}{% endif %}
{% endif %}
{% endif %}
{% unless wiki_data %}
{% assign wiki_data = site.data.licensed_games | where: "title", item.game | first %}
{% endunless %}
{% unless wiki_data %}
{% assign wiki_data = site.data.unlicensed_games | where: "title", item.game | first %}
{% if wiki_data %}{% assign licensed = false %}{% endif %}
{% endunless %}
{% unless wiki_data %}
{% assign wiki_data = site.data.licensed_games | where_exp: "game", "game.title contains item.game" | first %}
{% endunless %}
{% unless wiki_data %}
{% assign wiki_data = site.data.unlicensed_games | where_exp: "game", "game.title contains item.game" | first %}
{% if wiki_data %}{% assign licensed = false %}{% endif %}
{% endunless %}
{% if wiki_data and licensed %}
{% assign remaining_l = remaining_l | where_exp: "game", "game.title != wiki_data.title" %}
{% endif %}
{% if wiki_data and licensed == false %}
{% assign remaining_u = remaining_u | where_exp: "game", "game.title != wiki_data.title" %}
{% endif %}
{% endfor %}
<h1>Games Pending Scientific Analysis</h1>
<h2>Licensed Games</h2>
<table border="1">
<thead>
<tr>
<th>Game</th>
<th>Developer(s)</th>
<th>Publisher(s)</th>
<th>NA Release</th>
</tr>
</thead>
{% for item in remaining_l %}
<tr>
<td>{{ item.title | newline_to_br }}</td>
<td>{{ item.developer | newline_to_br }}</td>
<td>{{ item.publisher | newline_to_br }}</td>
<td>{{ item.year | newline_to_br }}</td>
</tr>
{% endfor %}
</table>
<h2>Unlicensed Games</h2>
<table border="1">
<thead>
<tr>
<th>Game</th>
<th>Publisher(s)</th>
<th>Release</th>
</tr>
</thead>
{% for item in remaining_u %}
<tr>
<td>{{ item.title | newline_to_br }}</td>
<td>{{ item.publisher | newline_to_br }}</td>
<td>{{ item.year | newline_to_br }}</td>
</tr>
{% endfor %}
</table>