Template:Navbox prototype: Difference between revisions
Jump to navigation
Jump to search
(WIP system grouping) |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#vardefine:prototype_count|{{#ask:[[Has game::{{{1}}}]]|format=count}}}} {{#ifexpr: {{#var:prototype_count}} > 1 | {{#vardefine:prototypes|{{#ask: | <includeonly>{{#vardefine:prototype_count|{{#ask:[[Has game::{{{1}}}]]|format=count}}}}{{#ifexpr: {{#var:prototype_count}} > 1 | {{#vardefine:prototypes|{{#ask: | ||
[[Has game::{{{1}}}]] | [[Has game::{{{1}}}]] | ||
|sort=Has sort date | |sort=Has sort date | ||
Line 7: | Line 7: | ||
{{#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=120 }} | ||
| , | sort=asc, unique | | , | sort=asc, unique | ||
}} | }} | ||
Line 13: | Line 13: | ||
{{Panel| {{{1}}} prototypes | | {{Panel| {{{1}}} prototypes | | ||
{{#arrayprint:systems||@@@@|< | <table> | ||
{{#arrayprint:systems||@@@@|<tr>{{#ifexpr: {{#arraysize:systems}} > 1 | <td class="panel-group">@@@@</td>|}}<td> | |||
{{#regex: | {{#regex: | ||
{{#ask: | {{#ask: | ||
Line 22: | Line 23: | ||
|limit=120 | |limit=120 | ||
}} | /\[\[(.*?\))(.*?)\((.*?)( [pP]rototype(.*?))?\)\]\]/ | [[$1|$3$5]] }} | }} | /\[\[(.*?\))(.*?)\((.*?)( [pP]rototype(.*?))?\)\]\]/ | [[$1|$3$5]] }} | ||
</ | </td></tr>}} | ||
</table> | |||
|class=navbox}} | |class=navbox}} | ||
| }}</includeonly> | |}}</includeonly> |