לדלג לתוכן

תבנית:ויקינתונים: הבדלים בין גרסאות בדף

מתוך צפונות ויקי
מאין תקציר עריכה
שורה 1: שורה 1:
{{#if:{{{2|}}}|{{{2}}}|{{#property:{{{1}}}}}}}<noinclude>
{{#if:{{{2|}}}|{{{2}}}|{{#property:{{{1}}}}}}}<noinclude>
<div class="mw-content-ltr">
תבנית זו מיועדת בעיקר לשימוש בתבניות, ומאפשרת למלא פרמטר מוויקינתונים אם הפרמטר לא מוזן בוויקיפדיה העברית.
'''Usage:'''


<nowiki>{{Wikidata| 1=Property | 2=Override }}</nowiki>
'''שימוש''':
::<nowiki>{{ויקינתונים| 1=קביעה | 2=דריסה }}</nowiki>
#שם של קביעה/תכונה מוויקינתונים. (חובה)
#דריסה - תוכן השדה המחליף את הקביעה מוויקינתונים. יכול להיות מהצורה <nowiki>{{{פרמטר|}}}</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.
</div>
</noinclude>
</noinclude>

גרסה מ־11:18, 31 במרץ 2013

{{#property:{{{1}}}}} תבנית זו מיועדת בעיקר לשימוש בתבניות, ומאפשרת למלא פרמטר מוויקינתונים אם הפרמטר לא מוזן בוויקיפדיה העברית.

שימוש:

{{ויקינתונים| 1=קביעה | 2=דריסה }}
  1. שם של קביעה/תכונה מוויקינתונים. (חובה)
  2. דריסה - תוכן השדה המחליף את הקביעה מוויקינתונים. יכול להיות מהצורה {{{פרמטר|}}} (ואז אם ממלאים את פרמטר - אז הנתון יהיה מקומי, אחרת יילקח מוויקינתונים). אם התוכן של הפרמטר זהה לתוכן של קביעה מוויקינתונים מומלץ להסיר התוכן שמילאנו לפרמטר בצורה מקומית על מנת שערך הקביעה יתעדכן כאשר הנתון יתעדכן בוויקינתונים.