Template:Brand entry: Difference between revisions

Make entire card clickable using absolute positioned link overlay (via update-page on MediaWiki MCP Server)
Refactor to use TemplateStyles for modern Tailwind-like styling (via update-page on MediaWiki MCP Server)
Line 6: Line 6:
{{Brand entry|brand=Sony}}
{{Brand entry|brand=Sony}}
</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>
</noinclude><includeonly><templatestyles src="Template:Brand entry/styles.css" /><div class="brand-entry">[[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>
MediaWiki Appliance - Powered by TurnKey Linux