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...")
 
 
(33 tussenliggende versies door dezelfde gebruiker niet weergegeven)
Regel 1: Regel 1:
{{managed
+
<noinclude>{{Managed
}}<noinclude>
+
|Version=1.0
This is the "Show article as card" template.
+
|Version notes=1.0 - First managed version
It should be called in the following format:
+
|Short description=
 +
}}
 +
 
 +
This is the "Show featured article" template. It should be called in the following format:
 +
 
 
<pre>
 
<pre>
{{Show article as card
+
{{Show featured article
 
|Title=
 
|Title=
|Short description=If the description is longer than 350 letters it will be cut off. Make sure it's shorter than that.
+
|Short description=
 +
|Page=
 
}}
 
}}
 
</pre>
 
</pre>
Edit the page to see the template text.
+
</noinclude><includeonly><div class="card card-blue">
</noinclude><includeonly>__NOTOC____NOTITLE__
+
<div class="card-header">
<div class= "col-lg-6 col-12 pt-5">
+
  <h4>{{#if:{{{Title|}}}|<b>{{ucfirst:{{int:ws-featured-article}} }}:</b> {{{Title|}}}|{{ucfirst:{{int:ws-newest-article}} }} }}</h4>
<div class="card ">
 
<div class="card-header pt-3 pb-3 pl-3" style="background-color: #20b096; color: white;">
 
<h4>{{{Title|}}}</h4>
 
 
</div>
 
</div>
<div class="card-body"  style="height: 300px; overflow: hidden;">
+
<div class="card-body inhoud"><!--
<div class="single-post-content-wrapper">
+
  -->
{{{Description|}}}</div>
+
<div class="single-post-content-wrapper featured">
</div>
+
{{#ifexpr:{{#len:{{{Short description|}}} }} > 400|{{#sub:{{{Short description|}}}|0|703}}...  |{{{Short description|}}} }}
  <div class="card-footer text-muted" style="text-align: right;">
+
</div><!--
 +
--></div>
 +
<div class="card-footer" style="margin-top:-20px">
 
{{#widget: Link
 
{{#widget: Link
 
|type=a
 
|type=a
|href={{fullurl:Article/{{{Title|}}}}}
+
|href={{fullurl:{{{Page|}}} }}
 
|text={{int: ws-read-more}}
 
|text={{int: ws-read-more}}
|class=button portal-button
+
|class=button featured-button
 
}}
 
}}
  </div>
 
</div>
 
 
</div>
 
</div>
</includeonly>
+
</div></includeonly>

Huidige versie van 23 apr 2022 om 11:31


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

{{Show featured article
|Title=
|Short description=
|Page=
}}