Aller au contenu

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

De Sara'h
Déploiement du modèle commun Infobox Chanson avec ParserFunctions
Mise à jour du modèle Infobox Chanson avec paramètres en anglais et 4 catégories
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" 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}}}}}
! 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}}}}}}}}
{{#if: {{{image|}}} |{{!-}}
{{#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;"
{{!}} colspan="2" style="text-align: center; padding: 8px; background: #f8fafc;" {{!}} [[Fichier:{{{image}}}|300px|center|frameless|{{{image_caption|{{{legende|Miniature de {{{title|{{{titre|{{PAGENAME}}}}}}}}}}}}}}]]
}}
{{#if: {{{original_title|{{{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; text-align: left; background: #f8fafc; width: 40%; color: #334155; font-weight: 600;" {{!}} Titre original
{{!}} style="padding: 6px 10px; color: #0f172a;" {{!}} '''{{{titre_original}}}'''}}
{{!}} style="padding: 6px 10px; color: #0f172a;" {{!}} '''{{{original_title|{{{titre_original}}}}}}'''
{{#if: {{{artiste_original|}}} |{{!-}} style="border-top: 1px solid #e2e8f0;"
}}
{{#if: {{{original_artist|{{{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; text-align: left; background: #f8fafc; color: #334155; font-weight: 600;" {{!}} Artiste original
{{!}} style="padding: 6px 10px; color: #0f172a;" {{!}} {{{artiste_original}}}}}
{{!}} style="padding: 6px 10px; color: #0f172a;" {{!}} {{{original_artist|{{{artiste_original}}}}}}
}}
|- style="border-top: 1px solid #e2e8f0;"
|- 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; text-align: left; background: #f8fafc; color: #334155; font-weight: 600;" | Interprète
| style="padding: 6px 10px; color: #0f172a;" | {{{interprete|[[Sara'h]]}}}
| style="padding: 6px 10px; color: #0f172a;" | {{{artist|{{{interprete|[[Sara'h]]}}}}}}
{{#if: {{{date_sortie|{{{date_publication|}}}}}} |{{!-}} style="border-top: 1px solid #e2e8f0;"
{{#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; text-align: left; background: #f8fafc; color: #334155; font-weight: 600;" {{!}} Date de sortie
{{!}} style="padding: 6px 10px; color: #0f172a;" {{!}} {{{date_sortie|{{{date_publication}}}}}}}}
{{!}} style="padding: 6px 10px; color: #0f172a;" {{!}} {{{release_date|{{{date_sortie|{{{date_publication}}}}}}}}}
{{#if: {{{heure_sortie|}}} |{{!-}} style="border-top: 1px solid #e2e8f0;"
}}
{{#if: {{{release_weekday|}}} |
{{!-}} style="border-top: 1px solid #e2e8f0;"
! style="padding: 6px 10px; text-align: left; background: #f8fafc; color: #334155; font-weight: 600;" {{!}} Jour de parution
{{!}} style="padding: 6px 10px; color: #0f172a;" {{!}} {{ucfirst:{{{release_weekday}}}}}
}}
{{#if: {{{release_time|{{{heure_sortie|}}}}}} |
{{!-}} style="border-top: 1px solid #e2e8f0;"
! style="padding: 6px 10px; text-align: left; background: #f8fafc; color: #334155; font-weight: 600;" {{!}} Heure de sortie
! style="padding: 6px 10px; text-align: left; background: #f8fafc; color: #334155; font-weight: 600;" {{!}} Heure de sortie
{{!}} style="padding: 6px 10px; color: #0f172a;" {{!}} {{{heure_sortie}}}}}
{{!}} style="padding: 6px 10px; color: #0f172a;" {{!}} {{{release_time|{{{heure_sortie}}}}}}
{{#if: {{{type|{{{genre|}}}}}} |{{!-}} style="border-top: 1px solid #e2e8f0;"
}}
{{#if: {{{type|{{{genre|}}}}}} |
{{!-}} style="border-top: 1px solid #e2e8f0;"
! style="padding: 6px 10px; text-align: left; background: #f8fafc; color: #334155; font-weight: 600;" {{!}} Type
! style="padding: 6px 10px; text-align: left; background: #f8fafc; color: #334155; font-weight: 600;" {{!}} Type
{{!}} style="padding: 6px 10px; color: #0f172a;" {{!}} {{{type|{{{genre}}}}}}}}
{{!}} style="padding: 6px 10px; color: #0f172a;" {{!}} {{{type|{{{genre}}}}}}
{{#if: {{{album|}}} |{{!-}} style="border-top: 1px solid #e2e8f0;"
}}
{{#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; text-align: left; background: #f8fafc; color: #334155; font-weight: 600;" {{!}} Album
{{!}} style="padding: 6px 10px; color: #0f172a;" {{!}} {{{album}}}}}
{{!}} style="padding: 6px 10px; color: #0f172a;" {{!}} {{{album}}}
{{#if: {{{adaptation|}}} |{{!-}} style="border-top: 1px solid #e2e8f0;"
}}
{{#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; text-align: left; background: #f8fafc; color: #334155; font-weight: 600;" {{!}} Adaptation
{{!}} style="padding: 6px 10px; color: #0f172a;" {{!}} {{{adaptation}}}}}
{{!}} style="padding: 6px 10px; color: #0f172a;" {{!}} {{{adaptation}}}
{{#if: {{{vues_youtube|{{{vues|}}}}}} |{{!-}} style="border-top: 1px solid #e2e8f0;"
}}
{{#if: {{{youtube_views|{{{views|{{{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; text-align: left; background: #f8fafc; color: #334155; font-weight: 600;" {{!}} Vues YouTube
{{!}} style="padding: 6px 10px; color: #0f172a; font-weight: bold;" {{!}} 👁️ {{{vues_youtube|{{{vues}}}}}}}}
{{!}} style="padding: 6px 10px; color: #0f172a; font-weight: bold;" {{!}} 👁️ {{{youtube_views|{{{views|{{{vues_youtube|{{{vues}}}}}}}}}}}}
{{#if: {{{lien_youtube|}}} |{{!-}} style="border-top: 1px solid #e2e8f0;"
}}
{{#if: {{{youtube_link|{{{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; text-align: left; background: #f8fafc; color: #334155; font-weight: 600;" {{!}} Vidéo YouTube
{{!}} style="padding: 6px 10px; color: #0f172a;" {{!}} {{{lien_youtube}}}}}
{{!}} style="padding: 6px 10px; color: #0f172a;" {{!}} {{{youtube_link|{{{lien_youtube}}}}}}
{{#if: {{{spotify|}}}{{{apple_music|}}}{{{deezer|}}} |{{!-}} style="border-top: 1px solid #e2e8f0;"
}}
{{#if: {{{lyrics_video|{{{video_paroles|}}}}}} |
{{!-}} style="border-top: 1px solid #e2e8f0;"
! style="padding: 6px 10px; text-align: left; background: #f8fafc; color: #334155; font-weight: 600;" {{!}} Vidéo paroles
{{!}} style="padding: 6px 10px; color: #0f172a;" {{!}} {{{lyrics_video|{{{video_paroles}}}}}}
}}
{{#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; text-align: left; background: #f8fafc; color: #334155; font-weight: 600;" {{!}} Écouter en streaming
{{!}} style="padding: 6px 10px; color: #0f172a; line-height: 1.6;" {{!}}
{{!}} style="padding: 6px 10px; color: #0f172a; line-height: 1.6;" {{!}}
{{#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: {{{description_youtube|}}} |{{!-}}
{{#if: {{{youtube_description|{{{description_youtube|}}}}}} |
{{!-}}
{{!}} colspan="2" style="padding: 8px 10px; background: #f8fafc; border-top: 1px solid #e2e8f0;" {{!}}
{{!}} colspan="2" style="padding: 8px 10px; background: #f8fafc; border-top: 1px solid #e2e8f0;" {{!}}
<div class="mw-collapsible mw-collapsed" style="font-size: 90%;"><div style="font-weight: bold; color: #1e40af; cursor: pointer; padding: 2px 0;">📄 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;">{{{description_youtube}}}</div></div>}}
<div class="mw-collapsible mw-collapsed" style="font-size: 90%;">
|}</includeonly><noinclude>
<div style="font-weight: bold; color: #1e40af; cursor: pointer; padding: 2px 0;">📄 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;">
{{{youtube_description|{{{description_youtube}}}}}}
</div>
</div>
}}
|}<!-- Catégories automatiques générées par l'Infobox -->
{{#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 Chanson
{{Infobox Song
| titre =  
| title =  
| image =  
| image =  
| titre_original =  
| image_caption =  
| artiste_original =  
| original_title =  
| interprete = [[Sara'h]]
| original_artist =
| date_sortie =  
| artist = [[Sara'h]]
| type = Reprise (French Version)
| release_date =
| release_weekday =
| release_day =
| release_month =
| release_year =
| release_time =  
| type = Adaptation en français
| album =  
| album =  
| adaptation = Sara'h
| adaptation = [[Sara'h]], [[Nico Staf]]
| vues_youtube =  
| youtube_views =  
| lien_youtube =  
| youtube_link =
| lyrics_video =  
| spotify =  
| spotify =  
| apple_music =  
| apple_music =  
| deezer =  
| deezer =  
| youtube_description =
}}
}}
</pre>
</pre>
[[Catégorie:Modèle Infobox]]
[[Catégorie:Modèle Infobox]]
</noinclude>
</noinclude>

Version du 5 septembre 2026 à 16:00

Utilisation

{{Infobox Song
| title = 
| image = 
| image_caption = 
| original_title = 
| original_artist = 
| artist = [[Sara'h]]
| release_date = 
| release_weekday = 
| release_day = 
| release_month = 
| release_year = 
| release_time = 
| type = Adaptation en français
| album = 
| adaptation = [[Sara'h]], [[Nico Staf]]
| youtube_views = 
| youtube_link = 
| lyrics_video = 
| spotify = 
| apple_music = 
| deezer = 
| youtube_description = 
}}