Difference between revisions of "Template:CList"

(copying over the mw-collapsible code from {{CList2}} since the "GEcollapsible" class code hasn't worked for a few years now)
 
(29 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{{!}} class="collapsible collapsed" style="border:none; width:100%; float:left;"
+
{{#if:{{{CountCat|}}}|{{#vardefine:count|{{PAGESINCAT:{{fixtick|{{{CountCat|x}}}}}|pages|R}}}}|{{#vardefine:count|1}}}}{{#ifexpr:{{#var:count}} >= 1 |{{#if:{{{dpl|}}}|{{{!}} class="mw-collapsible {{{collapse|}}}" data-expandtext="▼" data-collapsetext="▲" style="border:none; width:100%; float:left;"
! align="left" {{!}}<div style="font-size:18px;">{{{Title|}}}{{#if:{{{CountCat|}}}| ({{PAGESINCAT:{{fixtick|{{{CountCat|}}}}}}})}}</div>[[File:Divider3.png{{!}}left{{!}}link=]]
+
! align="left" {{!}}<div style="font-size:18px;">{{{Title|}}}{{#if:{{{CountCat|}}}|&nbsp;([[:Category:{{fixtick|{{{CountCat|x}}}}}|{{#var:count}}]])}}</div>[[File:Divider3.png{{!}}left{{!}}link=]]
 
{{!}}-
 
{{!}}-
{{!}}
+
{{!}}{{#if:{{{dpl|}}}|{{#ifeq: * | {{#sub:{{{dpl|}}}|0|1}}|
{{{dpl|}}}
+
{{{dpl|}}}|{{{dpl|}}}}}}}
 
{{!}}}
 
{{!}}}
 +
}}|}}

Latest revision as of 11:11, 27 September 2020