« Modèle:Infobox Chanson » : différence entre les versions
Apparence
Déploiement du modèle commun Infobox Chanson avec ParserFunctions |
Déploiement du modèle commun Infobox Chanson avec ParserFunctions |
||
| Ligne 16 : | Ligne 16 : | ||
! 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;" {{!}} {{{date_sortie|{{{date_publication}}}}}}}} | ||
{{#if: {{{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; color: #0f172a;" {{!}} {{{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 | ||
| Ligne 27 : | Ligne 30 : | ||
{{#if: {{{vues_youtube|{{{vues|}}}}}} |{{!-}} style="border-top: 1px solid #e2e8f0;" | {{#if: {{{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;" {{!}} {{{vues_youtube|{{{vues}}}}}}}} | {{!}} style="padding: 6px 10px; color: #0f172a; font-weight: bold;" {{!}} 👁️ {{{vues_youtube|{{{vues}}}}}}}} | ||
{{#if: {{{lien_youtube|}}} |{{!-}} style="border-top: 1px solid #e2e8f0;" | {{#if: {{{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 | ||
| Ligne 33 : | Ligne 36 : | ||
{{#if: {{{spotify|}}}{{{apple_music|}}}{{{deezer|}}} |{{!-}} style="border-top: 1px solid #e2e8f0;" | {{#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;" {{!}} | {{!}} 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] | ||
}}}}|}</includeonly><noinclude> | }}}} | ||
{{#if: {{{description_youtube|}}} |{{!-}} | |||
{{!}} 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>}} | |||
|}</includeonly><noinclude> | |||
== Utilisation == | == Utilisation == | ||
<pre> | <pre> | ||
Version du 5 septembre 2026 à 14:13
Utilisation
{{Infobox Chanson
| titre =
| image =
| titre_original =
| artiste_original =
| interprete = [[Sara'h]]
| date_sortie =
| type = Reprise (French Version)
| album =
| adaptation = Sara'h
| vues_youtube =
| lien_youtube =
| spotify =
| apple_music =
| deezer =
}}