« Modèle:Infobox Chanson » : différence entre les versions
Apparence
Mise à jour complète Infobox Chanson avec champs facultatifs et support des chansons supprimées |
Déploiement du modèle commun Infobox Chanson avec ParserFunctions |
||
| Ligne 1 : | Ligne 1 : | ||
<includeonly>{| class="infobox" style="width: | <includeonly>{| class="infobox" style="width: 320px; float: right; margin: 0 0 1.2em 1.5em; background: #ffffff; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 90%; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.08); border-collapse: separate; border-spacing: 0; overflow: hidden;" | ||
|- | |- | ||
! colspan="2" style="background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%); color: #ffffff; padding: 12px; font-size: 115%; text-align: center; font-weight: bold;" | {{{titre|{{PAGENAME}}}}} | |||
{{{ | {{#if: {{{image|}}} | | ||
{{!-}} | |||
! | {{!}} colspan="2" style="text-align: center; padding: 8px; background: #f8fafc;" {{!}} [[Fichier:{{{image}}}|300px|center|frameless|{{{legende|Miniature de {{{titre|{{PAGENAME}}}}}}}}]] | ||
}} | |||
| | {{#if: {{{titre_original|}}} | | ||
! | {{!-}} style="border-top: 1px solid #e2e8f0;" | ||
! style="padding: 6px 10px; text-align: left; background: #f8fafc; width: 40%; color: #334155; font-weight: 600;" {{!}} Titre original | |||
|- | {{!}} style="padding: 6px 10px; color: #0f172a;" {{!}} '''{{{titre_original}}}''' | ||
}} | |||
| style="padding: | {{#if: {{{artiste_original|}}} | | ||
| | {{!-}} style="border-top: 1px solid #e2e8f0;" | ||
! | ! style="padding: 6px 10px; text-align: left; background: #f8fafc; color: #334155; font-weight: 600;" {{!}} Artiste original | ||
{{!}} style="padding: 6px 10px; color: #0f172a;" {{!}} {{{artiste_original}}} | |||
| | }} | ||
! | |- style="border-top: 1px solid #e2e8f0;" | ||
! style="padding: 6px 10px; text-align: left; background: #f8fafc; color: #334155; font-weight: 600;" | Interprète | |||
| | | style="padding: 6px 10px; color: #0f172a;" | {{{interprete|[[Sara'h]]}}} | ||
! | {{#if: {{{date_sortie|{{{date_publication|}}}}}} | | ||
{{!-}} style="border-top: 1px solid #e2e8f0;" | |||
| | ! style="padding: 6px 10px; text-align: left; background: #f8fafc; color: #334155; font-weight: 600;" {{!}} Date de sortie | ||
! | {{!}} style="padding: 6px 10px; color: #0f172a;" {{!}} {{{date_sortie|{{{date_publication}}}}}} | ||
}} | |||
| | {{#if: {{{type|{{{genre|}}}}}} | | ||
! | {{!-}} style="border-top: 1px solid #e2e8f0;" | ||
| style="padding: | ! style="padding: 6px 10px; text-align: left; background: #f8fafc; color: #334155; font-weight: 600;" {{!}} Type | ||
| | {{!}} style="padding: 6px 10px; color: #0f172a;" {{!}} {{{type|{{{genre}}}}}} | ||
! | }} | ||
{{#if: {{{album|}}} | | |||
{{!-}} style="border-top: 1px solid #e2e8f0;" | |||
! style="padding: 6px 10px; text-align: left; background: #f8fafc; color: #334155; font-weight: 600;" {{!}} Album | |||
{{!}} style="padding: 6px 10px; color: #0f172a;" {{!}} {{{album}}} | |||
}} | |||
{{#if: {{{adaptation|}}} | | |||
{{!-}} style="border-top: 1px solid #e2e8f0;" | |||
! style="padding: 6px 10px; text-align: left; background: #f8fafc; color: #334155; font-weight: 600;" {{!}} Adaptation | |||
{{!}} style="padding: 6px 10px; color: #0f172a;" {{!}} {{{adaptation}}} | |||
}} | |||
{{#if: {{{vues_youtube|{{{vues|}}}}}} | | |||
{{!-}} style="border-top: 1px solid #e2e8f0;" | |||
! style="padding: 6px 10px; text-align: left; background: #f8fafc; color: #334155; font-weight: 600;" {{!}} Vues YouTube | |||
{{!}} style="padding: 6px 10px; color: #0f172a;" {{!}} {{{vues_youtube|{{{vues}}}}}} | |||
}} | |||
{{#if: {{{lien_youtube|}}} | | |||
{{!-}} style="border-top: 1px solid #e2e8f0;" | |||
! style="padding: 6px 10px; text-align: left; background: #f8fafc; color: #334155; font-weight: 600;" {{!}} Vidéo YouTube | |||
{{!}} style="padding: 6px 10px; color: #0f172a;" {{!}} {{{lien_youtube}}} | |||
}} | |||
{{#if: {{{spotify|}}}{{{apple_music|}}}{{{deezer|}}} | | |||
{{!-}} style="border-top: 1px solid #e2e8f0;" | |||
! style="padding: 6px 10px; text-align: left; background: #f8fafc; color: #334155; font-weight: 600;" {{!}} Écouter en streaming | |||
{{!}} style="padding: 6px 10px; color: #0f172a;" {{!}} | |||
{{#if: {{{spotify|}}} | * [{{{spotify}}} 🟢 Spotify]<br /> }}{{#if: {{{apple_music|}}} | * [{{{apple_music}}} 🍎 Apple Music]<br /> }}{{#if: {{{deezer|}}} | * [{{{deezer}}} 🟣 Deezer] }} | |||
}} | |||
|}</includeonly><noinclude> | |}</includeonly><noinclude> | ||
== Utilisation == | == Utilisation == | ||
| Ligne 36 : | Ligne 60 : | ||
{{Infobox Chanson | {{Infobox Chanson | ||
| titre = | | titre = | ||
| image = | |||
| titre_original = | | titre_original = | ||
| artiste_original = | | artiste_original = | ||
| | | interprete = [[Sara'h]] | ||
| | | date_sortie = | ||
| | | type = Reprise (French Version) | ||
| | | album = | ||
| adaptation = Sara'h | | adaptation = Sara'h | ||
| | | vues_youtube = | ||
| | | lien_youtube = | ||
| spotify = | |||
| apple_music = | |||
| deezer = | |||
}} | }} | ||
</pre> | </pre> | ||
[[Catégorie:Modèle Infobox]] | [[Catégorie:Modèle Infobox]] | ||
</noinclude> | </noinclude> | ||
Version du 5 septembre 2026 à 14:11
Utilisation
{{Infobox Chanson
| titre =
| image =
| titre_original =
| artiste_original =
| interprete = [[Sara'h]]
| date_sortie =
| type = Reprise (French Version)
| album =
| adaptation = Sara'h
| vues_youtube =
| lien_youtube =
| spotify =
| apple_music =
| deezer =
}}