Шаблон:Wikidata: различия между версиями

Материал из Маоистская Википедии
Перейти к навигации Перейти к поиску
м (1 версия импортирована)
 
(не показано 16 промежуточных версий 9 участников)
Строка 1: Строка 1:
{{#if:{{{2|}}}|{{{2}}}|{{#property:{{{1}}}}}}}<noinclude>
<includeonly>{{#invoke:Wikidata|formatStatements|property={{{1|}}}|value={{{2|}}}|plain={{{plain|false}}}}}</includeonly><noinclude>{{doc}}
 
[[Категория:Шаблоны:Викимедиа|{{PAGENAME}}]]
'''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.
 
[[bs:Šablon:Wikidata]]
[[he:תבנית:Wikidata]]
[[hr:Predložak:Wikidata]]
[[hu:Sablon:Wikidata]]
[[it:Template:Wikidata]]
[[sh:Šablon:Wikidata]]
[[sr:Шаблон:Wikidata]]
[[tr:Şablon:Wikidata]]
[[uk:Шаблон:Wikidata]]
[[uz:Andoza:Wikidata]]
</noinclude>
</noinclude>

Текущая версия на 10:45, 15 октября 2020


Документация