Add hover effects using inline JavaScript handlers (via update-page on MediaWiki MCP Server)
Update search link: Advanced_Search → CRT_Search (via update-page on MediaWiki MCP Server)
 
(5 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 class="brand-entry-btn" style="position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.25rem; padding: 1rem 0.75rem; background: #ffffff; border: 2px solid #3b82f6; border-radius: 0.75rem; font-weight: 600; font-size: 0.9375rem; color: #1e40af; text-align: center; box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.2), 0 2px 4px -2px rgba(59, 130, 246, 0.15); cursor: pointer; transition: all 0.2s ease;" onmouseover="this.style.background='#eff6ff';this.style.borderColor='#2563eb';this.style.boxShadow='0 10px 15px -3px rgba(59,130,246,0.25), 0 4px 6px -4px rgba(59,130,246,0.2)';this.style.transform='translateY(-3px)';" onmouseout="this.style.background='#ffffff';this.style.borderColor='#3b82f6';this.style.boxShadow='0 4px 6px -1px rgba(59,130,246,0.2), 0 2px 4px -2px rgba(59,130,246,0.15)';this.style.transform='translateY(0)';">[[CRTs by {{{brand}}}|<span style="position: absolute; inset: 0; z-index: 1;"></span>]]{{{brand}}}<span style="display: block; font-weight: 500; font-size: 0.8125rem; color: #475569; margin-top: 0.125rem;">({{#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