Citoid/Enabling Citoid on your wiki/pt-br

Citoid é um gerador de citações que cria automaticamente uma predefinição de citação a partir de fontes online baseadas em um URL ou em alguns identificadores de referência acadêmica, como  DOIs, PMIDs ou PMCIDs. Planeja-se, ainda, suporte a ISBNs. Atualmente, está disponível como uma funcionalidade do Editor Visual, mas estará disponível no editor de código-fonte no futuro. Citoid usa tradutores Zotero para converter um link de página em informações detalhadas.

Passo 1: Ativar a ferramenta de predefinição de citações
O serviço Citoid utiliza a Ferramenta de Citações do Editor Visual. Ele já se encontra ativo nas Wikipédias maiores e em outros projetos menores. Se a ferramenta de citações estiver ativa, o menu "" listará uma ou mais predefinições locais de citação, além das opções "" e "". Se ela não estiver ativa, você deverá habilitá-la antes de prosseguir. Cada predefinição de citação requer TemplateData normal para funcionar.

Passo 2: Configurar o Citoid
A extensão Citoid deve ser configurada usando mapas TemplateData especiais e uma mensagem especial específica ao Citoid. É importante que você siga estes dois passos na ordem!

Passo 2.a: Criar um mapa "Citoid" a cada predefinição Citar
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 special TemplateData for Citoid. This special TemplateData creates a map between Citoid's fields and the template's fields. Calling the map 'Citoid' lets 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.

The most up-to-date maps objects that are compatible with the Citoid extension are on the beta version of Wikipedia:
 * http://en.wikipedia.beta.wmflabs.org/wiki/Template:Cite_news/doc
 * http://en.wikipedia.beta.wmflabs.org/wiki/Template:Cite_journal/doc
 * http://en.wikipedia.beta.wmflabs.org/wiki/Template:Cite_web/doc
 * http://en.wikipedia.beta.wmflabs.org/wiki/Template:Cite_book/doc
 * http://en.wikipedia.beta.wmflabs.org/wiki/Template:Citation/doc

Step 2.b: Configuring a special MediaWiki message
You'll need to configure a special MediaWiki: namespace message, MediaWiki:Citoid-template-type-map.json. This message maps the native Citoid types (website, book, journalArticle) to the appropriate template (Cite web, Cite book, Cite journal).

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.

A sample namespace message is found here: Citoid/MediaWiki:Citoid-template-type-map.json.

Troubleshooting

 * Main: Citoid

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 favourite site isn't recognised by Citoid and only gets basic information

 * Main: Citoid/Determining if a URL has a translator in Zotero

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 general development framework instructions at https://www.zotero.org/support/dev/translators/framework.