Sjabloon:Show article as card: verschil tussen versies

Uit Auditpedia
Ga naar:navigatie, zoeken
k (Reverted edits by Gemma (talk) to last revision by Admin)
Label: Terugdraaiing
 
(46 tussenliggende versies door dezelfde gebruiker niet weergegeven)
Regel 11: Regel 11:
 
Edit the page to see the template text.
 
Edit the page to see the template text.
 
</noinclude><includeonly>__NOTOC____NOTITLE__
 
</noinclude><includeonly>__NOTOC____NOTITLE__
<div class= "col-lg-6 col-12 pt-5">
+
<div class= "col-lg-6 col-12 pb-5 cards-small">
<div class="card ">
+
<div class="card">
  <div class="card-header" style="background-color: #20b096; color: white;">
+
<div class="card-header" style="background-color: #00A184;">
{{{Title|}}}
+
<h4 class="white-link">[[{{{Page|}}}|{{{Title|}}}]]</h4>
  </div>
+
</div>
  <div class="card-body"  style="height: 230px; overflow: hidden;">
+
<div class="card-body"  style="height: 350px; overflow: hidden;">
{{#ifexpr:{{#len:{{{Short description|}}} }} > 350|{{#sub:{{{Short description|}}}|0|350}}...  |{{{Short description|}}} }}
+
<div class="single-post-content-wrapper" style="color:#212529;">
  </div>
+
{{#ifexpr:{{#len:{{{Short description|}}} }} > 400|{{#sub:{{{Short description|}}}|0|400}}...  |{{{Short description|}}} }}
  <div class="card-footer text-muted" style="text-align: right;">
+
</div>
 +
</div>
 +
<div class="card-footer text-muted" style="">
 
{{#widget: Link
 
{{#widget: Link
 
|type=a
 
|type=a
|href=
+
|href={{fullurl:{{{Page|}}} }}
|text=Read more
+
|text={{int: ws-read-more}}
 
|class=button portal-button
 
|class=button portal-button
 
}}
 
}}
  </div>
+
</div>
 
</div>
 
</div>
 
</div>
 
</div>
 
</includeonly>
 
</includeonly>

Huidige versie van 14 apr 2022 om 14:48

This is the "Show article as card" template. It should be called in the following format:

{{Show article as card
|Title=
|Short description=If the description is longer than 350 letters it will be cut off. Make sure it's shorter than that. 
}}

Edit the page to see the template text.