« Modèle:Infobox/Ligne mixte site web optionnelle » : différence entre les versions

De Lagny-sur-Marne Wiki
Aller à la navigation Aller à la recherche
0x010D (discussion | contributions)
option "texte libre" pour faciliter l'intégration d'anciens modèles, option "non pertinent" pour facilitier la cohabitation avec Wikidata
Aucun résumé des modifications
 
(13 versions intermédiaires par un autre utilisateur non affichées)
Ligne 1 : Ligne 1 :
<includeonly>{{#if: {{{texte libre|}}} |<!--
<includeonly>{{#if: {{{texte libre|}}} |<!--


valeur locale contenant du texte en plus de l'URL (transitionnel)<!--
valeur locale contenant du texte en plus de l'URL (transitionnel)-->
<th scope="row" {{#if:{{{3|}}}|width{{=}}"{{{3}}}%"}}>{{#if:{{{1|}}}|{{{1}}}|[[Site web]]}}
<th scope="row" {{#if:{{{3|}}}|width="{{{3}}}%"}}>{{#if:{{{1|}}}|{{{1}}}|[[Site web]]}}
<td {{#if:{{{4|}}}|colspan{{=}}"{{{4}}}"}}>{{{texte libre}}}
<td {{#if:{{{4|}}}|colspan="{{{4}}}"}}>{{{texte libre}}}
<tr><!--  
<tr>|<!--  


autres cas
autres cas
-->{{#ifeq: {{{2|}}} | pas pertinent || {{#if {{{2|}}} | <!--
-->{{#ifeq: {{{2|}}} | pas pertinent || {{#if: {{{2|}}} | <!--


valeur locale -->
valeur locale -->
<th scope="row" {{#if:{{{3|}}}|width{{=}}"{{{3}}}%"}}>{{#if:{{{1|}}}|{{{1}}}|[[Site web]]}}
<th scope="row" {{#if:{{{3|}}}|width="{{{3}}}%"}}>{{#if:{{{1|}}}|{{{1}}}|[[Site web]]}}
<td {{#if:{{{4|}}}|colspan{{=}}"{{{4}}}"}}>{{joli lien|lien={{{2}}}}}
<td {{#if:{{{4|}}}|colspan="{{{4}}}"}}>{{{2}}}
<tr>|<!--
<tr>|
 
valeur Wikidata -->
{{#ifeq: {{{wikidata|}}} | non || {{#ifexpr: {{#invoke: wikidata |numOfClaims | property=P856 |excludespecial= true }} >= 1  |
<th scope="row" {{#if:{{{3|}}}|width{{=}}"{{{3}}}%"}}>{{#if:{{{1|}}}|{{{1}}}|[[Site web]]}}
<td {{#if:{{{4|}}}|colspan{{=}}"{{{4}}}"}}>{{joli lien|lien={{#invoke: wikidata | formatStatements| property=P856|rank=one}}}}[[Catégorie:Page utilisant des données de Wikidata/P856]]{{#ifexpr: {{#invoke: wikidata |numOfClaims | property=P31}} >= 1 | [[Catégorie:Données Wikidata partiellement inutilisées/P856]]}} }} }}
<tr>}} }} }}</includeonly><noinclude>{{Documentation}}</noinclude>
<tr>}} }} }}</includeonly><noinclude>{{Documentation}}</noinclude>

Dernière version du 23 septembre 2017 à 19:50