Template:Brand entry: Difference between revisions
Fix external link syntax - use {{SERVER}} to create full URL for Advanced Search links (via update-page on MediaWiki MCP Server) |
Fix URL encoding: remove |WIKI to use default QUERY encoding (spaces → + instead of _) (via update-page on MediaWiki MCP Server) |
||
| Line 9: | Line 9: | ||
Use <code>|link=advanced</code> to link to the Advanced Search page with the brand filter pre-set. | Use <code>|link=advanced</code> to link to the Advanced Search page with the brand filter pre-set. | ||
</noinclude><includeonly><templatestyles src="Template:BrandEntryStyles.css" /><div class="brand-entry">{{#ifeq:{{{link|}}}|advanced|[{{SERVER}}/wiki/Advanced_Search?brand={{urlencode:{{{brand}}} | </noinclude><includeonly><templatestyles src="Template:BrandEntryStyles.css" /><div class="brand-entry">{{#ifeq:{{{link|}}}|advanced|[{{SERVER}}/wiki/Advanced_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> | ||
Revision as of 02:08, 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 Advanced Search page with the brand filter pre-set.