Template:Navbox: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<includeonly>{{#vardefine:prototype_count|{{#ask:[[Has game::{{{1}}}]]|format=count}}}}{{#ifexpr: {{#var:prototype_count}} > 1 | {{#vardefine:prototypes|{{#ask: Has game::{...") |
No edit summary |
||
(40 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#vardefine:prototype_count|{{#ask:[[Has game::{{{1}}}]]|format=count}}}}{{# | <includeonly>{{#vardefine:prototype_count|{{#ask:[[Has game::{{{1}}}]][[Has article type::Prototype]]|format=count}}}} | ||
{{#vardefine:video_count|{{#ask:[[Has game::{{{1}}}]][[Has article type::Video]]|format=count}}}} | |||
{{#vardefine:asset_count|{{#ask:[[Has game::{{{1}}}]][[Has article type::Assets]]|format=count}}}} | |||
}}}} | |||
{{#arraydefine: systems | {{#arraydefine: systems | ||
| {{#ask:[[Has game::{{{1}}}]] [[Has system::+]] |mainlabel=- |headers=hide |?Has system |limit= | | {{#ask:[[Has game::{{{1}}}]] [[Has system::+]] |mainlabel=- |headers=hide |?Has system |limit=175}} | ||
| , | sort=asc, unique | |||
}} | |||
{{#arraydefine: prototype_systems | |||
| {{#ask:[[Has game::{{{1}}}]] [[Has article type::Prototype]] [[Has system::+]] |mainlabel=- |headers=hide |?Has system |limit=175 }} | |||
| , | sort=asc, unique | |||
}} | |||
{{#arraydefine: video_systems | |||
| {{#ask:[[Has game::{{{1}}}]] [[Has article type::Video]] [[Has system::+]] |mainlabel=- |headers=hide |?Has system |limit=175 }} | |||
| , | sort=asc, unique | |||
}} | |||
{{#arraydefine: asset_systems | |||
| {{#ask:[[Has game::{{{1}}}]] [[Has article type::Assets]] [[Has system::+]] |mainlabel=- |headers=hide |?Has system |limit=175 }} | |||
| , | sort=asc, unique | | , | sort=asc, unique | ||
}} | }} | ||
<div class="panel navbox"> | <div class="panel navbox"> | ||
<div class="panel-heading"> {{{1}}} prototypes </div> | {{#ifexpr: {{#var: prototype_count}} > 0 | <div class="panel-heading"> {{{1}}} prototypes </div> | ||
<div class="panel-body"> | <div class="panel-body"> | ||
<table> | <table> | ||
{{#arrayprint: | {{#arrayprint:prototype_systems||@@@@|<tr>{{#ifexpr: {{#arraysize:systems}} > 1 | <td class="panel-group">@@@@</td>|}}<td> | ||
{{#regex: | {{#regex: | ||
{{#ask: | {{#ask: | ||
[[Has game::{{{1}}}]] | |||
[[Has article type::Prototype]] | |||
[[Has system::@@@@]] | |||
|sort=Has sort number,Has built after,Has sort date, | |||
|format=ul | |||
}} | /\[\[(.*?\))(.*?)\((.*?)( [pP]rototype(.*?))?\)\]\]/ | [[$1|$3$5]] }} | |limit=175 | ||
</td></tr>}} | }} | /\[\[(.*?\))(.*?)\((.*?)( [pP]rototype(.*?))?\)\]\]/ | [[$1|$3$5]] }} | ||
</table> | </td></tr>}} | ||
</div></div></includeonly> | </table> | ||
</div> |}} | |||
{{#ifexpr: {{#var:video_count}} > 0 | <div class="panel-heading"> {{{1}}} videos </div> | |||
<div class="panel-body"> | |||
<table> | |||
{{#arrayprint:video_systems||@@@@|<tr>{{#ifexpr: {{#arraysize:systems}} > 1 | <td class="panel-group">@@@@</td>|}}<td> | |||
{{#regex: | |||
{{#ask: | |||
[[Has game::{{{1}}}]] | |||
[[Has article type::Video]] | |||
[[Has system::@@@@]] | |||
|sort=Has sort number,Has built after,Has sort date, | |||
|format=ul | |||
|limit=175 | |||
}} | /\[\[(.*?)\{{!}}([vVideo])\/(.*?)\/(.*?)\]\]/ | [[$1|$4]] }} | |||
</td></tr>}} | |||
</table> | |||
</div>|}} | |||
{{#ifexpr: {{#var:asset_count}} > 0 | <div class="panel-heading"> {{{1}}} assets </div> | |||
<div class="panel-body"> | |||
<table> | |||
{{#arrayprint:asset_systems||@@@@|<tr>{{#ifexpr: {{#arraysize:asset_systems}} > 1 | <td class="panel-group">@@@@</td>|}}<td> | |||
{{#regex: | |||
{{#ask: | |||
[[Has game::{{{1}}}]] | |||
[[Has article type::Assets]] | |||
[[Has system::@@@@]] | |||
|sort=Has sort number,Has built after,Has sort date, | |||
|format=ul | |||
|limit=175 | |||
}} | /\[\[(.*?)\{{!}}([aAssets])\/(.*?)\/(.*?)\]\]/ | [[$1|$4]] }} | |||
</td></tr>}} | |||
</table> | |||
</div>|}} | |||
</div></includeonly> |