Sjabloon:Show subportal as card: verschil tussen versies
Uit Auditpedia
(9 tussenliggende versies door dezelfde gebruiker niet weergegeven) | |||
Regel 15: | Regel 15: | ||
Edit the page to see the template text. | Edit the page to see the template text. | ||
</noinclude><includeonly>__NOTOC____NOTITLE__<!-- | </noinclude><includeonly>__NOTOC____NOTITLE__<!-- | ||
− | + | -->{{#vardefine: @Name|Articles-{{{Title|missing}}} }}<!-- | |
− | -->{{#vardefine: @Articles-{{{Title|}}} | + | -->{{#vardefine: @{{#var:@Name}} |
|{{#ask: [[Class::Article]] [[Subportal::{{{Page|}}}]] | |{{#ask: [[Class::Article]] [[Subportal::{{{Page|}}}]] | ||
− | |format=plainlist|link=none|limit= | + | |format=plainlist|link=none|limit=30|searchlabel=- |
}} | }} | ||
}}<!-- | }}<!-- | ||
− | --><div class="card"><!-- | + | --><div class="card subportal-card col-12 col-md-6"><!-- |
// header | // header | ||
--><div class="card-header" style="background-color: #00A184; color: white;"> | --><div class="card-header" style="background-color: #00A184; color: white;"> | ||
− | <h4>{{{Title|}}}</h4> | + | <h4 class="white">[[{{{Page|}}}|{{{Title|}}}]]</h4> |
</div><!-- | </div><!-- | ||
// body | // body | ||
− | --><div class="card-body related- | + | --><div class="card-body related-subportals"> |
− | {{#if: {{ | + | {{#if: {{#var:@{{#var:@Name}}}} |
− | + | |<ul>{{#caamap:{{#var:@{{#var:@Name}}}}|,|x|<li>[[x]]</li>||}}</ul> | |
− | + | |Geen artikelen bij dit subportaal gevonden.}} | |
− | | {{# | ||
− | |||
− | | Geen | ||
</div><!-- | </div><!-- | ||
--></div><!-- end card | --></div><!-- end card |
Huidige versie van 13 apr 2022 om 13:21
This is the "Show subportal as card" template.
It should be called in the following format:
{{#ask: [[Class::Subportal]] [[QUERY]] |?Page= |Title= |format=template |template=Show subportal as card |named args=Yes |link=none }}
Edit the page to see the template text.