Sjabloon:Show featured article: verschil tussen versies

Uit Auditpedia
Ga naar:navigatie, zoeken
(Created page with "{{managed }}<noinclude> This is the "Show article as card" template. It should be called in the following format: <pre> {{Show article as card |Title= |Short description=If th...")
 
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="card ">
 
<div class="card-header pt-3 pb-3 pl-3" style="background-color: #20b096; color: white;">
 
<h4>{{{Title|}}}</h4>
 
</div>
 
<div class="card-body"  style="height: 300px; overflow: hidden;">
 
 
<div class="single-post-content-wrapper">
 
<div class="single-post-content-wrapper">
{{{Description|}}}</div>
+
{{#ifexpr:{{#len:{{{Short description|}}} }} > 400|{{#sub:{{{Short description|}}}|0|350}}...  |{{{Short description|}}} }}
 
</div>
 
</div>
  <div class="card-footer text-muted" style="text-align: right;">
+
<div class="card-footer text-muted" style="">
 
{{#widget: Link
 
{{#widget: Link
 
|type=a
 
|type=a
Regel 27: Regel 21:
 
|class=button portal-button
 
|class=button portal-button
 
}}
 
}}
  </div>
 
</div>
 
 
</div>
 
</div>
 
</includeonly>
 
</includeonly>

Versie van 30 nov 2020 11:14

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.