Sjabloon:Subportal articles: verschil tussen versies
Uit Auditpedia
Regel 10: | Regel 10: | ||
</pre> | </pre> | ||
Edit the page to see the template text. | Edit the page to see the template text. | ||
− | </noinclude><includeonly> | + | </noinclude><includeonly><!-- |
− | <div class="card | + | |
− | + | ||
− | + | -->{{#vardefine: @page |{{#if:{{{Subportal|}}} |{{{Subportal|}}} |{{FULLPAGENAME}} }} }}<!-- | |
− | + | -->{{#vardefine: @articles |{{#ask: [[Class::Article]] [[Portal::{{{Portal|}}}]] [[Subportal::{{#var:@page}}]] |format=plainlist |link=none}} }}<!-- | |
− | + | {{#var:@subportals}} | |
− | + | ||
− | + | --><div class="card"><!-- | |
+ | |||
+ | --><div class="card-header" style="background-color: #00A184; color: white!important;"> | ||
+ | <h4>{{{Card title|Artikelen}}}</h4> | ||
+ | </div><!-- | ||
+ | |||
+ | --><div class="card-body inhoud" style="background-color: #20b096; color: white;"> | ||
+ | <div class="row"><div class="col"> | ||
<div class="portal-articles" style="column-count:2;"> | <div class="portal-articles" style="column-count:2;"> | ||
− | {{# | + | {{#if: {{#var:@articles}} |
− | | | + | |<ul>{{#caamap:{{#var:@articles}}|,|@@@|<li>[[@@@]]</li>|| }}</ul> |
− | | | + | |Geen artikelen bij dit subportaal.}} |
− | |||
− | }} | ||
</div> | </div> | ||
− | |||
− | |||
</div></div> | </div></div> | ||
− | </includeonly> | + | </div><!-- |
+ | |||
+ | --></div><!-- end card | ||
+ | |||
+ | --></includeonly> |
Versie van 14 apr 2022 14:03
This is the "Subportal articles" template. It should be called in the following format:
{{Subportal articles |Card title= <text/> |Subportal= <page/> |Portal= <page/> }}
Edit the page to see the template text.