Difference between revisions of "Template:ResourceCards"
From The Embassy of Good Science
(MWBot) |
|||
(26 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | <div class="card-grid"> | + | {{#vardefine:CountGuidelines|{{#ask: |
− | {{ ResourceCard| Icon-resources-guidelines.svg | Guidelines | | + | [[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> |