(20 intermediate revisions by 3 users not shown)
Line 3: Line 3:
 
This is the '''Show docs search result''' template. It should be called in the following format:
 
This is the '''Show docs search result''' template. It should be called in the following format:
  
</noinclude><includeonly>{{#widget:DocsSearchResults |title={{{$title| }}}|synopsis={{{Doc synopsis| }}}|version={{{Subject version| }}}|target={{{Doc target group| }}}|modification={{{$Modification date| }}}<!--
+
</noinclude><includeonly><!--
-->{{#widget:link
+
 
|type=a
+
--><div class="csp-doc-result-card card">
|style=font-weight:bold;
+
<div class="card-header">[{{fullurl:{{{$namespacename|}}}:{{{$page|}}} }} <span class="h5 text-white"><i class="far fa-file"></i> {{{Doc subject|}}} :: {{{$title|}}}</span>]</div>
|text={{{Title|}}}
+
<div class="card-body bg-white">
|href={{{$namespacename|}}}:{{{$page|}}} }}<includeonly>
+
<div class="result-card--header">
 +
<div class="col-10"><!--
 +
-->{{#if:{{{Doc synopsis|}}} |<div class="card-title h5"><i class="fas fa-info-circle"></i> {{{Doc synopsis|}}}<br><span class="small">{{{$snippet|}}}</span></div>}}<!--
 +
--></div>
 +
<div class="col-2"><!--
 +
-->{{#switch:{{{Doc subject|}}}
 +
    |Doc/PageSync=<div class="float-right align-middle">[[File:Pagesync_square.png|link=|x50px]]</div>
 +
    |Doc/FlexForm=<div class="float-right align-middle">[[File:FlexForm-logo_square.png|link=|x50px]]</div>
 +
    |Doc/Open CSP=<div class="float-right align-middle">[[File:Open CSP logo.png|link=|75px]]</div>
 +
    |#default=
 +
  }}<!--
 +
--></div>
 +
</div><!--
 +
    --><div class="result-card--info"><!--
 +
    -->{{#if:{{{Doc parent|}}}<!--
 +
      -->|<div class="col-6"><p class="card-text"><u>Parent</u><br><small><strong>{{{Doc parent|}}}</strong></small></p></div><!--
 +
      -->|<div class="col-6"></div><!--
 +
    -->}}<!--
 +
      --><div class="col-3"><p class="card-text"><u>Version</u><br><small><strong>{{{Subject version|}}}</strong></small></p></div><!--
 +
      --><div class="col-3"><p class="card-text"><u>Target</u><br><small><strong>{{{Doc target group|}}}</strong></small></p></div><!--
 +
    --></div><!--
 +
  --></div><!--
 +
  --><div class="card-footer p-1 pr-2 bg-light"><!--
 +
      --><small class="text-muted float-right">Last updated <strong>{{{$Modification date|}}}</strong></small><!--
 +
  --></div><!--
 +
--></div><!--
 +
 
 +
--><includeonly>

Latest revision as of 15:28, 6 February 2024


This is the Show docs search result template. It should be called in the following format: