« Modèle:FicheDiffusionDistributionComplet » : différence entre les versions
Apparence
mAucun résumé des modifications |
mAucun résumé des modifications |
||
| (19 versions intermédiaires par le même utilisateur non affichées) | |||
| Ligne 1 : | Ligne 1 : | ||
<includeonly> | <includeonly> | ||
<div class="fiche-dd-complet" style="margin-top:0. | <div class="fiche-dd-complet" style="margin-top:0.1em; margin-bottom:0.1em;"> | ||
{{DISPLAYTITLE:{{PAGENAME}}}} | {{DISPLAYTITLE:{{PAGENAME}}}} | ||
<!-- Titre --> | <!-- Titre --> | ||
<h2 style="margin:0;"> | <h2 style="margin:0;"> | ||
| Ligne 12 : | Ligne 10 : | ||
{{#if:{{#show:{{FULLPAGENAME}}|?Sigle|link=none}}| | {{#if:{{#show:{{FULLPAGENAME}}|?Sigle|link=none}}| | ||
<span style="font-weight:normal;"> ({{#show:{{FULLPAGENAME}}|?Sigle|link=none}})</span> | <span style="font-weight:normal;"> ({{#show:{{FULLPAGENAME}}|?Sigle|link=none}})</span> | ||
}} | }}</h2> | ||
</h2> | |||
<!-- Types --> | <!-- Types --> | ||
{{#if:{{#show:{{FULLPAGENAME}}|?TypeStructure|link=none}}| | {{#if:{{#show:{{FULLPAGENAME}}|?TypeStructure|link=none}}| | ||
<p style="margin:0.25em 0 0 0;"> | <p style="margin:0.25em 0 0 0;"><strong>Activité(s) :</strong>{{#show:{{FULLPAGENAME}}|?TypeStructure|link=none|sep=, }}</p> | ||
}} | }} | ||
<!-- Coordonnées / adresse principale --> | <!-- Coordonnées / adresse principale --> | ||
{{#if:{{#show:{{FULLPAGENAME}}|?Adresse_complete}}{{#show:{{FULLPAGENAME}}|?Ville}}{{#show:{{FULLPAGENAME}}|?Pays}}| | {{#if:{{#show:{{FULLPAGENAME}}|?Adresse_complete}}{{#show:{{FULLPAGENAME}}|?Ville}}{{#show:{{FULLPAGENAME}}|?Pays}}| | ||
| Ligne 52 : | Ligne 37 : | ||
</p> | </p> | ||
}} | }} | ||
<!-- Description --> | |||
{{#if:{{#show:{{FULLPAGENAME}}|?DescriptionStructure|link=none}}| | |||
<div style="margin:0.6em 0 0 0;"><strong>Description :</strong><div style="margin-top:0.15em;"> | |||
{{#show:{{FULLPAGENAME}}|?DescriptionStructure|link=none}} | |||
</div> | |||
</div> | |||
}} | |||
<!-- Entrepôt --> | <!-- Entrepôt --> | ||
{{#if:{{#show:{{FULLPAGENAME}}|?Adresse_entrepot}}{{#show:{{FULLPAGENAME}}|?Ville_entrepot}}{{#show:{{FULLPAGENAME}}|?Code_postal_entrepot}}| | {{#if:{{#show:{{FULLPAGENAME}}|?Adresse_entrepot}}{{#show:{{FULLPAGENAME}}|?Ville_entrepot}}{{#show:{{FULLPAGENAME}}|?Code_postal_entrepot}}| | ||
| Ligne 65 : | Ligne 56 : | ||
</p> | </p> | ||
}} | }} | ||
<!-- Contact --> | <!-- Contact --> | ||
{{#if:{{#show:{{FULLPAGENAME}}|?Site_web}}{{#show:{{FULLPAGENAME}}|?E-mail}}{{#show:{{FULLPAGENAME}}|?Telephone}}{{#show:{{FULLPAGENAME}}|?Coordonnees}}| | {{#if:{{#show:{{FULLPAGENAME}}|?Site_web}}{{#show:{{FULLPAGENAME}}|?E-mail}}{{#show:{{FULLPAGENAME}}|?Telephone}}{{#show:{{FULLPAGENAME}}|?Coordonnees}}|<p style="margin:0.6em 0 0 0; margin-bottom:0;"> | ||
{{#if:{{#show:{{FULLPAGENAME}}|?Site_web|link=none}}| | {{#if:{{#show:{{FULLPAGENAME}}|?Site_web|link=none}}| | ||
<strong>Site :</strong> {{#show:{{FULLPAGENAME}}|?Site_web|link=none}} | <strong>Site :</strong> {{#show:{{FULLPAGENAME}}|?Site_web|link=none}} | ||
| Ligne 86 : | Ligne 75 : | ||
</p> | </p> | ||
}} | }} | ||
<!-- Référencé par ( | <!-- Référencé par (maisons d’édition) --> | ||
{{#vardefine:dd_c_diff|{{#ask:[[Catégorie:Maisons d’édition]][[Diffuseur::{{FULLPAGENAME}}]]|format=count}}}} | |||
{{#ask: | {{#vardefine:dd_c_dis |{{#ask:[[Catégorie:Maisons d’édition]][[Distributeur::{{FULLPAGENAME}}]]|format=count}}}} | ||
{{#vardefine:dd_c_num |{{#ask:[[Catégorie:Maisons d’édition]][[Distributeur_Numerique::{{FULLPAGENAME}}]]|format=count}}}} | |||
{{#vardefine:dd_c_aud |{{#ask:[[Catégorie:Maisons d’édition]][[Distributeur_Audio::{{FULLPAGENAME}}]]|format=count}}}} | |||
{{#vardefine:dd_total|{{#expr: {{#var:dd_c_diff}} + {{#var:dd_c_dis}} + {{#var:dd_c_num}} + {{#var:dd_c_aud}} }} }} | |||
{{#ifexpr: {{#var:dd_total}} > 0 | <h3 style="margin-top:0.9em; margin-bottom:0.2em;">Maisons d’édition associées</h3> | |||
{{#ifexpr: {{#var:dd_c_diff}} > 0 | <h4 style="margin:0.5em 0 0.15em 0;">Diffuseur de</h4> | |||
{{#ask: | |||
[[Catégorie:Maisons d’édition]] | |||
[[Diffuseur::{{FULLPAGENAME}}]] | |||
| | | format=template | ||
| template=FicheMaisonNom | |||
| mainlabel=page | |||
{{#ask: | | link=none | ||
| sort=Nom | |||
| order=ascending | |||
| limit=500 | |||
| intro=<ul class="liste-dd-maisons" style="columns:3; -moz-columns:3; -webkit-columns:3; column-gap:1.5em;"> | |||
| outro=</ul> | |||
}} | |||
}} | |||
{{#ifexpr: {{#var:dd_c_dis}} > 0 | <h4 style="margin:0.7em 0 0.15em 0;">Distributeur de</h4> | |||
{{#ask: | |||
[[Catégorie:Maisons d’édition]] | |||
}} | [[Distributeur::{{FULLPAGENAME}}]] | ||
{{#ask: | | format=template | ||
| template=FicheMaisonNom | |||
| mainlabel=page | |||
| link=none | |||
| sort=Nom | |||
| order=ascending | |||
| limit=500 | |||
| intro=<ul class="liste-dd-maisons" style="columns:3; -moz-columns:3; -webkit-columns:3; column-gap:1.5em;"> | |||
| outro=</ul> | |||
| | }} | ||
}} | |||
{{#ifexpr: {{#var:dd_c_num}} > 0 | <h4 style="margin:0.7em 0 0.15em 0;">Distributeur numérique de</h4> | |||
{{#ask: | {{#ask: | ||
[[Catégorie:Maisons d’édition]] | |||
[[Distributeur_Numerique::{{FULLPAGENAME}}]] | |||
| format=template | |||
| template=FicheMaisonNom | |||
| mainlabel=page | |||
| link=none | |||
| sort=Nom | |||
| order=ascending | |||
| limit=500 | |||
| intro=<ul class="liste-dd-maisons" style="columns:3; -moz-columns:3; -webkit-columns:3; column-gap:1.5em;"> | |||
| outro=</ul> | |||
}} | |||
}} | |||
{{# | {{#ifexpr: {{#var:dd_c_aud}} > 0 | <h4 style="margin:0.7em 0 0.15em 0;">Distributeur audio de</h4> | ||
{{# | {{#ask: | ||
[[ | [[Catégorie:Maisons d’édition]] | ||
[[Distributeur_Audio::{{FULLPAGENAME}}]] | |||
| format=template | |||
| template=FicheMaisonNom | |||
| mainlabel=page | |||
| link=none | |||
| sort=Nom | |||
| order=ascending | |||
| limit=500 | |||
| intro=<ul class="liste-dd-maisons" style="columns:3; -moz-columns:3; -webkit-columns:3; column-gap:1.5em;"> | |||
| outro=</ul> | |||
}} | }} | ||
}} | }} | ||
</div> | }} | ||
<!-- Bouton de modification via formulaire, visible seulement | |||
sur les pages concernées (namespace ici DiffusionDistribution) et admins --> | |||
<div class="fiche-diffusiondistribution-bouton-modif" style="text-align:center; margin-top:1em; margin-bottom:0.5em;">{{#ifeq:{{NAMESPACE}}|DiffusionDistribution|{{#ifingroup:contributeurs_diffusiondistribution,sysop|[[Special:FormEdit/DiffusionDistribution/{{FULLPAGENAME}}|<span class="mw-ui-button mw-ui-progressive" style="font-size:110%; padding:0.55em 0.95em; border-radius:8px; display:inline-block;">Modifier cette fiche</span>]]}}}}</div> | |||
</div> | </div> | ||
</includeonly> | </includeonly> | ||
Dernière version du 18 décembre 2025 à 09:35
(Documentation.)