Sjabloon:Portal subportals: verschil tussen versies
Uit Auditpedia
Regel 12: | Regel 12: | ||
-->{{#vardefine: @page |{{#if:{{{Portal|}}} |{{{Portal|}}} |{{FULLPAGENAME}} }} }}<!-- | -->{{#vardefine: @page |{{#if:{{{Portal|}}} |{{{Portal|}}} |{{FULLPAGENAME}} }} }}<!-- | ||
− | --> | + | -->{{#ask: [[Class::Subportal]] [[Portal::{{#var:@page}}]] |format=complexarray |name=$subportals |link=none}} }}<!-- |
{{#var:@subportals}} | {{#var:@subportals}} | ||
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: {{# | + | {{#if: {{#caprint:$subportals}} |
− | |<ul>{{# | + | |<ul>{{#camap:$subportals|@@@|<li>[[@@@]]</li>|| }}</ul> |
|}} | |}} | ||
</div> | </div> |
Versie van 14 apr 2022 14:20
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.