Difference between revisions of "Template:ThemeCards"

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

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