Template:Navbox: Difference between revisions

From Hidden Palace
Jump to navigation Jump to search
No edit summary
No edit summary
Line 6: Line 6:
}}}}
}}}}


{{#arraydefine: systems
{{#vardefine:video_count|{{#ask:[[Has game::{{{1}}}]] [[Has article type::Video]]|format=count}}}}{{#ifexpr: {{#var:video_count}} > 1 | {{#vardefine:videos|{{#ask:
[[Has game::{{{1}}}]] [[Has article type::Video]]
|sort=Has sort date,
|format=ul
|limit=120
}}}}
 
{{#arraydefine: prototype_systems
  | {{#ask:[[Has game::{{{1}}}]] [[Has article type::Prototype]] [[Has system::+]] |mainlabel=- |headers=hide |?Has system |limit=120 }}
  | {{#ask:[[Has game::{{{1}}}]] [[Has article type::Prototype]] [[Has system::+]] |mainlabel=- |headers=hide |?Has system |limit=120 }}
| , | sort=asc, unique
}}
{{#arraydefine: video_systems
| {{#ask:[[Has game::{{{1}}}]] [[Has article type::Video]] [[Has system::+]] |mainlabel=- |headers=hide |?Has system |limit=120 }}
  | , | sort=asc, unique
  | , | sort=asc, unique
}}
}}


<div class="panel navbox">
<div class="panel navbox">
<div class="panel-heading"> {{{1}}} prototypes </div>
  <div class="panel-heading"> {{{1}}} prototypes </div>
<div class="panel-body">
  <div class="panel-body">
<table>
    <table>
{{#arrayprint:systems||@@@@|<tr>{{#ifexpr: {{#arraysize:systems}} > 1 | <td class="panel-group">@@@@</td>|}}<td>
    {{#arrayprint:prototype_systems||@@@@|<tr>{{#ifexpr: {{#arraysize:prototype_systems}} > 1 | <td class="panel-group">@@@@</td>|}}<td>
{{#regex:
    {{#regex:
{{#ask:
    {{#ask:
[[Has game::{{{1}}}]]
    [[Has game::{{{1}}}]]
[[Has article type::Prototype]]
    [[Has article type::Prototype]]
  [[Has system::@@@@]]
    [[Has system::@@@@]]
|sort=Has sort number,Has built after,Has sort date,
    |sort=Has sort number,Has built after,Has sort date,
|format=ul
    |format=ul
|limit=120
    |limit=120
}}  | /\[\[(.*?\))(.*?)\((.*?)( [pP]rototype(.*?))?\)\]\]/ | [[$1|$3$5]] }}
    }} | /\[\[(.*?\))(.*?)\((.*?)( [pP]rototype(.*?))?\)\]\]/ | [[$1|$3$5]] }}
</td></tr>}}
    </td></tr>}}
</table>
    </table>
</div></div></includeonly>
  </div>
  <div class="panel-heading"> {{{1}}} videos </div>
  <div class="panel-body">
    <table>
    {{#arrayprint:video_systems||@@@@|<tr>{{#ifexpr: {{#arraysize:video_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=120
    }}  | /\[\[(.*?\))(.*?)\((.*?)( [pP]rototype(.*?))?\)\]\]/ | [[$1|$3$5]] }}
    </td></tr>}}
    </table>
  </div>
</div></includeonly>

Revision as of 22:14, November 23, 2022