Sjabloon:Show subportal as card: verschil tussen versies
Uit Auditpedia
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=- |
}} | }} | ||
}}<!-- | }}<!-- | ||
Regel 29: | Regel 29: | ||
// body | // body | ||
--><div class="card-body related-portals"> | --><div class="card-body related-portals"> | ||
− | {{#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 |
Versie van 13 apr 2022 13:05
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.