Difference between revisions of "Template:DerivedCategories"

From Fancyclopedia 3
Jump to navigation Jump to search
m (Text replacement - "| files={{{files|}}}" to "")
 
(29 intermediate revisions by 2 users not shown)
Line 3: Line 3:
  
 
<nowiki>
 
<nowiki>
{{DerivedCategories | website={{{website|}}} | files={{{files|}}} | start={{{start|}}} | end={{{end|}}} | year={{{year|}}}}}
+
{{DerivedCategories | website={{{website|}}} | start={{{start|}}} | end={{{end|}}} | year={{{year|}}} | locale={{{locale|}}}}}
 
</nowiki>
 
</nowiki>
 
</noinclude>
 
</noinclude>
{{#ifeq:{{{start|+}}}|+|{{#ifeq:{{{year|+}}}|+|{{#ifeq:{{{end|+}}}|+|[[Category:nodates]]|}}|}}|}}
+
{{#ifeq:{{{noend|yes}}}|yes|{{#ifeq:{{{year|}}}||[[Category:noend]]}}|}}
{{#ifeq:{{{start|+}}}|+|{{#ifeq:{{{year|+}}}|+|[[Category:nostart]]|}}|}}
+
{{#ifeq:{{{start|}}}||{{#ifeq:{{{year|}}}||{{#ifeq:{{{end|}}}||[[Category:nodates]]|}}|}}|}}
{{#ifeq:{{{end|+}}}|+|{{#ifeq:{{{year|+}}}|+|[[Category:noend]]|}}|}}
+
{{#ifeq:{{{start|}}}||{{#ifeq:{{{year|}}}||[[Category:nostart]]|}}|}}
{{#ifeq:{{{year|+}}}|+|{{#ifeq:{{{end}}}||[[Category:Active]]|{{#ifeq:{{{end}}}|????||{{#ifeq:{{{end}}}|+||[[Category:Inactive]]}}}}}}}}
+
{{#ifeq:{{{website|}}}||[[Category:nowebsite]]|[[Category:haswebsite]][[Category:haslink]]}}
{{#ifeq:{{{website|+}}}|+|[[Category:nowebsite]]|[[Category:haswebsite]]}}
+
{{#ifeq:{{{locale|}}}|||[[Category:located]]}}
{{#ifeq:{{{files|+}}}|+|[[Category:nofiles]]|[[Category:hasfiles]]}}
+
{{#iferror:{{#expr:{{{year}} >= 2001}}||{{#ifexpr: {{{year}}} >= 2001|[[Category:IA]]}}}}
{{#ifeq:{{{year|+}}}|+||{{#ifexpr: {{{year}}} >= 2001|[[Category:IA]]|}}}}
+
{{#iferror:{{#expr:{{{end}}} >= 2001}}||{{#ifexpr: {{{end}}} >= 2001|[[Category:IA]]}}}}
{{#ifeq:{{{end|+}}}|+||{{#ifeq:{{{end}}}||[[Category:IA]]|{{#ifexpr: {{{end}}} >= 2001|[[Category:IA]]}}}}}}
+
[[Category:Validated]]

Latest revision as of 12:11, 15 November 2021

Usage:

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