Helper template for brand-specific series table rows (via create-page on MediaWiki MCP Server)
 
Fix row formatting - use actual pipe chars and leading newline like working Series row template (via update-page on MediaWiki MCP Server)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#vardefine:seen_series|{{#var:seen_series}}}}{{#ifeq:{{#pos:{{#var:seen_series}}|[{{{2}}}]}}|}|{{#vardefine:seen_series|{{#var:seen_series}}[{{{2}}}]|}}<tr>
<includeonly>
<td>[[{{{2}}}]]</td>
|-
<td>{{#ask:[[Category:CRT models]][[Has brand::{{{brand}}}]][[Has series::{{{2}}}]]|format=count}}</td>
| [[{{{1}}}]] || {{#ask:[[Category:CRT models]][[Has brand::{{{userparam}}}]][[Has series::{{{1}}}]]|format=count}} || {{#queryformlink:form=CRT query|query string=CRT query[brand]={{{userparam}}}&CRT query[series]={{{1}}}&_run|link text=Browse}}</includeonly><noinclude>
<td>{{#queryformlink:form=CRT query|query string=CRT query[brand]={{{brand}}}&CRT query[series]={{{2}}}&_run|link text=Browse}}</td>
</tr>}}</includeonly><noinclude>
Helper template for [[Template:CRTs by brand]] to display series rows filtered by brand.
Helper template for [[Template:CRTs by brand]] to display series rows filtered by brand.


This template deduplicates series values and outputs a table row for each unique series.
This template outputs a table row for each series showing count for the specified brand.


== Parameters ==
== Parameters ==
* '''1''' - The CRT model page name (not used, but passed by #ask)
* '''1''' - The series page name (from querying Category:Series)
* '''2''' - The series name (from ?Has series)
* '''userparam''' - The brand name (passed from parent template)
* '''brand''' - The brand to filter by (passed as named parameter)


== Usage ==
== Usage ==

Latest revision as of 15:02, 17 January 2026

Helper template for Template:CRTs by brand to display series rows filtered by brand.

This template outputs a table row for each series showing count for the specified brand.

Parameters

  • 1 - The series page name (from querying Category:Series)
  • userparam - The brand name (passed from parent template)

Usage

Used internally by Template:CRTs by brand.

MediaWiki Appliance - Powered by TurnKey Linux