Difference between revisions of "Template:ThemeCards"

From The Embassy of Good Science
Line 1: Line 1:
<div class="card-grid">{{ ThemeCard| Principles & aspirations | 1 themes |:Category:Theme}}{{ ThemeCard | Good practices | 53 themes |:Category:Theme}}{{ ThemeCard | Misconduct & misbehaviors | 25 themes |:Category:Theme}}</div>
+
{{#vardefine:CountPA|{{#ask:
 +
[[Category:Theme]]
 +
[[Theme Type::Principles & aspirations]]
 +
|format=count
 +
}}}}
 +
 
 +
{{#vardefine:CountGP|{{#ask:
 +
[[Category:Theme]]
 +
[[Theme Type::Principles & aspirations]]
 +
|format=count
 +
}}}}
 +
 
 +
{{#vardefine:CountMM|{{#ask:
 +
[[Category:Theme]]
 +
[[Theme Type::Misconduct & misbehaviors]]
 +
|format=count
 +
}}}}
 +
 
 +
<div class="card-grid">{{ ThemeCard| Principles & aspirations | {{#var:CountPA}} themes |:Category:Theme}}{{ ThemeCard | Good practices | {{#var:CountGP}} themes |:Category:Theme}}{{ ThemeCard | Misconduct & misbehaviors | {{#var:CountMM}} themes |:Category:Theme}}</div>

Revision as of 14:47, 25 November 2019

Cookies help us deliver our services. By using our services, you agree to our use of cookies.
5.1.6