Sjabloon:Show featured article: verschil tussen versies

Uit Auditpedia
Ga naar:navigatie, zoeken
 
(8 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 690 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">
 +
  <h4>{{#if:{{{Title|}}}|<b>{{ucfirst:{{int:ws-featured-article}} }}:</b> {{{Title|}}}|{{ucfirst:{{int:ws-newest-article}} }} }}</h4>
 +
</div>
 +
<div class="card-body inhoud"><!--
 +
-->
 
<div class="single-post-content-wrapper featured">
 
<div class="single-post-content-wrapper featured">
{{#ifexpr:{{#len:{{{Short description|}}} }} > 400|{{#sub:{{{Short description|}}}|0|735}}...  |{{{Short description|}}} }}
+
{{#ifexpr:{{#len:{{{Short description|}}} }} > 400|{{#sub:{{{Short description|}}}|0|703}}...  |{{{Short description|}}} }}
 +
</div><!--
 +
--></div>
 +
<div class="card-footer" style="margin-top:-20px">
 +
{{#widget: Link
 +
|type=a
 +
|href={{fullurl:{{{Page|}}} }}
 +
|text={{int: ws-read-more}}
 +
|class=button featured-button
 +
}}
 
</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=
}}