Template:Navbox: Difference between revisions

From Hidden Palace
Jump to navigation Jump to search
No edit summary
No edit summary
 
(30 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{#vardefine:prototype_count|{{#ask:[[Has game::{{{1}}}]][[Has article type::Prototype]]|format=count}}}}{{#ifexpr: {{#var:prototype_count}} > 1 | {{#vardefine:prototypes|{{#ask:
<includeonly>{{#vardefine:prototype_count|{{#ask:[[Has game::{{{1}}}]][[Has article type::Prototype]]|format=count}}}}
[[Has game::{{{1}}}]] [[Has article type::Prototype]]
{{#vardefine:video_count|{{#ask:[[Has game::{{{1}}}]][[Has article type::Video]]|format=count}}}}
|sort=Has sort date,
{{#vardefine:asset_count|{{#ask:[[Has game::{{{1}}}]][[Has article type::Assets]]|format=count}}}}
|format=ul
|limit=120
}}}}
 
{{#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: systems
{{#arraydefine: systems
  | {{#ask:[[Has game::{{{1}}}]] [[Has system::+]] |mainlabel=- |headers=hide |?Has system |limit=120 }}
  | {{#ask:[[Has game::{{{1}}}]] [[Has system::+]] |mainlabel=- |headers=hide |?Has system |limit=175}}
  | , | sort=asc, unique
  | , | sort=asc, unique
}}
}}
{{#arraydefine: prototype_systems
{{#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=175 }}
  | , | sort=asc, unique
  | , | sort=asc, unique
}}
}}
{{#arraydefine: video_systems
{{#arraydefine: video_systems
  | {{#ask:[[Has game::{{{1}}}]] [[Has article type::Video]] [[Has system::+]] |mainlabel=- |headers=hide |?Has system |limit=120 }}
  | {{#ask:[[Has game::{{{1}}}]] [[Has article type::Video]] [[Has system::+]] |mainlabel=- |headers=hide |?Has system |limit=175 }}
| , | sort=asc, unique
}}
{{#arraydefine: asset_systems
| {{#ask:[[Has game::{{{1}}}]] [[Has article type::Assets]] [[Has system::+]] |mainlabel=- |headers=hide |?Has system |limit=175 }}
  | , | sort=asc, unique
  | , | sort=asc, unique
}}
}}
<div class="panel navbox">
<div class="panel navbox">
   <div class="panel-heading"> {{{1}}} prototypes </div>
   {{#ifexpr: {{#var: prototype_count}} > 0 | <div class="panel-heading"> {{{1}}} prototypes </div>
   <div class="panel-body">
   <div class="panel-body">
     <table>
     <table>
Line 40: Line 30:
     |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=175
     }}  | /\[\[(.*?\))(.*?)\((.*?)( [pP]rototype(.*?))?\)\]\]/ | [[$1|$3$5]];; 1=$1 ; 2=$2 ; 3=$3 ; 4=$4 ; 5=$5; }}
     }}  | /\[\[(.*?\))(.*?)\((.*?)( [pP]rototype(.*?))?\)\]\]/ | [[$1|$3$5]] }}
     </td></tr>}}
     </td></tr>}}
     </table>
     </table>
   </div>
   </div> |}}
   <div class="panel-heading"> {{{1}}} videos </div>
   {{#ifexpr: {{#var:video_count}} > 0 | <div class="panel-heading"> {{{1}}} videos </div>
   <div class="panel-body">
   <div class="panel-body">
     <table>
     <table>
Line 56: Line 46:
     |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=175
     }} | /\[\[(.*?)|[vV]ideo/(.*?)/(.*?)\]\]/ | [[$1|$3]];; 1=$1 ; 2=$2 ; 3=$3 }}
     }} | /\[\[(.*?)\{{!}}([vVideo])\/(.*?)\/(.*?)\]\]/ | [[$1|$4]] }}
    </td></tr>}}
    </table>
  </div>|}}
  {{#ifexpr: {{#var:asset_count}} > 0 | <div class="panel-heading"> {{{1}}} assets </div>
  <div class="panel-body">
    <table>
    {{#arrayprint:asset_systems||@@@@|<tr>{{#ifexpr: {{#arraysize:asset_systems}} > 1 | <td class="panel-group">@@@@</td>|}}<td>
    {{#regex:
    {{#ask:
    [[Has game::{{{1}}}]]
    [[Has article type::Assets]]
    [[Has system::@@@@]]
    |sort=Has sort number,Has built after,Has sort date,
    |format=ul
    |limit=175
    }} | /\[\[(.*?)\{{!}}([aAssets])\/(.*?)\/(.*?)\]\]/ | [[$1|$4]] }}
     </td></tr>}}
     </td></tr>}}
     </table>
     </table>
   </div>
   </div>|}}
</div></includeonly>
</div></includeonly>

Latest revision as of 03:59, September 26, 2023