Citoid/Enabling Citoid on your wiki/ar

تقوم Citoid بتوليد قوالب الاستشهاد بالمراجع تلقائياً، من شبكة الإنترنت إما بواسطة المصادر من على شبكة الانترنت على أساس المسار URL  أو بعض معرفات المراجع العلمية مثل دويس DOIs، و PMIDs، و PMCIDs، و ISBN. وهي متاحة حاليًا كميزة محرر مرئي، وفي. تستخدم الأداة مترجمين زوتيرو Zotero لتحويل رابط الصفحة إلى معلومات مفصلة.







الخطوة 1: تمكين أداة قالب الاقتباس
تستخدم الأداة أدوات الاستشهاد في المحرر المرئي. تم تمكين هذا بالفعل على الكثير من مواقع ويكيبيديا الكبيرة والعديد من المشاريع الصغيرة. إن تم تفعيل أداة الإقتباس، فإن قائمة "" ستسرد قالب أو أكثر من قوالب الاستشهاد المحلية، بالإضافة إلى "" و"". إذا لم يتم تمكين أداة الاقتباس، فأنت بحاجة إلى تمكينها قبل المتابعة، باتباع الخطوات الموضحة في القسم تعريف أداة الاقتباس. كل قالب من قوالب الاستشهاد يتطلب بيانات القالب لكي يعمل.



الخطوة 2: تكوين Citoid
The Citoid extension must be configured using special TemplateData maps and a special Citoid-specific message. It is important to do these two steps in order!



الخطوة2.أ : إنشاء قيم خريطة 'Citoid' لكل قالب استشهاد
Since Citoid has its own set of fields for each document type (for instance, the journal name is called 'publicationTitle' in Citoid, but 'journal' in Template:Cite_journal), you need to add a special mapping called 'citoid' in the  object of the TemplateData for each citation template. This special mapping creates a map between Citoid's fields and the template's fields. The map must be called 'citoid' to let the Citoid extension know which map to look for. An unlimited number of maps with unique keys are allowed in the maps object. Note that you can only see TemplateData maps in edit mode; they are not visible in the TemplateData table. Also note that if you recently created TemplateData for your wiki by copying it from another wiki, it probably already includes the Citoid maps, so you can just skip this step after verifying.

The most up-to-date maps objects that are compatible with the Citoid extension are on the English Wikipedia:
 * w:Template:Cite news/doc
 * w:Template:Cite journal/doc
 * w:Template:Cite web/doc
 * w:Template:Cite book/TemplateData
 * w:Template:Citation/doc



الخطوة 2.ب: تكوين رسالة ميدياويكي خاصة
You'll need to configure a special MediaWiki: namespace message,. This message maps the 34 native Citoid types (, ,  ,  ,  , etc.) to the appropriate templates (Cite web, Cite book, Cite journal, etc.).

You should match a local citation template to every single Citoid type. If no template is matched, then Citoid will not work. It's better to have a bad match than none at all. For example, your wiki may not have a special template for citing the liner notes in the packaging for a DVD, so consider using a template designed for a book or a video in that case. You may consider using a generic template, such as en.wiki's Template:Citation, as a catch-all for types if there is no good match for the type of source you are mapping.

An example namespace message can be found on English Wikipedia: https://en.wikipedia.org/wiki/MediaWiki:Citoid-template-type-map.json.

استكشاف الأخطاء وإصلاحها


زر الاستشهاد الجديد لا يظهر في شريط الأدوات


When you create the MediaWiki message in step 2.b, the previous cite drop-down menu (File:VisualEditor_-_Cite_Pulldown.png) should be replaced by a new button for the citoid service in the toolbar menu. If the new button does not appear in the toolbar, then there may be a problem with MediaWiki:Citoid-template-type-map.json. If this page does not exist locally, or if the JSON on that page is invalid, then citoid will not work. Alternatively, you may need to refresh your JavaScript cache.



ظهور استشهادات فارغة
Empty references most commonly appear when you are trying to insert a citation template that has no maps data. This problem also appears if the template has maps data, but that data is not reaching the MediaWiki API. If the maps object is present in TemplateData block in the template's documentation, then try making a "null edit" on the template. If that doesn't work, then there may be an issue with the map itself.



لم يتم التعرف على موقعي المفضل للاستشهاد من قبل Citoid، ويحصل فقط على معلومات أساسية
The Citoid service relies on the brilliant Zotero community for much of the "magic", as Zotero translators need to be written for each site. You can see a list of all Zotero translators at https://github.com/zotero/translators. Right now, Zotero best supports English-language sources. We need your help to improve coverage of other sites. You can write your own Zotero translator. Start by looking at an existing translator of a similar website, and by reading the tutorial at Citoid/Creating Zotero translators.



التواريخ يتم تنسيقها بشكل مختلف في الويكي الخاصة بي
Dates with full information (month, year, and day) are in ISO format, which is an international standard. If the community doesn't like the way this looks to the user, it is possible to edit the citation template to format the ISO dates to something that is standard in your language. For instance, you can add logic to the template such that if the date is detected to be in ISO yyyy-mm-dd format, the date is reformatted *to appear* to be dd/mm/yyyy on the page. However, if you do this, the underlying data (i.e. when you edit the wikitext, or the form in VisualEditor) will still remain the same.

Dates with only month and year are in also in ISO (YYYY-MM) but these are not accepted by some citation templates. See.



عدد كبير من نمادج الويكي (pl, it, en) لا تستخدم سلم xx-XX لتنسيق رموز اللغات
See for the related task. See the thread at to learn how different wikis decided to workaround this limitation.



انظر أيضا

 * Zotero tutorial
 * Zotero translation server -- xpcshell-based Zotero translation server, and zotero-node, an abandoned nodejs equivalent
 * Valid field names for each item type
 * Zotero field mappings
 * Research:Citoid support for Wikimedia references
 * https://www.zotero.org/support/dev/translators/testing
 * Learn how to write a translator with Sebastian Karcher, Zotero (video, slides, links)
 * قائمة مواقع الويب مع مترجمي زيترو
 * Examples of different itemType URLs
 * James Forrester talks Citoid and Zotero at m:WikiCite 2017