ImportReferences: Difference between revisions
Instructions for adding citations in Wiki |
Added the WikiAuthorYearCitations script |
||
| Line 2: | Line 2: | ||
[[File:ZoteroExportWiki.png|thumb|A dialog showing how to export citations from Zotero in MediaWiki form]] | [[File:ZoteroExportWiki.png|thumb|A dialog showing how to export citations from Zotero in MediaWiki form]] | ||
To make citing of the references easier, it is good to add a citation key to the references. The citation keys can be added manually, but for a larger list of references, the | To make citing of the references easier, it is good to add a citation key to the references. The citation keys can be added manually, but for a larger list of references, the [https://github.com/UniVaasaDigiEco/Scripts/blob/main/WikiAuthorYearCitations.py WikiAuthorYearCitations.py] -script can be used. | ||
The script takes two input parameters, the name of the input and output files. The input file should be a Wikimedia-formatted list of references, exported from Zotero, for example. The same list of references will be written in the output file in Wikimedia format, supplemented with unique author-year citation keys. The script also removes duplicates from the list of references. | |||
The citations can be copy-pasted in the Wiki-page and cited using the following syntax: | |||
<code>< ref name=Author_year / ></code> | |||
Revision as of 12:41, 18 January 2022
References can be imported semi-automatically using the following instructions. First collect the references using suitable reference management systems, such as Zotero. Then export the references from the reference management system in Wikipedia format. From Zotero, they references can be exported using using Export Collection function. Selecting the export format as "Wikipedia Citation Templates", the references are exported in Wikipedia format, and can be copy-pasted in Wiki.

To make citing of the references easier, it is good to add a citation key to the references. The citation keys can be added manually, but for a larger list of references, the WikiAuthorYearCitations.py -script can be used.
The script takes two input parameters, the name of the input and output files. The input file should be a Wikimedia-formatted list of references, exported from Zotero, for example. The same list of references will be written in the output file in Wikimedia format, supplemented with unique author-year citation keys. The script also removes duplicates from the list of references.
The citations can be copy-pasted in the Wiki-page and cited using the following syntax:
< ref name=Author_year / >