Sjabloon:Subportal articles: verschil tussen versies

Uit Auditpedia
Ga naar:navigatie, zoeken
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 mt-5">
+
 
  <div class="card-header" style="background-color: #00A184; color: white!important;">
+
 
  <h4>{{{Card title|Artikelen}}}</h4>
+
-->{{#vardefine: @page |{{#if:{{{Subportal|}}} |{{{Subportal|}}} |{{FULLPAGENAME}} }} }}<!--
  </div>
+
-->{{#vardefine: @articles |{{#ask: [[Class::Article]] [[Portal::{{{Portal|}}}]] [[Subportal::{{#var:@page}}]] |format=plainlist |link=none}} }}<!--
  <div class="card-body inhoud" style="background-color: #20b096; color: white;">
+
{{#var:@subportals}}
    <div class="row">
+
 
    <div class="col">
+
--><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;">
{{#ask: [[Class::Article]] [[Portal::{{{Portal|}}}]] [[Subportal::{{{Subportal|}}}]]
+
{{#if: {{#var:@articles}}  
|format=ul
+
|<ul>{{#caamap:{{#var:@articles}}|,|@@@|<li>[[@@@]]</li>|| }}</ul>
|sep=
+
|Geen artikelen bij dit subportaal.}}
|default=Geen pagina's bij dit subportaal
 
}}
 
 
</div>  
 
</div>  
</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.