Sjabloon:Portal subportals gereedschapskist: verschil tussen versies

Uit Auditpedia
Ga naar:navigatie, zoeken
 
(4 tussenliggende versies door dezelfde gebruiker niet weergegeven)
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}}<!--
{{#var:@subportals}}
+
-->{{#vardefine: @portals | {{#camap: $subportal titles |@@@ |Portal/@@@[Title] |;;;|}} }}<!--
 
+
-->{{#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>{{#caamap:{{#var: @portals}}|;;;|@@@|{{#ifexist:@@@|<li>[[@@@]]</li>|<li class="text-orange">[[@@@]] (bestaat nog niet)</li>}}|| }}</ul>
 
|}}
 
|}}
 
</div>  
 
</div>  

Huidige versie van 21 apr 2022 om 15:56

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.