Difference between revisions of "Template:ThemeCards"

From The Embassy of Good Science
(Created page with "<div class="row cards text-center row-centered"> <div class="col-md-3 col-lg-3 col-centered ">{{ ThemeCard| Principles & aspirations | 1 themes |:Category:Theme}}</div> <d...")
 
m (Protected "Template:ThemeCards": MWBot ([Edit=Allow only administrators] (indefinite)))
 
(19 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div class="row cards text-center row-centered">
+
{{#vardefine:CountPA|{{#ask:
  <div class="col-md-3 col-lg-3 col-centered ">{{ ThemeCard| Principles & aspirations | 1 themes |:Category:Theme}}</div>
+
[[Category:Theme]]
  <div class="col-md-3 col-lg-3 col-centered">{{ ThemeCard | Good practices | 53 themes |:Category:Theme}}</div>
+
[[Theme Type::Principles & Aspirations]]
  <div class="col-md-3 col-lg-3 col-centered">{{ 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 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