« Modèle:Wiki/NavCard » : différence entre les versions
De Nefald Wiki
Autres actions
mAucun résumé des modifications |
mAucun résumé des modifications |
||
Ligne 1 : | Ligne 1 : | ||
<includeonly> | <includeonly> | ||
<div class="wiki-nav-card"> | <div class="wiki-nav-card"> | ||
<div class="nav-card-image-container" style="width: | <div class="nav-card-image-container" style="width: 100%; height: 200px; overflow: hidden; border-radius: 8px;"> | ||
<img src="{{filepath:{{{image|}}}}}" style="width: 100%; height: 100%; object-fit: cover;" alt="{{{titre}}}"> | <img src="{{filepath:{{{image|}}}}}" style="width: 100%; height: 100%; object-fit: cover;" alt="{{{titre}}}" onerror="this.style.display='none'; this.parentElement.style.backgroundColor='#374151'; this.parentElement.innerHTML='<div style=\'display:flex;align-items:center;justify-content:center;height:100%;color:white;\'>Image non trouvée</div>';"> | ||
</div> | </div> | ||
<div class="nav-card-content"> | <div class="nav-card-content"> |