Difference between revisions of "Template:ThemeCards"

From The Embassy of Good Science
m (Protected "Template:ThemeCards": MWBot ([Edit=Allow only administrators] (indefinite)))
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{#vardefine:CountPA|{{#ask:
 
{{#vardefine:CountPA|{{#ask:
 
  [[Category:Theme]]
 
  [[Category:Theme]]
  [[Theme Type::Principles & aspirations]]
+
  [[Theme Type::Principles & Aspirations]]
 
  |format=count
 
  |format=count
 
}}}}{{#vardefine:CountGP|{{#ask:
 
}}}}{{#vardefine:CountGP|{{#ask:
 
  [[Category:Theme]]
 
  [[Category:Theme]]
  [[Theme Type::Good practices]]
+
  [[Theme Type::Good Practices]]
 
  |format=count
 
  |format=count
 
}}}}{{#vardefine:CountMM|{{#ask:
 
}}}}{{#vardefine:CountMM|{{#ask:
 
  [[Category:Theme]]
 
  [[Category:Theme]]
  [[Theme Type::Misconduct & misbehaviors]]
+
  [[Theme Type::Misconduct & Misbehaviors]]
 
  |format=count
 
  |format=count
}}}}
+
}}}}{{#vardefine:CountALL|{{#ask:
<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>
+
[[Category:Theme]]
 +
|format=count
 +
}}}}<div class="card-grid">{{ThemeCard|Principles & Aspirations|{{#var:CountPA}} themes|Special:BrowseData/Theme}}{{ThemeCard|Good Practices|{{#var:CountGP}} themes |Special:BrowseData/Theme}}{{ThemeCard|Misconduct & Misbehaviors|{{#var:CountMM}} themes|Special:BrowseData/Theme}}{{ThemeCard|All Themes|{{#var:CountALL}} themes|Special:BrowseData/Theme}}</div>

Latest revision as of 16:11, 28 November 2023

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