Sjabloon:Portal subportals gereedschapskist: verschil tussen versies

Uit Auditpedia
Ga naar:navigatie, zoeken
Regel 15: Regel 15:
  
 
-->{{#vardefine: @page |{{#if:{{{Portal|}}} |{{{Portal|}}} |{{FULLPAGENAME}} }} }}<!--
 
-->{{#vardefine: @page |{{#if:{{{Portal|}}} |{{{Portal|}}} |{{FULLPAGENAME}} }} }}<!--
-->{{#ask: [[Class::Subportal]] [[Portal::{{#var:@page}}]] |format=complexarray |name=$subportals |link=none}}<!--
+
-->{{#ask: [[Class::Subportal]] [[Portal::{{#var:@page}}]] |mainlabel=- |?Title |format=complexarray |name=$subportal titles |link=none}}<!--
 +
-->{{#vardefine: @portals | {{#camap: $subportal titles |@@@ |Portal/@@@[Title] |;;;|}} }}<!--
 
-->{{#caprint:$subportals}}<!--
 
-->{{#caprint:$subportals}}<!--
 
+
{{#var: @portals}}
 
--><div class="card"><!--  
 
--><div class="card"><!--  
 
   
 
   
Regel 27: Regel 28:
 
<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: {{#caprint:$subportals}}  
+
{{#if: {{#var: @portals}}
 
|<ul>{{#camap:$subportals|@@@|<li>[[@@@[catitle]]]</li>|| }}</ul>
 
|<ul>{{#camap:$subportals|@@@|<li>[[@@@[catitle]]]</li>|| }}</ul>
 
|}}
 
|}}

Versie van 21 apr 2022 15:54

This is the "Portal subportals gereedschapskist" 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 gereedschapskist
|Card title= <text>
|Portal= <page> portal (default: current page) 
}}

only for Gereedschapskist van de accountant ! Special stuff needs to happen here.

Edit the page to see the template text.