« Modèle:Affaire » : différence entre les versions
Apparence
Import des pages de test |
Propos d'élus et accueil |
||
| (2 versions intermédiaires par le même utilisateur non affichées) | |||
| Ligne 1 : | Ligne 1 : | ||
<noinclude> | <noinclude> | ||
{{#cargo_declare:_table=Affaires | {{#cargo_declare:_table=Affaires | ||
|Categorie=String | |Categorie=String | ||
|DateFaits=Date | |DateFaits=Date | ||
|Lieu=String | |Lieu=String | ||
|Departement=String | |Departement=String | ||
|Institution=List (,) of Page | |Institution=List (,) of Page | ||
|Statut=String (allowed values=Condamnation définitive,Rapport officiel,Procédure judiciaire en cours,Enquête en cours,Non-lieu ou relaxe,Révélation de presse) | |Personnes=List (,) of Page | ||
|Citation=Text | |||
|Montant=Integer | |||
|Decision=String | |||
|Statut=String (allowed values=Condamnation définitive,Annulation ou censure,Rapport officiel,Procédure judiciaire en cours,Enquête en cours,Non-lieu ou relaxe,Révélation de presse,Déclaration publique) | |||
|Resume=Wikitext | |Resume=Wikitext | ||
|Sources=List (;) of URL | |Sources=List (;) of URL | ||
| Ligne 18 : | Ligne 22 : | ||
|Departement={{{Departement|}}} | |Departement={{{Departement|}}} | ||
|Institution={{{Institution|}}} | |Institution={{{Institution|}}} | ||
|Personnes={{{Personnes|}}} | |||
|Citation={{{Citation|}}} | |||
|Montant={{{Montant|}}} | |||
|Decision={{{Decision|}}} | |||
|Statut={{{Statut|}}} | |Statut={{{Statut|}}} | ||
|Resume={{{Resume|}}} | |Resume={{{Resume|}}} | ||
|Sources={{{Sources|}}} | |Sources={{{Sources|}}} | ||
|Verifie={{{Verifie|Non}}} | |Verifie={{{Verifie|Non}}} | ||
}}{{#default_form:Affaire}}{{#ifeq:{{{Verifie|Non}}}|Oui||<div style="border:1px solid #d33;background:#fee7e6;padding:.5em 1em;margin-bottom:1em">'''Fiche non vérifiée.''' Le contenu n'a pas encore été contrôlé par rapport aux sources | }}{{#default_form:Affaire}}{{#ifeq:{{{Verifie|Non}}}|Oui||<div style="border:1px solid #d33;background:#fee7e6;padding:.5em 1em;margin-bottom:1em">'''Fiche non vérifiée.''' Le contenu n'a pas encore été contrôlé par rapport aux sources.</div>}}{{#if:{{{Sources|}}}||<div style="border:1px solid #ac6600;background:#fef6e7;padding:.5em 1em;margin-bottom:1em">'''Aucune source renseignée.'''</div>}} | ||
{| class="wikitable" style="float:right;clear:right;width:22em;margin:0 0 1em 1em;font-size:90%" | {| class="wikitable" style="float:right;clear:right;width:22em;margin:0 0 1em 1em;font-size:90%" | ||
|+ {{PAGENAME}} | |+ {{PAGENAME}} | ||
| Ligne 29 : | Ligne 37 : | ||
| [[{{{Categorie|}}}]] | | [[{{{Categorie|}}}]] | ||
|- | |- | ||
! Date | ! Date | ||
| {{#if:{{{DateFaits|}}}|{{#time:j F Y|{{{DateFaits}}}}}}} | | {{#if:{{{DateFaits|}}}|{{#time:j F Y|{{{DateFaits}}}}}}} | ||
|- | {{#if:{{{Lieu|}}}|{{!}}- | ||
! Lieu | ! Lieu | ||
{{!}} {{{Lieu}}}{{#if:{{{Departement|}}}|<br /><small>{{{Departement}}}</small>}}}} | |||
|- | {{#if:{{{Institution|}}}|{{!}}- | ||
! Institution | ! Institution | ||
{{!}} {{#arraymap:{{{Institution|}}}|,|@@|[[@@]]|, }}}} | |||
{{#if:{{{Personnes|}}}|{{!}}- | |||
! Personnes citées | |||
{{!}} {{#arraymap:{{{Personnes|}}}|,|@@|[[@@]]|<br />}}}} | |||
{{#if:{{{Montant|}}}|{{!}}- | |||
! Montant en jeu | |||
{{!}} {{formatnum:{{{Montant}}}}} €}} | |||
{{#if:{{{Decision|}}}|{{!}}- | |||
! Décision / rapport | |||
{{!}} {{{Decision}}}}} | |||
|- | |- | ||
! Statut | ! Statut | ||
| Ligne 44 : | Ligne 61 : | ||
| {{#arraymap:{{{Sources|}}}|;|@@|[@@]|<br />}} | | {{#arraymap:{{{Sources|}}}|;|@@|[@@]|<br />}} | ||
|} | |} | ||
{{#if:{{{Citation|}}}|<div style="font-size:135%;font-family:Georgia,serif;border-left:5px solid #c0392b;padding:.6em 1em;margin:0 0 1em;background:#f8f9fa">« {{{Citation}}} »<div style="font-size:70%;font-family:sans-serif;color:#54595d;margin-top:.4em">— {{#arraymap:{{{Personnes|}}}|,|@@|[[@@]]|, }}{{#if:{{{DateFaits|}}}|, {{#time:j F Y|{{{DateFaits}}}}}}}</div></div>}} | |||
{{{Resume|}}} | {{{Resume|}}} | ||
[[Catégorie:Affaires]][[Catégorie:{{{Categorie|Sans catégorie}}}]]</includeonly> | [[Catégorie:Affaires]][[Catégorie:{{{Categorie|Sans catégorie}}}]]</includeonly> | ||
Dernière version du 5 octobre 2026 à 21:25
Ce modèle définit la table « Affaires ». Afficher la table. Fiche d'une affaire. Se remplit avec Formulaire:Affaire.