« Modèle:Infobox Chanson » : différence entre les versions
Apparence
Déploiement du modèle commun Infobox Chanson avec ParserFunctions |
Ajout du support des pochettes d'album et de singles (cover/pochette) |
||
| (10 versions intermédiaires par le même utilisateur non affichées) | |||
| Ligne 1 : | Ligne 1 : | ||
<includeonly>{| class="infobox | <includeonly>{| class="infobox infobox-chanson" | ||
|- | |- | ||
! colspan="2" style=" | ! 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" | {{!}} colspan="2" class="infobox-chanson-image" {{!}} [[Fichier:{{{image}}}|280x160px|center|frameless|{{{image_caption|{{{legende|Miniature de {{{title|{{{titre|{{PAGENAME}}}}}}}}}}}}}}]] | ||
}} | |||
{{#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: {{{ | {{#if: {{{original_artist|{{{artiste_original|}}}}}} | | ||
{{!-}} | {{!-}} class="infobox-chanson-row" | ||
! | ! class="infobox-chanson-label" {{!}} Artiste original | ||
{{!}} | {{!}} class="infobox-chanson-value" {{!}} {{{original_artist|{{{artiste_original}}}}}} | ||
}} | }} | ||
{{#if: {{{ | |- 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|}}}}}}}}} | | ||
{{!-}} 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|}}} | | |||
{{!-}} class="infobox-chanson-row" | |||
! class="infobox-chanson-label" {{!}} Période estimée | |||
{{#if: {{{ | {{!}} 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: {{{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: {{{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|}}}}}} | | |||
{{!-}} 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: {{{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> | |||
}} | }} | ||
|}</includeonly><noinclude> | |}{{#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|}}}}}} | de la chanson ''{{{original_title|{{{titre_original}}}}}}''{{#if: {{{original_artist|{{{artiste_original|}}}}}} | 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 | ||
| | | title = | ||
| cover = | |||
| cover_caption = | |||
| image = | | image = | ||
| | | image_caption = | ||
| | | original_title = | ||
| | | original_artist = | ||
| | | artist = [[Sara'h]] | ||
| type = | | 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 = | | album = | ||
| adaptation = Sara'h | | adaptation = [[Sara'h]], [[Nico Staf]] | ||
| | | youtube_views = | ||
| | | youtube_link = | ||
| lyrics_video = | |||
| spotify = | | spotify = | ||
| apple_music = | | apple_music = | ||
| deezer = | | 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)
}}