Store brand in variable so helper template can access it; fix parameter name for named args (via update-page on MediaWiki MCP Server)
Query Category:Series instead of CRT models to avoid duplicates; remove vardefine; use userparam (via update-page on MediaWiki MCP Server)
Line 10: Line 10:
__NOCACHE__
__NOCACHE__
{{#if:{{{brand|}}}|
{{#if:{{{brand|}}}|
{{#vardefine:current_brand|{{{brand}}}}}
<div style="margin-bottom: 1em;">Showing all CRT models from '''{{{brand}}}''' in the database. [[CRTs by Brand|← Back to all brands]]</div>
<div style="margin-bottom: 1em;">Showing all CRT models from '''{{{brand}}}''' in the database. [[CRTs by Brand|← Back to all brands]]</div>


Line 27: Line 26:
! Series !! Count !! Browse
! Series !! Count !! Browse
{{#ask:
{{#ask:
  [[Category:CRT models]]
  [[Category:Series]]
[[Has brand::{{{brand}}}]]
[[Has series::+]]
|?Has series
  |format=template
  |format=template
  |template=Brand series row
  |template=Brand series row
|named args=yes
  |link=none
  |link=none
  |sort=Has series
  |sort=
  |order=asc
  |order=asc
  |limit=500
  |limit=100
  |searchlabel=
  |searchlabel=
|userparam={{{brand}}}
}}
}}
{{!}}}
{{!}}}

Revision as of 14:50, 17 January 2026

This template creates a page listing all CRTs for a specific brand.

Usage

Create a page named "CRTs by [Brand]" with:

{{CRTs by brand|brand=Sony}}
MediaWiki Appliance - Powered by TurnKey Linux