« Modèle:Infobox Chanson » : différence entre les versions
Apparence
Suppression emoji œil pour les vues YouTube |
Remplacement des styles CSS inline par des classes |
||
| Ligne 1 : | Ligne 1 : | ||
<includeonly>{| class="infobox | <includeonly>{| class="infobox infobox-chanson" | ||
|- | |- | ||
! colspan="2" | ! colspan="2" class="infobox-chanson-title" | {{{title|{{{titre|{{PAGENAME}}}}}}}} | ||
{{#if: {{{image|}}} | | {{#if: {{{image|}}} | | ||
{{!-}} | {{!-}} | ||
{{!}} colspan="2" | {{!}} 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|}}}}}} | | ||
{{!-}} | {{!-}} class="infobox-chanson-row" | ||
! | ! class="infobox-chanson-label infobox-chanson-label-w40" {{!}} Titre original | ||
{{!}} | {{!}} class="infobox-chanson-value" {{!}} '''{{{original_title|{{{titre_original}}}}}}''' | ||
}} | }} | ||
{{#if: {{{original_artist|{{{artiste_original|}}}}}} | | {{#if: {{{original_artist|{{{artiste_original|}}}}}} | | ||
{{!-}} | {{!-}} class="infobox-chanson-row" | ||
! | ! class="infobox-chanson-label" {{!}} Artiste original | ||
{{!}} | {{!}} class="infobox-chanson-value" {{!}} {{{original_artist|{{{artiste_original}}}}}} | ||
}} | }} | ||
|- | |- class="infobox-chanson-row" | ||
! | ! class="infobox-chanson-label" | Interprète | ||
| | | class="infobox-chanson-value" | {{{artist|{{{interprete|[[Sara'h]]}}}}}} | ||
{{#if: {{{release_weekday|}}}{{{release_day|}}}{{{release_month|}}}{{{release_year|}}}{{{release_date|{{{date_sortie|{{{date_publication|}}}}}}}}} | | {{#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}}}}}]] }}{{#if: {{{release_day|}}} |[[:Catégorie:Chanson sortie un {{{release_day}}}|{{{release_day}}}]] }}{{#if: {{{release_month|}}} |[[:Catégorie:Chanson sortie en {{lc:{{{release_month}}}}}|{{lc:{{{release_month}}}}}]] }}{{#if: {{{release_year|}}} |[[:Catégorie:Chanson de {{{release_year}}}|{{{release_year}}}]]}}|{{{release_date|{{{date_sortie|{{{date_publication}}}}}}}}} }}{{#if: {{{release_time|{{{heure_sortie|}}}}}} | à {{{release_time|{{{heure_sortie}}}}}} }} | ||
}} | }} | ||
{{#if: {{{release_start_date|}}} | | {{#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|}}}}}} | | {{#if: {{{type|{{{genre|}}}}}} | | ||
{{!-}} | {{!-}} class="infobox-chanson-row" | ||
! | ! class="infobox-chanson-label" {{!}} Type | ||
{{!}} | {{!}} class="infobox-chanson-value" {{!}} {{{type|{{{genre}}}}}} | ||
}} | }} | ||
{{#if: {{{album|}}} | | {{#if: {{{album|}}} | | ||
{{!-}} | {{!-}} class="infobox-chanson-row" | ||
! | ! class="infobox-chanson-label" {{!}} Album | ||
{{!}} | {{!}} class="infobox-chanson-value" {{!}} {{{album}}} | ||
}} | }} | ||
{{#if: {{{adaptation|}}} | | {{#if: {{{adaptation|}}} | | ||
{{!-}} | {{!-}} class="infobox-chanson-row" | ||
! | ! class="infobox-chanson-label" {{!}} Adaptation | ||
{{!}} | {{!}} class="infobox-chanson-value" {{!}} {{{adaptation}}} | ||
}} | }} | ||
{{#if: {{{youtube_views|{{{views|{{{vues_youtube|{{{vues|}}}}}}}}}}}} | | {{#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|}}}}}} | | {{#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|}}}}}} | | {{#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|}}} | | {{#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: {{{spotify|}}} |* [{{{spotify}}} 🟢 Spotify] | ||
}}{{#if: {{{apple_music|}}} |* [{{{apple_music}}} 🍎 Apple Music] | }}{{#if: {{{apple_music|}}} |* [{{{apple_music}}} 🍎 Apple Music] | ||
| Ligne 70 : | Ligne 70 : | ||
{{#if: {{{youtube_description|{{{description_youtube|}}}}}} | | {{#if: {{{youtube_description|{{{description_youtube|}}}}}} | | ||
{{!-}} | {{!-}} | ||
{{!}} colspan="2" | {{!}} colspan="2" class="infobox-chanson-desc-container" {{!}} | ||
<div class="mw-collapsible mw-collapsed | <div class="mw-collapsible mw-collapsed infobox-chanson-desc-collapsible"> | ||
<div | <div class="infobox-chanson-desc-header">📄 Description et crédits YouTube</div> | ||
<div class="mw-collapsible-content | <div class="mw-collapsible-content infobox-chanson-desc-content"> | ||
{{{youtube_description|{{{description_youtube}}}}}} | {{{youtube_description|{{{description_youtube}}}}}} | ||
</div> | </div> | ||
Version du 10 septembre 2026 à 11:52
Utilisation
{{Infobox Chanson
| title =
| 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)
}}