« Modèle:Infobox Photographie » : différence entre les versions
Apparence
Page créée avec « <includeonly>{{#seo: |title={{{titre|}}} - Œuvre photographique de {{{artiste|}}} |description={{{description_courte|}}} |type=article }} <div style="float: right; clear: right; width: 320px; border: 1px solid #e0e0e0; background-color: #fbfbfb; margin: 0 0 1em 1em; padding: 20px; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-shadow: 0 2px 8px rgba(0,0,0,0.05); font-size: 0.95em; color: #222;"> <div style="font-size: 1.3em; font-weight: 600... » |
Aucun résumé des modifications |
||
| (7 versions intermédiaires par le même utilisateur non affichées) | |||
| Ligne 1 : | Ligne 1 : | ||
<includeonly>{{#seo: | <includeonly>{{#seo: | ||
|title={{{titre|}}} | |title={{{titre|}}} – Photographie de {{{artiste|}}}{{#if:{{{annee|}}}| ({{{annee|}}})}} | ||
|description={{{description_courte|}}} | |description={{{description_courte|}}} | ||
|type=article | |type=article | ||
|image={{#if:{{{image|}}}|{{filepath:{{{image}}}|}}}} | |||
}} | }} | ||
<html> | |||
<script type="application/ld+json"> | |||
{ | |||
"@context": "https://schema.org", | |||
"@type": "VisualArtwork", | |||
"name": "{{{titre|}}}", | |||
"artist": {"@type": "Person", "name": "Romain Wisniewski"}, | |||
"dateCreated": "{{{annee|}}}", | |||
"artform": "Photography", | |||
"artMedium": "{{{support|}}}", | |||
"image": "{{#if:{{{image|}}}|{{filepath:{{{image}}}|}}}}", | |||
"description": "{{{description_courte|}}}" | |||
} | |||
</script> | |||
</html> | |||
<div style="float: right; clear: right; width: 320px; border: 1px solid #e0e0e0; background-color: #fbfbfb; margin: 0 0 1em 1em; padding: 20px; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-shadow: 0 2px 8px rgba(0,0,0,0.05); font-size: 0.95em; color: #222;"> | <div style="float: right; clear: right; width: 320px; border: 1px solid #e0e0e0; background-color: #fbfbfb; margin: 0 0 1em 1em; padding: 20px; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-shadow: 0 2px 8px rgba(0,0,0,0.05); font-size: 0.95em; color: #222;"> | ||
<div style="font-size: 1.3em; font-weight: 600; text-align: center; margin-bottom: 15px; color: #111; border-bottom: 3px solid #8b0000; padding-bottom: 8px;">{{{titre|}}}</div> | <div style="font-size: 1.3em; font-weight: 600; text-align: center; margin-bottom: 15px; color: #111; border-bottom: 3px solid #8b0000; padding-bottom: 8px;">{{{titre|}}}</div> | ||
<div style="text-align: center; margin-bottom: 15px;">[[Fichier:{{{image | |||
{{#if:{{{image|}}}| | |||
<div style="text-align: center; margin-bottom: 15px;">[[Fichier:{{{image}}}|frameless|center|280px|alt={{#if:{{{legende_image|}}}|{{{legende_image}}}|{{{titre|}}} - Photographie par {{{artiste|}}}}}]] | |||
<div style="font-size: 0.85em; color: #555; margin-top: 6px; font-style: italic;">{{{legende_image|}}}</div></div> | <div style="font-size: 0.85em; color: #555; margin-top: 6px; font-style: italic;">{{{legende_image|}}}</div></div> | ||
}} | |||
<table style="width: 100%; border-collapse: collapse; line-height: 1.6;"> | <table style="width: 100%; border-collapse: collapse; line-height: 1.6;"> | ||
<tr style="border-bottom: 1px solid #eee;"><th style="text-align: left; vertical-align: top; padding: 6px 0; color: #666; width: 35%; font-weight: normal;">Auteur</th><td style="padding: 6px 0; font-weight: bold;">{{{artiste | {{#if:{{{artiste|}}}| | ||
<tr style="border-bottom: 1px solid #eee;"><th style="text-align: left; vertical-align: top; padding: 6px 0; color: #666; font-weight: normal;">Date de création</th><td style="padding: 6px 0;">{{{annee|}}}</td></tr> | <tr style="border-bottom: 1px solid #eee;"><th style="text-align: left; vertical-align: top; padding: 6px 0; color: #666; width: 35%; font-weight: normal;">Auteur</th><td style="padding: 6px 0; font-weight: bold;">{{{artiste}}} <span style="display:none;" class="wikidata-link" data-wikidata="Q140564141"></span></td></tr> | ||
<tr style="border-bottom: 1px solid #eee;"><th style="text-align: left; vertical-align: top; padding: 6px 0; color: #666; font-weight: normal;">Support / Type</th><td style="padding: 6px 0;">{{{support | }} | ||
<tr style="border-bottom: 1px solid #eee;"><th style="text-align: left; vertical-align: top; padding: 6px 0; color: #666; font-weight: normal;">Dimensions</th><td style="padding: 6px 0;">{{{dimensions | {{#if:{{{annee|}}}| | ||
<tr style="border-bottom: 1px solid #eee;"><th style="text-align: left; vertical-align: top; padding: 6px 0; color: #666; font-weight: normal;">Édition</th><td style="padding: 6px 0;">{{{edition | <tr style="border-bottom: 1px solid #eee;"><th style="text-align: left; vertical-align: top; padding: 6px 0; color: #666; font-weight: normal;">Date de création</th><td style="padding: 6px 0;">{{{annee}}}</td></tr> | ||
<tr><th style="text-align: left; vertical-align: top; padding: 6px 0; color: #666; font-weight: normal;">Technique</th><td style="padding: 6px 0;">{{{appareil | }} | ||
{{#if:{{{lieu|}}}| | |||
<tr style="border-bottom: 1px solid #eee;"><th style="text-align: left; vertical-align: top; padding: 6px 0; color: #666; font-weight: normal;">Lieu</th><td style="padding: 6px 0;">{{{lieu}}}</td></tr> | |||
}} | |||
{{#if:{{{support|}}}| | |||
<tr style="border-bottom: 1px solid #eee;"><th style="text-align: left; vertical-align: top; padding: 6px 0; color: #666; font-weight: normal;">Support / Type</th><td style="padding: 6px 0;">{{{support}}}</td></tr> | |||
}} | |||
{{#if:{{{dimensions|}}}| | |||
<tr style="border-bottom: 1px solid #eee;"><th style="text-align: left; vertical-align: top; padding: 6px 0; color: #666; font-weight: normal;">Dimensions</th><td style="padding: 6px 0;">{{{dimensions}}}</td></tr> | |||
}} | |||
{{#if:{{{edition|}}}| | |||
<tr style="border-bottom: 1px solid #eee;"><th style="text-align: left; vertical-align: top; padding: 6px 0; color: #666; font-weight: normal;">Édition</th><td style="padding: 6px 0;">{{{edition}}}</td></tr> | |||
}} | |||
{{#if:{{{appareil|}}}| | |||
<tr><th style="text-align: left; vertical-align: top; padding: 6px 0; color: #666; font-weight: normal;">Technique</th><td style="padding: 6px 0;">{{{appareil}}}</td></tr> | |||
}} | |||
</table> | </table> | ||
</div></includeonly><noinclude> | </div> | ||
<!-- Catégorisation Automatique invisible pour le visiteur, mais active pour le Wiki --> | |||
{{#if:{{{support|}}}|[[Catégorie:{{{support}}}]]}} | |||
{{#if:{{{annee|}}}|[[Catégorie:{{{annee}}}]]}} | |||
{{#if:{{{lieu|}}}|[[Catégorie:{{{lieu}}}]]}} | |||
</includeonly><noinclude> | |||
== Documentation du modèle == | == Documentation du modèle == | ||
Ce modèle sert à afficher les informations d'une photographie. | Ce modèle sert à afficher les informations d'une photographie, à injecter des balises de SEO (Schema.org) et à catégoriser automatiquement la page. | ||
=== Utilisation === | === Utilisation === | ||
| Ligne 29 : | Ligne 71 : | ||
| artiste = | | artiste = | ||
| annee = | | annee = | ||
| | | lieu = | ||
| dimensions = | | dimensions = | ||
| edition = | | edition = | ||
| appareil = | | appareil = | ||
| description_courte = | | description_courte = | ||
| support = Photographie | |||
}} | }} | ||
</pre> | </pre> | ||
</noinclude> | </noinclude> | ||
Dernière version du 30 juillet 2026 à 22:44
Documentation du modèle
Ce modèle sert à afficher les informations d'une photographie, à injecter des balises de SEO (Schema.org) et à catégoriser automatiquement la page.
Utilisation
Copiez ce code sur la page de l'œuvre :
{{Infobox Photographie
| titre =
| image =
| legende_image =
| artiste =
| annee =
| lieu =
| dimensions =
| edition =
| appareil =
| description_courte =
| support = Photographie
}}