Aller au contenu

« Modèle:Infobox Chanson » : différence entre les versions

De Sara'h
Mise à jour du modèle Infobox Chanson avec paramètres en anglais et 4 catégories
Ajout du support des pochettes d'album et de singles (cover/pochette)
 
(7 versions intermédiaires par le même utilisateur non affichées)
Ligne 1 : Ligne 1 :
<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;"
<includeonly>{| class="infobox infobox-chanson"
|-
|-
! colspan="2" style="background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%); color: #ffffff; padding: 12px; font-size: 115%; text-align: center; font-weight: bold;" | {{{title|{{{titre|{{PAGENAME}}}}}}}}
! colspan="2" class="infobox-chanson-title" | {{{title|{{{titre|{{PAGENAME}}}}}}}}
{{#if: {{{cover|{{{pochette|{{{album_cover|}}}}}}}}} |
{{!-}}
{{!}} colspan="2" class="infobox-chanson-cover" style="text-align: center; padding: 6px 0;" {{!}} [[Fichier:{{{cover|{{{pochette|{{{album_cover}}}}}}}}}|250x250px|center|frameless|{{{cover_caption|{{{legende_pochette|Pochette de {{{title|{{{titre|{{PAGENAME}}}}}}}}}}}}}}]]
{{#if: {{{cover_caption|{{{legende_pochette|}}}}}} |<div style="font-size: 0.85em; color: #555; text-align: center; margin-top: 3px;">{{{cover_caption|{{{legende_pochette}}}}}}</div>}}
}}
{{#if: {{{image|}}} |
{{#if: {{{image|}}} |
{{!-}}
{{!-}}
{{!}} colspan="2" style="text-align: center; padding: 8px; background: #f8fafc;" {{!}} [[Fichier:{{{image}}}|300px|center|frameless|{{{image_caption|{{{legende|Miniature de {{{title|{{{titre|{{PAGENAME}}}}}}}}}}}}}}]]
{{!}} colspan="2" class="infobox-chanson-image" {{!}} [[Fichier:{{{image}}}|280x160px|center|frameless|{{{image_caption|{{{legende|Miniature de {{{title|{{{titre|{{PAGENAME}}}}}}}}}}}}}}]]
}}
}}
{{#if: {{{original_title|{{{titre_original|}}}}}} |
{{#if: {{{original_title|{{{titre_original|}}}}}} |
{{!-}} style="border-top: 1px solid #e2e8f0;"
{{!-}} class="infobox-chanson-row"
! style="padding: 6px 10px; text-align: left; background: #f8fafc; width: 40%; color: #334155; font-weight: 600;" {{!}} Titre original
! class="infobox-chanson-label infobox-chanson-label-w40" {{!}} Titre original
{{!}} style="padding: 6px 10px; color: #0f172a;" {{!}} '''{{{original_title|{{{titre_original}}}}}}'''
{{!}} class="infobox-chanson-value" {{!}} '''{{{original_title|{{{titre_original}}}}}}'''
}}
}}
{{#if: {{{original_artist|{{{artiste_original|}}}}}} |
{{#if: {{{original_artist|{{{artiste_original|}}}}}} |
{{!-}} style="border-top: 1px solid #e2e8f0;"
{{!-}} class="infobox-chanson-row"
! style="padding: 6px 10px; text-align: left; background: #f8fafc; color: #334155; font-weight: 600;" {{!}} Artiste original
! class="infobox-chanson-label" {{!}} Artiste original
{{!}} style="padding: 6px 10px; color: #0f172a;" {{!}} {{{original_artist|{{{artiste_original}}}}}}
{{!}} class="infobox-chanson-value" {{!}} {{{original_artist|{{{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;" | {{{artist|{{{interprete|[[Sara'h]]}}}}}}
{{#if: {{{release_date|{{{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;" {{!}} {{{release_date|{{{date_sortie|{{{date_publication}}}}}}}}}
}}
}}
{{#if: {{{release_weekday|}}} |
|- class="infobox-chanson-row"
{{!-}} style="border-top: 1px solid #e2e8f0;"
! class="infobox-chanson-label" | Interprète
! style="padding: 6px 10px; text-align: left; background: #f8fafc; color: #334155; font-weight: 600;" {{!}} Jour de parution
| class="infobox-chanson-value" | {{{artist|{{{interprete|[[Sara'h]]}}}}}}
{{!}} style="padding: 6px 10px; color: #0f172a;" {{!}} {{ucfirst:{{{release_weekday}}}}}
{{#if: {{{release_weekday|}}}{{{release_day|}}}{{{release_month|}}}{{{release_year|}}}{{{release_date|{{{date_sortie|{{{date_publication|}}}}}}}}} |
{{!-}} class="infobox-chanson-row"
! class="infobox-chanson-label" {{!}} Date de sortie
{{!}} class="infobox-chanson-value" {{!}} {{#if: {{{release_weekday|}}}{{{release_day|}}}{{{release_month|}}}{{{release_year|}}} |{{#if: {{{release_weekday|}}} |[[:Catégorie:Chanson sortie un {{lc:{{{release_weekday}}}}}|{{ucfirst:{{{release_weekday}}}}}]]&#32;}}{{#if: {{{release_day|}}} |[[:Catégorie:Chanson sortie un {{{release_day}}}|{{{release_day}}}]]&#32;}}{{#if: {{{release_month|}}} |[[:Catégorie:Chanson sortie en {{lc:{{{release_month}}}}}|{{lc:{{{release_month}}}}}]]&#32;}}{{#if: {{{release_year|}}} |[[:Catégorie:Chanson de {{{release_year}}}|{{{release_year}}}]]}}|{{{release_date|{{{date_sortie|{{{date_publication}}}}}}}}} }}{{#if: {{{release_time|{{{heure_sortie|}}}}}} |&#32;à {{{release_time|{{{heure_sortie}}}}}} }}
}}
}}
{{#if: {{{release_time|{{{heure_sortie|}}}}}} |
{{#if: {{{release_start_date|}}} |
{{!-}} style="border-top: 1px solid #e2e8f0;"
{{!-}} class="infobox-chanson-row"
! style="padding: 6px 10px; text-align: left; background: #f8fafc; color: #334155; font-weight: 600;" {{!}} Heure de sortie
! class="infobox-chanson-label" {{!}} Période estimée
{{!}} style="padding: 6px 10px; color: #0f172a;" {{!}} {{{release_time|{{{heure_sortie}}}}}}
{{!}} class="infobox-chanson-value" {{!}} Entre le {{{release_start_date}}}{{#if: {{{release_start_time|}}} | à {{{release_start_time}}}}} et le {{{release_end_date|?}}}{{#if: {{{release_end_time|}}} | à {{{release_end_time}}}}}
}}
}}
{{#if: {{{type|{{{genre|}}}}}} |
{{#if: {{{type|{{{genre|}}}}}} |
{{!-}} style="border-top: 1px solid #e2e8f0;"
{{!-}} class="infobox-chanson-row"
! style="padding: 6px 10px; text-align: left; background: #f8fafc; color: #334155; font-weight: 600;" {{!}} Type
! class="infobox-chanson-label" {{!}} Type
{{!}} style="padding: 6px 10px; color: #0f172a;" {{!}} {{{type|{{{genre}}}}}}
{{!}} class="infobox-chanson-value" {{!}} {{{type|{{{genre}}}}}}
}}
}}
{{#if: {{{album|}}} |
{{#if: {{{album|}}} |
{{!-}} style="border-top: 1px solid #e2e8f0;"
{{!-}} class="infobox-chanson-row"
! style="padding: 6px 10px; text-align: left; background: #f8fafc; color: #334155; font-weight: 600;" {{!}} Album
! class="infobox-chanson-label" {{!}} Album
{{!}} style="padding: 6px 10px; color: #0f172a;" {{!}} {{{album}}}
{{!}} class="infobox-chanson-value" {{!}} {{{album}}}
}}
}}
{{#if: {{{adaptation|}}} |
{{#if: {{{adaptation|}}} |
{{!-}} style="border-top: 1px solid #e2e8f0;"
{{!-}} class="infobox-chanson-row"
! style="padding: 6px 10px; text-align: left; background: #f8fafc; color: #334155; font-weight: 600;" {{!}} Adaptation
! class="infobox-chanson-label" {{!}} Adaptation
{{!}} style="padding: 6px 10px; color: #0f172a;" {{!}} {{{adaptation}}}
{{!}} class="infobox-chanson-value" {{!}} {{{adaptation}}}
}}
}}
{{#if: {{{youtube_views|{{{views|{{{vues_youtube|{{{vues|}}}}}}}}}}}} |
{{#if: {{{youtube_views|{{{views|{{{vues_youtube|{{{vues|}}}}}}}}}}}} |
{{!-}} style="border-top: 1px solid #e2e8f0;"
{{!-}} class="infobox-chanson-row"
! style="padding: 6px 10px; text-align: left; background: #f8fafc; color: #334155; font-weight: 600;" {{!}} Vues YouTube
! class="infobox-chanson-label" {{!}} Vues YouTube
{{!}} style="padding: 6px 10px; color: #0f172a; font-weight: bold;" {{!}} 👁️ {{{youtube_views|{{{views|{{{vues_youtube|{{{vues}}}}}}}}}}}}
{{!}} class="infobox-chanson-value infobox-chanson-value-bold" {{!}} {{{youtube_views|{{{views|{{{vues_youtube|{{{vues}}}}}}}}}}}}
}}
}}
{{#if: {{{youtube_link|{{{lien_youtube|}}}}}} |
{{#if: {{{youtube_link|{{{lien_youtube|}}}}}} |
{{!-}} style="border-top: 1px solid #e2e8f0;"
{{!-}} class="infobox-chanson-row"
! style="padding: 6px 10px; text-align: left; background: #f8fafc; color: #334155; font-weight: 600;" {{!}} Vidéo YouTube
! class="infobox-chanson-label" {{!}} Vidéo YouTube
{{!}} style="padding: 6px 10px; color: #0f172a;" {{!}} {{{youtube_link|{{{lien_youtube}}}}}}
{{!}} class="infobox-chanson-value" {{!}} {{{youtube_link|{{{lien_youtube}}}}}}
}}
}}
{{#if: {{{lyrics_video|{{{video_paroles|}}}}}} |
{{#if: {{{lyrics_video|{{{video_paroles|}}}}}} |
{{!-}} style="border-top: 1px solid #e2e8f0;"
{{!-}} class="infobox-chanson-row"
! style="padding: 6px 10px; text-align: left; background: #f8fafc; color: #334155; font-weight: 600;" {{!}} Vidéo paroles
! class="infobox-chanson-label" {{!}} Vidéo paroles
{{!}} style="padding: 6px 10px; color: #0f172a;" {{!}} {{{lyrics_video|{{{video_paroles}}}}}}
{{!}} class="infobox-chanson-value" {{!}} {{{lyrics_video|{{{video_paroles}}}}}}
}}
}}
{{#if: {{{spotify|}}}{{{apple_music|}}}{{{deezer|}}} |
{{#if: {{{spotify|}}}{{{apple_music|}}}{{{deezer|}}} |
{{!-}} style="border-top: 1px solid #e2e8f0;"
{{!-}} class="infobox-chanson-row"
! style="padding: 6px 10px; text-align: left; background: #f8fafc; color: #334155; font-weight: 600;" {{!}} Écouter en streaming
! class="infobox-chanson-label" {{!}} Écouter en streaming
{{!}} style="padding: 6px 10px; color: #0f172a; line-height: 1.6;" {{!}}
{{!}} class="infobox-chanson-value infobox-chanson-value-lh" {{!}}
{{#if: {{{spotify|}}} |* [{{{spotify}}} 🟢 Spotify]}}
{{#if: {{{spotify|}}} |* [{{{spotify}}} 🟢 Spotify]
{{#if: {{{apple_music|}}} |* [{{{apple_music}}} 🍎 Apple Music]}}
}}{{#if: {{{apple_music|}}} |* [{{{apple_music}}} 🍎 Apple Music]
{{#if: {{{deezer|}}} |* [{{{deezer}}} 🟣 Deezer]}}
}}{{#if: {{{deezer|}}} |* [{{{deezer}}} 🟣 Deezer]
}}
}}
}}
{{#if: {{{youtube_description|{{{description_youtube|}}}}}} |
{{#if: {{{youtube_description|{{{description_youtube|}}}}}} |
{{!-}}
{{!-}}
{{!}} colspan="2" style="padding: 8px 10px; background: #f8fafc; border-top: 1px solid #e2e8f0;" {{!}}
{{!}} colspan="2" class="infobox-chanson-desc-container" {{!}}
<div class="mw-collapsible mw-collapsed" style="font-size: 90%;">
<div class="mw-collapsible mw-collapsed infobox-chanson-desc-collapsible">
<div style="font-weight: bold; color: #1e40af; cursor: pointer; padding: 2px 0;">📄 Description et crédits YouTube</div>
<div class="infobox-chanson-desc-header">📄 Description et crédits YouTube</div>
<div class="mw-collapsible-content" style="margin-top: 6px; padding: 8px; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 4px; line-height: 1.45; color: #334155; max-height: 200px; overflow-y: auto;">
<div class="mw-collapsible-content infobox-chanson-desc-content">
{{{youtube_description|{{{description_youtube}}}}}}
{{{youtube_description|{{{description_youtube}}}}}}
</div>
</div>
</div>
</div>
}}
}}
|}<!-- Catégories automatiques générées par l'Infobox -->
|}{{#ifeq: {{{intro|{{{auto_intro|{{{afficher_intro|1}}}}}}}}} | non || {{#ifeq: {{{intro|{{{auto_intro|{{{afficher_intro|1}}}}}}}}} | 0 || {{#ifeq: {{{no_intro|{{{hide_intro|0}}}}}} | 1 || {{#ifeq: {{{no_intro|{{{hide_intro|0}}}}}} | oui || '''{{{title|{{{titre|{{PAGENAME}}}}}}}}''' est une {{#if: {{{type|{{{genre|}}}}}} | {{#ifeq: {{{type|{{{genre}}}}}} | Chanson originale | chanson originale | {{#ifeq: {{{type|{{{genre}}}}}} | [[:Catégorie:Chanson originale|Chanson originale]] | chanson originale | {{#ifeq: {{{type|{{{genre}}}}}} | Reprise | reprise | adaptation en français }} }} }} | adaptation en français}} interprétée par {{{artist|{{{interprete|[[Sara'h]]}}}}}}{{#if: {{{original_title|{{{titre_original|}}}}}} |&#32;de la chanson ''{{{original_title|{{{titre_original}}}}}}''{{#if: {{{original_artist|{{{artiste_original|}}}}}} |&#32;de {{{original_artist|{{{artiste_original}}}}}} }} }}{{#if: {{{release_day|}}}{{{release_month|}}}{{{release_year|}}} |, publiée le {{{release_day|}}} {{{release_month|}}} {{{release_year|}}}|{{#if: {{{release_date|{{{date_sortie|{{{date_publication|}}}}}}}}} |, publiée le {{{release_date|{{{date_sortie|{{{date_publication}}}}}}}}}|{{#if: {{{release_start_date|}}} |, publiée entre le {{{release_start_date}}} et le {{{release_end_date|?}}} }}}} }}.}}}}}}}}<!-- Catégories automatiques générées par l'Infobox -->{{#if: {{{release_weekday|}}} | [[Catégorie:Chanson sortie un {{lc:{{{release_weekday}}}}}]] }}{{#if: {{{release_day|}}} | [[Catégorie:Chanson sortie un {{{release_day}}}]] }}{{#if: {{{release_month|}}} | [[Catégorie:Chanson sortie en {{lc:{{{release_month}}}}}]] }}{{#if: {{{release_year|}}} | [[Catégorie:Chanson de {{{release_year}}}]] }}</includeonly><noinclude>
{{#if: {{{release_weekday|}}} | [[Catégorie:Chanson sortie un {{{release_weekday}}}]] }}
{{#if: {{{release_day|}}} | [[Catégorie:Chanson sortie un {{{release_day}}}]] }}
{{#if: {{{release_month|}}} | [[Catégorie:Chanson sortie en {{{release_month}}}]] }}
{{#if: {{{release_year|}}} | [[Catégorie:Chanson de {{{release_year}}}]] }}
</includeonly><noinclude>
== Utilisation ==
== Utilisation ==
<pre>
<pre>
{{Infobox Song
{{Infobox Chanson
| title =  
| title =  
| cover =
| cover_caption =
| image =  
| image =  
| image_caption =  
| image_caption =  
Ligne 103 : Ligne 101 :
| release_year =  
| release_year =  
| release_time =  
| release_time =  
| release_start_date =
| release_start_time =
| release_end_date =
| release_end_time =
| type = Adaptation en français
| type = Adaptation en français
| album =  
| album =  
Ligne 113 : Ligne 115 :
| deezer =  
| deezer =  
| youtube_description =  
| youtube_description =  
| intro = oui (ou non pour masquer la première phrase automatique)
}}
}}
</pre>
</pre>
[[Catégorie:Modèle Infobox]]
[[Catégorie:Modèle Infobox]]
</noinclude>
</noinclude>

Dernière version du 20 septembre 2026 à 20:14

Utilisation

{{Infobox Chanson
| title = 
| cover = 
| cover_caption = 
| image = 
| image_caption = 
| original_title = 
| original_artist = 
| artist = [[Sara'h]]
| release_date = 
| release_weekday = 
| release_day = 
| release_month = 
| release_year = 
| release_time = 
| release_start_date = 
| release_start_time = 
| release_end_date = 
| release_end_time = 
| type = Adaptation en français
| album = 
| adaptation = [[Sara'h]], [[Nico Staf]]
| youtube_views = 
| youtube_link = 
| lyrics_video = 
| spotify = 
| apple_music = 
| deezer = 
| youtube_description = 
| intro = oui (ou non pour masquer la première phrase automatique)
}}