Create brand entry template with count subquery (via create-page on MediaWiki MCP Server)
 
Update search link: Advanced_Search → CRT_Search (via update-page on MediaWiki MCP Server)
 
(13 intermediate revisions by the same user not shown)
Line 5: Line 5:
<pre>
<pre>
{{Brand entry|brand=Sony}}
{{Brand entry|brand=Sony}}
{{Brand entry|brand=Sony|link=advanced}}
</pre>
</pre>
</noinclude><includeonly><div style="break-inside: avoid; margin-bottom: 0.4em;">[[CRTs by {{{brand}}}|{{{brand}}}]] <span style="color: #72777d; font-size: 0.9em;">({{#ask:[[Category:CRT models]][[Has brand::{{{brand}}}]]|format=count}})</span></div></includeonly>
 
Use <code>|link=advanced</code> to link to the CRT Search page with the brand filter pre-set.
</noinclude><includeonly><templatestyles src="Template:BrandEntryStyles.css" /><div class="brand-entry">{{#ifeq:{{{link|}}}|advanced|[{{SERVER}}/wiki/CRT_Search?brand={{urlencode:{{{brand}}}}} <span class="brand-entry-link"></span>]|[[CRTs by {{{brand}}}|<span class="brand-entry-link"></span>]]}}{{{brand}}}<span class="brand-entry-count">({{#ask:[[Category:CRT models]][[Has brand::{{{brand}}}]]|format=count}})</span></div></includeonly>

Latest revision as of 02:56, 5 February 2026

This template displays a brand entry with an automatic count of CRT models.

Usage

{{Brand entry|brand=Sony}}
{{Brand entry|brand=Sony|link=advanced}}

Use |link=advanced to link to the CRT Search page with the brand filter pre-set.

MediaWiki Appliance - Powered by TurnKey Linux