Template:Navbox prototype: Difference between revisions

From Hidden Palace
Jump to navigation Jump to search
(Switch sort field to Has sort date to avoid inner/outer join problem (limitation of SMW))
(Only show if there is more than one prototype of a game)
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 sort date
  |sort=Has sort date
Line 9: Line 9:
{{#regex: {{#var:prototypes}} | /\[\[(.*?\))(.*?)\((.*?)( prototype(.*?))?\)\]\]/ | [[$1|$3$5]] }}
{{#regex: {{#var:prototypes}} | /\[\[(.*?\))(.*?)\((.*?)( prototype(.*?))?\)\]\]/ | [[$1|$3$5]] }}


|class=navbox}}<includeonly>
|class=navbox}} | }}<includeonly>

Revision as of 01:35, November 2, 2016