Sjabloon:Show subportal as card: verschil tussen versies
Uit Auditpedia
(Nieuwe pagina aangemaakt met '<noinclude> This is the "Show subportal as card" template. It should be called in the following format: <pre> {{#ask: Class::Subportal QUERY |?Page= |Tit...') |
|||
Regel 15: | Regel 15: | ||
Edit the page to see the template text. | Edit the page to see the template text. | ||
</noinclude><includeonly>__NOTOC____NOTITLE__<!-- | </noinclude><includeonly>__NOTOC____NOTITLE__<!-- | ||
+ | |||
+ | -->{{#vardefine: @Articles-{{{Title|}}} | ||
+ | |{{#ask: [[Class::Article]] [[Subportal::{{{Page|}}}]] | ||
+ | |format=plainlist|link=none|limit=999|searchlabel=- | ||
+ | }} | ||
+ | }}<!-- | ||
+ | |||
+ | --><div class="card"><!-- | ||
+ | // header | ||
+ | --><div class="card-header" style="background-color: #00A184; color: white;"> | ||
+ | <h4>{{{Title|}}}</h4> | ||
+ | </div><!-- | ||
+ | // body | ||
+ | --><div class="card-body related-portals"> | ||
+ | {{#if: {{{Related portal|}}} | ||
+ | | {{#caamap:{{{Related portal|}}}|,|x|[[x]]}} | ||
+ | | }} | ||
+ | | {{#if: {{{Related portal|}}} | ||
+ | | {{#caamap:{{{Related portal|}}}|,|x|[[x]]}} | ||
+ | | Geen gerelateerde portalen}} | ||
+ | </div><!-- | ||
+ | --></div><!-- end card | ||
--></includeonly> | --></includeonly> |
Versie van 13 apr 2022 13:00
This is the "Show subportal as card" template.
It should be called in the following format:
{{#ask: [[Class::Subportal]] [[QUERY]] |?Page= |Title= |format=template |template=Show subportal as card |named args=Yes |link=none }}
Edit the page to see the template text.