Difference between revisions of "Template:ResourceCards"

From The Embassy of Good Science
(MWBot)
 
(27 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<div class="card-grid">
+
{{#vardefine:CountGuidelines|{{#ask:
{{ ResourceCard| Icon-themes.svg | Guidelines | 38 resources |:Category:Theme}}{{ ResourceCard| Icon-themes.svg | Cases | 53 resources |:Category:Theme}}{{ ResourceCard | Icon-themes.svg | Experts & Committees | 63 resources |:Category:Theme}}{{ ResourceCard | Icon-themes.svg |Education | 87 resources |:Category:Theme}}</div>
+
[[Category:Resource]]
 +
[[Resource Type::Guidelines]]
 +
|format=count
 +
}}}}{{#vardefine:CountCases|{{#ask:
 +
[[Category:Resource]]
 +
[[Resource Type::Cases]]
 +
|format=count
 +
}}}}{{#vardefine:CountEducation|{{#ask:
 +
[[Category:Resource]]
 +
[[Resource Type::Education]]
 +
|format=count
 +
}}}}{{#vardefine:CountScenarios|{{#ask:
 +
[[Category:Resource]]
 +
[[Resource Type::Scenarios]]
 +
|format=count
 +
}}}}{{#vardefine:CountInteractive|{{#ask:
 +
[[Category:Resource]]
 +
[[Resource Type::Interactive]]
 +
|format=count
 +
}}}}<div class="card-grid-5">{{ResourceCard|Icon-resources-guidelines.svg|Guidelines|{{#var:CountGuidelines}} resources|Special:BrowseData/Resource}}{{ResourceCard|Icon-resources-cases.svg|Cases |{{#var:CountCases}} resources|Special:BrowseData/Resource}}{{ResourceCard|Icon-resources-education.svg|Education|{{#var:CountEducation}} resources|Special:BrowseData/Resource}}{{ResourceCard|Icon-trainings.svg|Scenarios|{{#var:CountScenarios}} resources|Special:BrowseData/Resource}}{{ResourceCard|Icon-resources-other.svg|Interactive|{{#var:CountInteractive}} resources|Special:BrowseData/Resource}}</div>

Latest revision as of 17:18, 19 December 2023

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