Aller au contenu

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

De Sara'h
Création du modèle Infobox Chanson standardisé
 
Ajout du support des pochettes d'album et de singles (cover/pochette)
 
(12 versions intermédiaires par le même utilisateur non affichées)
Ligne 1 : Ligne 1 :
<includeonly>{| class="infobox" style="width: 22em; font-size: 90%; border: 1px solid #a2a9b1; background-color: #f8f9fa; color: #202122; margin: 0 0 1em 1em; padding: 0.2em; float: right; clear: right; border-radius: 4px; box-shadow: 0 2px 4px rgba(0,0,0,0.06);"
<includeonly>{| class="infobox infobox-chanson"
|+ style="font-size: 130%; font-weight: bold; background-color: #e8ecf1; padding: 0.5em; text-align: center; border-radius: 4px 4px 0 0; color: #1a1a1a;" | {{{titre|{{PAGENAME}}}}}
|-
|-
| colspan="2" style="text-align: center; font-size: 95%; color: #54595d; padding: 0.2em 0.5em 0.5em;" | Chanson interprétée par Sara'h
! colspan="2" class="infobox-chanson-title" | {{{title|{{{titre|{{PAGENAME}}}}}}}}
|- style="border-top: 1px solid #a2a9b1;"
{{#if: {{{cover|{{{pochette|{{{album_cover|}}}}}}}}} |
! scope="row" style="text-align: left; padding: 0.4em 0.6em; width: 40%; font-weight: 600; color: #404244;" | Titre original
{{!-}}
| style="padding: 0.4em 0.6em;" | {{{titre_original|Non renseigné}}}
{{!}} 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>}}
! scope="row" style="text-align: left; padding: 0.4em 0.6em; font-weight: 600; color: #404244;" | Artiste original
}}
| style="padding: 0.4em 0.6em;" | {{{artiste_original|Non renseigné}}}
{{#if: {{{image|}}} |
|-
{{!-}}
! scope="row" style="text-align: left; padding: 0.4em 0.6em; font-weight: 600; color: #404244;" | Nouveau titre (FR)
{{!}} colspan="2" class="infobox-chanson-image" {{!}} [[Fichier:{{{image}}}|280x160px|center|frameless|{{{image_caption|{{{legende|Miniature de {{{title|{{{titre|{{PAGENAME}}}}}}}}}}}}}}]]
| style="padding: 0.4em 0.6em;" | {{{nouveau_titre|{{{titre_francais|Identique}}}}}}
}}
|-
{{#if: {{{original_title|{{{titre_original|}}}}}} |
! scope="row" style="text-align: left; padding: 0.4em 0.6em; font-weight: 600; color: #404244;" | Date de publication
{{!-}} class="infobox-chanson-row"
| style="padding: 0.4em 0.6em;" | {{{date_publication|Inconnue}}}
! class="infobox-chanson-label infobox-chanson-label-w40" {{!}} Titre original
|-
{{!}} class="infobox-chanson-value" {{!}} '''{{{original_title|{{{titre_original}}}}}}'''
! scope="row" style="text-align: left; padding: 0.4em 0.6em; font-weight: 600; color: #404244;" | Heure de publication
}}
| style="padding: 0.4em 0.6em;" | {{{heure_publication|Non précisée}}}
{{#if: {{{original_artist|{{{artiste_original|}}}}}} |
|-
{{!-}} class="infobox-chanson-row"
! scope="row" style="text-align: left; padding: 0.4em 0.6em; font-weight: 600; color: #404244;" | Type
! class="infobox-chanson-label" {{!}} Artiste original
| style="padding: 0.4em 0.6em;" | {{{type|Reprise / Cover}}}
{{!}} class="infobox-chanson-value" {{!}} {{{original_artist|{{{artiste_original}}}}}}
|-
}}
! scope="row" style="text-align: left; padding: 0.4em 0.6em; font-weight: 600; color: #404244;" | Lien YouTube
|- class="infobox-chanson-row"
| style="padding: 0.4em 0.6em;" | {{{lien_youtube|[https://www.youtube.com/watch?v={{{youtube_id}}} Regarder sur YouTube]}}}
! class="infobox-chanson-label" | Interprète
|-
| class="infobox-chanson-value" | {{{artist|{{{interprete|[[Sara'h]]}}}}}}
! scope="row" style="text-align: left; padding: 0.4em 0.6em; font-weight: 600; color: #404244;" | Adaptation
{{#if: {{{release_weekday|}}}{{{release_day|}}}{{{release_month|}}}{{{release_year|}}}{{{release_date|{{{date_sortie|{{{date_publication|}}}}}}}}} |
| style="padding: 0.4em 0.6em;" | {{{adaptation|Sara'h / Nico Staf}}}
{{!-}} class="infobox-chanson-row"
|}
! class="infobox-chanson-label" {{!}} Date de sortie
</includeonly><noinclude>
{{!}} 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_start_date|}}} |
{{!-}} class="infobox-chanson-row"
! class="infobox-chanson-label" {{!}} Période estimée
{{!}} 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|}}}}}} |
{{!-}} class="infobox-chanson-row"
! class="infobox-chanson-label" {{!}} Type
{{!}} class="infobox-chanson-value" {{!}} {{{type|{{{genre}}}}}}
}}
{{#if: {{{album|}}} |
{{!-}} class="infobox-chanson-row"
! class="infobox-chanson-label" {{!}} Album
{{!}} class="infobox-chanson-value" {{!}} {{{album}}}
}}
{{#if: {{{adaptation|}}} |
{{!-}} class="infobox-chanson-row"
! class="infobox-chanson-label" {{!}} Adaptation
{{!}} class="infobox-chanson-value" {{!}} {{{adaptation}}}
}}
{{#if: {{{youtube_views|{{{views|{{{vues_youtube|{{{vues|}}}}}}}}}}}} |
{{!-}} class="infobox-chanson-row"
! class="infobox-chanson-label" {{!}} Vues YouTube
{{!}} class="infobox-chanson-value infobox-chanson-value-bold" {{!}} {{{youtube_views|{{{views|{{{vues_youtube|{{{vues}}}}}}}}}}}}
}}
{{#if: {{{youtube_link|{{{lien_youtube|}}}}}} |
{{!-}} class="infobox-chanson-row"
! class="infobox-chanson-label" {{!}} Vidéo YouTube
{{!}} class="infobox-chanson-value" {{!}} {{{youtube_link|{{{lien_youtube}}}}}}
}}
{{#if: {{{lyrics_video|{{{video_paroles|}}}}}} |
{{!-}} class="infobox-chanson-row"
! class="infobox-chanson-label" {{!}} Vidéo paroles
{{!}} class="infobox-chanson-value" {{!}} {{{lyrics_video|{{{video_paroles}}}}}}
}}
{{#if: {{{spotify|}}}{{{apple_music|}}}{{{deezer|}}} |
{{!-}} class="infobox-chanson-row"
! class="infobox-chanson-label" {{!}} Écouter en streaming
{{!}} class="infobox-chanson-value infobox-chanson-value-lh" {{!}}
{{#if: {{{spotify|}}} |* [{{{spotify}}} 🟢 Spotify]
}}{{#if: {{{apple_music|}}} |* [{{{apple_music}}} 🍎 Apple Music]
}}{{#if: {{{deezer|}}} |* [{{{deezer}}} 🟣 Deezer]
}}
}}
{{#if: {{{youtube_description|{{{description_youtube|}}}}}} |
{{!-}}
{{!}} colspan="2" class="infobox-chanson-desc-container" {{!}}
<div class="mw-collapsible mw-collapsed infobox-chanson-desc-collapsible">
<div class="infobox-chanson-desc-header">📄 Description et crédits YouTube</div>
<div class="mw-collapsible-content infobox-chanson-desc-content">
{{{youtube_description|{{{description_youtube}}}}}}
</div>
</div>
}}
|}{{#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>
== Utilisation ==
== Utilisation ==
<pre>
<pre>
{{Infobox Chanson
{{Infobox Chanson
| titre =  
| title =  
| titre_original =  
| cover =  
| artiste_original =  
| cover_caption =  
| nouveau_titre =  
| image =  
| date_publication =  
| image_caption =  
| heure_publication =  
| original_title =
| type =  
| original_artist =
| youtube_id =  
| artist = [[Sara'h]]
| lien_youtube =  
| release_date =
| adaptation =  
| 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)
}}
}}
</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)
}}