Difference between revisions of "Template:DerivedCategories"

From Fancyclopedia 3
Jump to navigation Jump to search
Line 9: Line 9:
 
{{#ifeq:{{{start|}}}||{{#ifeq:{{{year|}}}||{{#ifeq:{{{end|}}}||[[Category:nodates]]|}}|}}|}}
 
{{#ifeq:{{{start|}}}||{{#ifeq:{{{year|}}}||{{#ifeq:{{{end|}}}||[[Category:nodates]]|}}|}}|}}
 
{{#ifeq:{{{start|}}}||{{#ifeq:{{{year|}}}||[[Category:nostart]]|}}|}}
 
{{#ifeq:{{{start|}}}||{{#ifeq:{{{year|}}}||[[Category:nostart]]|}}|}}
 +
 +
 
{{#ifeq:{{{year|}}}||a{{#ifeq:{{{end|}}}||b{{#ifeq:{{{noend|}}}|yes|c|d[[Category:Active]][[Category:IA]]}}|e{{#ifeq:{{{end}}}|????||{{#ifeq:{{{end}}}|||[[Category:Inactive]]}}}}}}}}
 
{{#ifeq:{{{year|}}}||a{{#ifeq:{{{end|}}}||b{{#ifeq:{{{noend|}}}|yes|c|d[[Category:Active]][[Category:IA]]}}|e{{#ifeq:{{{end}}}|????||{{#ifeq:{{{end}}}|||[[Category:Inactive]]}}}}}}}}
 +
 +
{{#ifeq:{{{year|}}}||{{#ifeq:{{{noend|}}}|yes|[[Category:Active1]][[Category:IA1]]|{{#ifeq:{{{end}}}||[[Category:Active2]][[Category:IA2]]}}}}}}
 +
 
{{#ifeq:{{{website|}}}||[[Category:nowebsite]]|[[Category:haswebsite]][[Category:haslink]]}}
 
{{#ifeq:{{{website|}}}||[[Category:nowebsite]]|[[Category:haswebsite]][[Category:haslink]]}}
 
{{#ifeq:{{{files|}}}||[[Category:nofiles]]|[[Category:hasfiles]]}}
 
{{#ifeq:{{{files|}}}||[[Category:nofiles]]|[[Category:hasfiles]]}}
 
{{#iferror:{{#expr:{{{year}} >= 2001}}||{{#ifexpr: {{{year}}} >= 2001|[[Category:IA]]}}}}
 
{{#iferror:{{#expr:{{{year}} >= 2001}}||{{#ifexpr: {{{year}}} >= 2001|[[Category:IA]]}}}}
 
{{#iferror:{{#expr:{{{end}}} >= 2001}}||{{#ifexpr: {{{end}}} >= 2001|[[Category:IA]]}}}}
 
{{#iferror:{{#expr:{{{end}}} >= 2001}}||{{#ifexpr: {{{end}}} >= 2001|[[Category:IA]]}}}}

Revision as of 05:41, 19 May 2020

Usage:

{{DerivedCategories | website={{{website|}}} | files={{{files|}}} | start={{{start|}}} | end={{{end|}}} | year={{{year|}}}}}


abd