Sjabloon:Show subportal as card: verschil tussen versies

Uit Auditpedia
Ga naar:navigatie, zoeken
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=999|searchlabel=-
+
|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: {{{Related portal|}}}
+
{{#if: {{#var:@{{#var:@Name}}}}
| {{#caamap:{{{Related portal|}}}|,|x|[[x]]}}
+
|<ul>{{#caamap:{{#var:@{{#var:@Name}}}}|,|x|<li>[[x]]</li>||}}</ul>
| }}
+
|Geen artikelen bij dit subportaal gevonden.}}
| {{#if: {{{Related portal|}}}
 
| {{#caamap:{{{Related portal|}}}|,|x|[[x]]}}
 
| Geen gerelateerde portalen}}
 
 
</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.