Template:Brand series row: Difference between revisions

Rewrite to not use Variables extension - use userparam and query Series category directly (via update-page on MediaWiki MCP Server)
Simplify - use #if on count result instead of #ifexpr comparison; fix whitespace issues (via update-page on MediaWiki MCP Server)
Line 1: Line 1:
<includeonly>{{#ifexpr:{{#ask:[[Category:CRT models]][[Has brand::{{{userparam}}}]][[Has series::{{{1}}}]]|format=count}} > 0|
<includeonly>{{#if:{{#ask:[[Category:CRT models]][[Has brand::{{{userparam}}}]][[Has series::{{{1}}}]]|format=count|default=}}|}|{{!}}-
{{!}}-
{{!}} [[{{{1}}}]]
{{!}} [[{{{1}}}]]
{{!}} {{#ask:[[Category:CRT models]][[Has brand::{{{userparam}}}]][[Has series::{{{1}}}]]|format=count}}
{{!}} {{#ask:[[Category:CRT models]][[Has brand::{{{userparam}}}]][[Has series::{{{1}}}]]|format=count}}
{{!}} {{#queryformlink:form=CRT query|query string=CRT query[brand]={{{userparam}}}&CRT query[series]={{{1}}}&_run|link text=Browse}}
{{!}} {{#queryformlink:form=CRT query|query string=CRT query[brand]={{{userparam}}}&CRT query[series]={{{1}}}&_run|link text=Browse}}}}</includeonly><noinclude>
}}</includeonly><noinclude>
Helper template for [[Template:CRTs by brand]] to display series rows filtered by brand.
Helper template for [[Template:CRTs by brand]] to display series rows filtered by brand.


MediaWiki Appliance - Powered by TurnKey Linux