Difference between revisions of "Template:DerivedCategories"

From Fancyclopedia 3
Jump to navigation Jump to search
 
(7 intermediate revisions by the same user not shown)
Line 3: Line 3:
  
 
<nowiki>
 
<nowiki>
{{DerivedCategories | website={{{website|}}} | files={{{files|}}} | start={{{start|}}} | end={{{end|}}} | year={{{year|}}}}}
+
{{DerivedCategories | website={{{website|}}} | files={{{files|}}} | start={{{start|}}} | end={{{end|}}} | year={{{year|}}} | locale={{{locale|}}}}}
 
</nowiki>
 
</nowiki>
 
</noinclude>
 
</noinclude>
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|}}}||{{#ifeq:{{{end|}}}||{{#ifeq:{{{noend|}}}|yes||[[Category:Active]][[Category:IA]]}}|{{#ifeq:{{{end}}}|????||{{#ifeq:{{{end}}}|||[[Category:Inactive]]}}}}}}}}
+
{{#ifeq:{{{year|}}}|||[[Category:Inactive]]}}
 +
{{#ifeq:{{{start|}}}|||{{#ifeq:{{{noend|}}}|yes|[[Category:Active]][[Category:IA]]|{{#ifeq:{{{end}}}||[[Category:Active]][[Category:IA]]|[[Category:Inactive]]}}}}}}
 
{{#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]]}}
 +
{{#ifeq:{{{locale|}}}|||[[Category:located]]}}
 
{{#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]]}}}}

Latest revision as of 06:26, 12 June 2020

Usage:

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