Template:Brand entry: Difference between revisions
Use TemplateStyles for clean CSS with hover effects (via update-page on MediaWiki MCP Server) |
Add optional link=advanced parameter to link to Advanced Search page (via update-page on MediaWiki MCP Server) |
||
| Line 5: | Line 5: | ||
<pre> | <pre> | ||
{{Brand entry|brand=Sony}} | {{Brand entry|brand=Sony}} | ||
{{Brand entry|brand=Sony|link=advanced}} | |||
</pre> | </pre> | ||
</noinclude><includeonly><templatestyles src="Template:BrandEntryStyles.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> | |||
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|[{{fullurl:Advanced Search|brand={{{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> | |||