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}}}|WIKI}} <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>
</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>
MediaWiki Appliance - Powered by TurnKey Linux