Citoid/Enabling Citoid on your wiki/nl

Citoid is een automatisch gevulde generator voor het citeren die automatisch een sjabloon daarvoor aanmaakt van online bronnen gebaseerd op een URL en enkele academische referentie identifiers zoals DOIs, PMIDs, PMCIDs en ISBNs. Het is nu beschikbaar als een VisualEditor functie, en in de. Citoid gebruikt vertalingen door Zotero om een pagina link om te zetten in gedetailleerde informatie.







Stap 1: Het hulpmiddel citation inschakelen
De service Citoid gebruikt het hulpmiddel VisualEditor's Citation. Dit is al ingeschakeld op de meeste grote Wikipedia's en veel kleinere projecten. Als het is ingeschakeld dan zal het menu "" een of meer lokale sjablonen voor het citeren tonen als aanvulling op de "" en "". Als het niet is ingeschakeld dan moet u het eerst inschakelen, door de stappen in Citation hulpmiddel definitie te doorlopen. Een dergelijk sjabloon heeft de normale TemplateData nodig om te kunnen werken.



Stap 2: Citoid configureren
De extensie Citoid moet zijn geconfigureerd met gebruik van speciale TemplateData kaarten en een speciaal Citoid-specifiek bericht. Doe deze twee stappen in deze volgorde!



Stap 2.a: Maak een 'citoid' kaartwaarde aan voor elk 'citation' sjabloon
Omdat Citoid een eigen set velden heeft per documenttype (bijvoorbeeld 'journal' is 'publicationTitle' in Citoid, maar 'journal' in Template:Cite_journal), is er een koppeling nodig, genaamd 'citoid' in het  object van de TemplateData per citeer sjabloon. Deze koppeling is een verbinding tussen de velden in Citoid en de velden in het sjabloon. Deze 'map' moet de naam 'citoid' hebben, zodat de extensie Citoid ze kan vinden. Er is geen beperking van het aantal maps met unieke keys in het 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

Step 2.b: Configuring a special MediaWiki message
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.

Citoid has disappeared from my wiki
Please report any outage on Phabricator, and see that task for a temporary workaround.

The new cite button does not appear in the toolbar


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 appear
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.

My favorite site isn't recognized by Citoid and only gets basic information
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 are formatted differently on my wiki
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.

Many language wiki templates (pl, it, en) don't accept xx-XX style language codes
See for the related task. See the thread at to learn how different wikis decided to workaround this limitation.