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 | | + | {{ 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> |