Template:AV brand entry: Difference between revisions
Fix: Use [[:Category:]] link syntax instead of [[Category:]] to prevent adding transcluding pages to categories (via update-page on MediaWiki MCP Server) |
Add |link=advanced support to link to AV Device Search page (via update-page on MediaWiki MCP Server) |
||
| Line 5: | Line 5: | ||
<pre> | <pre> | ||
{{AV brand entry|brand=Videonics}} | {{AV brand entry|brand=Videonics}} | ||
{{AV brand entry|brand=Videonics|link=advanced}} | |||
</pre> | </pre> | ||
</noinclude><includeonly><templatestyles src="Template:AVBrandEntryStyles.css" /><div class="av-brand-entry">[[:Category:{{{brand}}} AV devices|<span class="av-brand-entry-link"></span>]]{{{brand}}}<span class="av-brand-entry-count">({{#ask:[[Category:AV devices]][[Has brand::{{{brand}}}]]|format=count}})</span></div></includeonly> | |||
Use <code>|link=advanced</code> to link to the AV Device Search page with the brand filter pre-set. | |||
</noinclude><includeonly><templatestyles src="Template:AVBrandEntryStyles.css" /><div class="av-brand-entry">{{#ifeq:{{{link|}}}|advanced|[{{SERVER}}/wiki/AV_Device_Search?brand={{urlencode:{{{brand}}}}} <span class="av-brand-entry-link"></span>]|[[:Category:{{{brand}}} AV devices|<span class="av-brand-entry-link"></span>]]}}{{{brand}}}<span class="av-brand-entry-count">({{#ask:[[Category:AV devices]][[Has brand::{{{brand}}}]]|format=count}})</span></div></includeonly> | |||
Latest revision as of 20:22, 5 February 2026
This template displays an AV device brand entry with an automatic count of devices.
Usage
{{AV brand entry|brand=Videonics}}
{{AV brand entry|brand=Videonics|link=advanced}}
Use |link=advanced to link to the AV Device Search page with the brand filter pre-set.