Adding custom fields for export to Mediawiki format

Hi there,

Is it possible to add custom fields for export to wikipedia {{cite}} formats? Right now, I have to keep this information in the 'Extra' field and paste it in manually, on top of all the other corrections that must be done when exporting.

Thanks,
  • Zotero does not support custom fields, but usually there is a way to accomplish what you need using existing fields. What specifically do you need the Wikipedia citation template export to do that it does not currently do? Are there missing fields? The exporter can be modified to create templates differently if there are specific avenues for improvement.
  • Hi there,

    Specifically, I'm thinking of the ref, first1, first2.. last1, last2.., editor1-first.. editor1-last..., their accompanying authorlink and editorlink, oclc fields. Also, when exporting books and other non-web entities, the url field has to be manually reinserted.

    Is there some documentation on how to modify the templates?
  • edited September 28, 2010
    That is all possible within the current framework.

    Translator documentation is at http://www.zotero.org/support/dev/creating_translators_for_sites and the links from there, but most of it is for site translators. You'll want to look at the current translator, "Wikipedia Citation Templates.js" in the translators directory of your Zotero data directory. Also see the MODS and RIS translators, which implement both import and export.

    Good luck! If you run into trouble, please post on the development mailing list, zotero-dev and we'll get things straightened out.

This is an old discussion that has not been active in a long time. Instead of commenting here, you should start a new discussion. If you think the content of this discussion is still relevant, you can link to it from your new discussion.