Difference between revisions of "Template:ResourceCards"

From The Embassy of Good Science
Line 1: Line 1:
 +
{{#vardefine:CountGuidelines|{{#ask:
 +
[[Category:Resource]]
 +
[[Resource Type::Guidelines]]
 +
|format=count
 +
}}}}{{#vardefine:CountCases|{{#ask:
 +
[[Category:Resource]]
 +
[[Resource Type::Cases]]
 +
|format=count
 +
}}}}{{#vardefine:CountEC|{{#ask:
 +
[[Category:Resource]]
 +
[[Resource Type::Experts & Committees]]
 +
|format=count
 +
}}}}{{#vardefine:CountEducation|{{#ask:
 +
[[Category:Resource]]
 +
[[Resource Type::Education]]
 +
|format=count
 +
}}}}
 
<div class="card-grid">
 
<div class="card-grid">
{{ ResourceCard | Icon-resources-guidelines.svg | Guidelines | 38 resources |:Category:Resource}}{{ ResourceCard| Icon-resources-cases.svg | Cases | 53 resources |:Category:Resource}}{{ ResourceCard | Icon-resources-experts-committees.svg | Experts & Committees | 63 resources |:Category:Resource}}{{ ResourceCard | Icon-resources-education.svg |Education | 87 resources |:Category:Resource}}</div>
+
{{ ResourceCard | Icon-resources-guidelines.svg | Guidelines | {{#var:CountGuidelines}} resources |:Category:Resource}}{{ ResourceCard| Icon-resources-cases.svg | Cases | {{#var:CountCases}} resources |:Category:Resource}}{{ ResourceCard | Icon-resources-experts-committees.svg | Experts & Committees | {{#var:CountEC}} resources |:Category:Resource}}{{ ResourceCard | Icon-resources-education.svg |Education | {{#var:CountEducation}} resources |:Category:Resource}}</div>

Revision as of 13:57, 25 November 2019

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