Modèle:Wikidata : Différence entre versions

De Lagny-sur-Marne Wiki
Aller à : navigation, rechercher
(ebauche)
 
(stub in english)
Ligne 1 : Ligne 1 :
{{ Autres projets
+
{{#if:{{{2|}}}|{{{2}}}|{{#property:{{{1}}}}}}}<noinclude>
| wikidata    = [[Wikidata]] a des données relative à : '''''[[d:Special:ItemByTitle/frwiki/{{{1|{{PAGENAME}}}}}|{{{2|{{{1|{{PAGENAME}}}}}}}}]]'''''  
+
 
}}<noinclude>{{documentation}}<!-- Add categories and interwikis to the /doc sub-page --></noinclude>
+
'''Usage:'''
 +
 
 +
<nowiki>{{Wikidata| 1=Property | 2=Override }}</nowiki>
 +
 
 +
:1: Property from wikidata, mandatory
 +
:2: Override, could be a parameter of the template, then in the form of <nowiki>{{{parameter|}}}</nowiki>
 +
::: Only if the override is blank the data is retrieved from Wikidata.
 +
::: If the data on Wikidata is the same as the override it is advisable to remove the parameter value. Any update is on Wikidata will then be shown immediately.
 +
 
 +
:More parameters needed?
 +
:* A parameter (or parameters) to check if data on Wikidata is the same as the override, or if data on Wikidata is missing, could be used for alerting maintenance (for instance by the use of hidden categories)
 +
:::* Check data on Wikidata is the same as the override -> Category: unneeded Wikidata override parameter
 +
:::* Check data on Wikidata is missing -> Category: missing Wikidata value
 +
:::* Check Check data on Wikidata is different from the override -> Category: check Wikidata inconsistency
 +
:* Qualifier / sources etc.
 +
 
 +
</noinclude>

Version du 24 avril 2013 à 21:05

{{#property:{{{1}}}}}

Usage:

{{Wikidata| 1=Property | 2=Override }}

1: Property from wikidata, mandatory
2: Override, could be a parameter of the template, then in the form of {{{parameter|}}}
Only if the override is blank the data is retrieved from Wikidata.
If the data on Wikidata is the same as the override it is advisable to remove the parameter value. Any update is on Wikidata will then be shown immediately.
More parameters needed?
  • A parameter (or parameters) to check if data on Wikidata is the same as the override, or if data on Wikidata is missing, could be used for alerting maintenance (for instance by the use of hidden categories)
  • Check data on Wikidata is the same as the override -> Category: unneeded Wikidata override parameter
  • Check data on Wikidata is missing -> Category: missing Wikidata value
  • Check Check data on Wikidata is different from the override -> Category: check Wikidata inconsistency
  • Qualifier / sources etc.