Sjabloon:Portal subportals: verschil tussen versies

Uit Auditpedia
Ga naar:navigatie, zoeken
(Nieuwe pagina aangemaakt met '<noinclude> This is the "Portal subportals" template. It shows all subportals of a portal as a list in a card layout It should be called in the following format: <p...')
 
 
(13 tussenliggende versies door dezelfde gebruiker niet weergegeven)
Regel 11: Regel 11:
 
</noinclude><includeonly><!--  
 
</noinclude><includeonly><!--  
  
-->{{#vardefine: @page |{{#if:{{{Portal|}}} |{{{Portal|}}} |{{FULLPAGENAME}} }}<!--
+
-->{{#vardefine: @page |{{#if:{{{Portal|}}} |{{{Portal|}}} |{{FULLPAGENAME}} }} }}<!--
-->{{#vardefine: @subportals |{{#ask: [[Class::Subportals]] [[Portal::{{#var:@page}}]] |format=ul |link=none}} }}<!--
+
-->{{#ask: [[Class::Subportal]] [[Portal::{{#var:@page}}]] |format=complexarray |name=$subportals |link=none}}<!--
 
{{#var:@subportals}}
 
{{#var:@subportals}}
  
--><div class="card mt-5"><!--  
+
--><div class="card"><!--  
 
   
 
   
 
--><div class="card-header" style="background-color: #00A184; color: white!important;">
 
--><div class="card-header" style="background-color: #00A184; color: white!important;">
Regel 24: Regel 24:
 
<div class="row"><div class="col">
 
<div class="row"><div class="col">
 
<div class="portal-articles" style="column-count:2;">
 
<div class="portal-articles" style="column-count:2;">
{{#if: {{#var:@subportals}} |{{#var:@subportals}} }}
+
{{#if: {{#caprint:$subportals}}  
 +
|<ul>{{#camap:$subportals|@@@|<li>[[@@@[catitle]]]</li>|| }}</ul>
 +
|}}
 
</div>  
 
</div>  
 
</div></div>
 
</div></div>

Huidige versie van 14 apr 2022 om 14:21

This is the "Portal subportals" template. It shows all subportals of a portal as a list in a card layout It should be called in the following format:

{{Portal subportals
|Card title= <text>
|Portal= <page> portal (default: current page) 
}}

Edit the page to see the template text.