Difference between revisions of "Template:Navbox prototype"

From Hidden Palace
Jump to: navigation, search
(Created page with "<includeonly>{{#vardefine:prototypes|{{#ask: [[Has game::{{{1}}}]] |sort=Has build date |format=ul }}}} {{Panel| {{{1}}} prototypes | {{#regex: {{#var:prototypes}} | /\[...")
 
(Increase limit)
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#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 build date
+
  |sort=Has sort date
 
  |format=ul
 
  |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 |  
 
{{Panel| {{{1}}} prototypes |  
  
{{#regex: {{#var:prototypes}} | /\[\[(.*?\))(.*?)\((.*?)( prototype(.*?))?\)\]\]/ | [[$1|$3$5]] }}
+
<table>
 +
{{#arrayprint:systems||@@@@|<tr>{{#ifexpr: {{#arraysize:systems}} > 1 | <td class="panel-group">@@@@</td>|}}<td>
 +
{{#regex:
 +
{{#ask:
 +
[[Has game::{{{1}}}]]
 +
[[Has system::@@@@]]
 +
|sort=Has sort date
 +
|format=ul
 +
|limit=120
 +
}}  | /\[\[(.*?\))(.*?)\((.*?)( [pP]rototype(.*?))?\)\]\]/ | [[$1|$3$5]] }}
 +
</td></tr>}}
 +
</table>
 +
 
 +
|class=navbox}}
  
|class=navbox}}<includeonly>
+
| }}</includeonly>

Latest revision as of 01:03, February 26, 2017