« Modèle:FicheAuteurCartouche » : différence entre les versions
Apparence
Aucun résumé des modifications |
Aucun résumé des modifications |
||
| Ligne 1 : | Ligne 1 : | ||
<includeonly> | <includeonly> | ||
<div class="cartouche-auteur" style="padding:0.75em;border:1px solid #ccc;border-radius:8px;box-shadow:0 1px 3px rgba(0,0,0,0.08);margin:0.2em 0;"> | <div class="cartouche-auteur" style="padding:0.75em;border:1px solid #ccc;border-radius:8px;box-shadow:0 1px 3px rgba(0,0,0,0.08);margin:0.2em 0;"> | ||
[[{{{1}}}| | |||
<strong>{{#if:{{{4|}}}|{{{4}}}|{{{3}}} {{{2}}}}}</strong>< | <!-- Nom : seul élément cliquable --> | ||
{{{5|}}} | <div> | ||
]] | [[{{{1}}}|<strong>{{#if:{{{4|}}}|{{{4}}}|{{{3}}} {{{2}}}}}</strong>]] | ||
</div> | |||
<!-- Biographie courte (3 lignes max, texte simple) --> | |||
{{#if:{{{5|}}}| | |||
<div style="font-size:0.9em;color:#444;margin-top:0.2em;"> | |||
<span style="display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;"> | |||
{{{5}}} | |||
</span> | |||
</div> | |||
}} | |||
<!-- Photo centrée, sous les textes, cliquable vers la fiche --> | |||
{{#if: {{#show: {{{1}}} | ?Photo }} | | |||
<p style="margin:0.4em 0 0 0; text-align:center;"> | |||
[[File:{{#show: {{{1}}} | ?Photo }}|80px | |||
|alt=Portrait de {{#if:{{{4|}}}|{{{4}}}|{{{3}}} {{{2}}}}} | |||
|link={{{1}}} | |||
]] | |||
</p> | |||
}} | |||
</div> | </div> | ||
</includeonly> | </includeonly> | ||
Version du 28 novembre 2025 à 09:40
Affichage court d’un auteur / d’une autrice pour la page d’accueil.
Paramètres (positionnels) :
- 1 : titre de la page (ex. Auteur:Jérémie Decalf)
- 2 : Nom (propriété Nom)
- 3 : Prenom (propriété Prenom)
- 4 : Nom_plume (propriété Nom_plume)
- 5 : Biographie (propriété Biographie)