Template:Navbox prototype: Difference between revisions

From Hidden Palace
Jump to navigation Jump to search
(non-deterministic sorting on Tengen Tetris prototypes was bugging me. I think this is the correct way to add the page title as a sort key (will need to confirm))
(Replaced content with "{{Navbox|{{{1}}}}}")
Tag: Replaced
 
Line 1: Line 1:
<includeonly>{{#vardefine:prototype_count|{{#ask:[[Has game::{{{1}}}]]|format=count}}}}{{#ifexpr: {{#var:prototype_count}} > 1 | {{#vardefine:prototypes|{{#ask:
{{Navbox|{{{1}}}}}
[[Has game::{{{1}}}]]
|sort=Has sort date,
|format=ul
|limit=120
}}}}
 
{{#arraydefine: systems
| {{#ask:[[Has game::{{{1}}}]] [[Has system::+]] |mainlabel=- |headers=hide |?Has system |limit=120 }}
| , | sort=asc, unique
}}
 
{{Panel| {{{1}}} prototypes |
 
<table>
{{#arrayprint:systems||@@@@|<tr>{{#ifexpr: {{#arraysize:systems}} > 1 | <td class="panel-group">@@@@</td>|}}<td>
{{#regex:
{{#ask:
[[Has game::{{{1}}}]]
[[Has system::@@@@]]
|sort=Has sort number,Has built after,Has sort date,
|format=ul
|limit=120
}}  | /\[\[(.*?\))(.*?)\((.*?)( [pP]rototype(.*?))?\)\]\]/ | [[$1|$3$5]] }}
</td></tr>}}
</table>
 
|class=navbox}}
 
|}}</includeonly>

Latest revision as of 22:25, November 24, 2022