Make entire card clickable using absolute positioned link overlay (via update-page on MediaWiki MCP Server)
Update search link: Advanced_Search → CRT_Search (via update-page on MediaWiki MCP Server)
 
(8 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="position: relative; background: rgba(128, 128, 128, 0.1); border: 1px solid rgba(128, 128, 128, 0.3); border-radius: 10px; padding: 0.7em 0.5em; text-align: center; cursor: pointer;">[[CRTs by {{{brand}}}|<span style="position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 1;"></span>]]<div style="font-weight: 600; font-size: 1em; color: #3366cc;">{{{brand}}}</div><div style="opacity: 0.6; font-size: 0.8em; margin-top: 0.2em;">({{#ask:[[Category:CRT models]][[Has brand::{{{brand}}}]]|format=count}})</div></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