ImportReferences: Difference between revisions

From IcingWiki
Jump to navigation Jump to search
Uwasa (talk | contribs)
Updated the visual editor instructions
Uwasa (talk | contribs)
No edit summary
Line 15: Line 15:


<code>< ref name=Author_year / ></code>
<code>< ref name=Author_year / ></code>
Like this <ref name="Laird_2010"/>


=== References ===
=== References ===

Revision as of 13:16, 18 January 2022

A dialog showing how to export citations from Zotero in MediaWiki form

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.

Using visual editor

A dialog for adding a citation
A dialog for adding a citation

With visual editor, the adding of citation is rather simple. First add References list from the Insert-menu in the end of the page. After this, the reference can be easily added by starting to type < ref in the visual editor or select Basic from the Cite menu. Then copy and paste suitable Wikimedia formatted reference data into the dialog box. If the citation is already in the list of references, you can re-use it by selecting Re-Use from the Cite menu.

Using Raw editor, and author year citation format

It seems that the methods for using citations with Wikimedia editor are great, and nothing else is usually needed. Here is still some script which can be useful when entering a large number of citations in a page.

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 / >

Like this [1]

References

  1. Laird, Claude M.; Blake, William A.; Matsuoka, Kenichi; Conway, Howard; Allen, Christopher T.; Leuschen, Carl J.; Gogineni, Sivaprasad (2010-04). "Deep ice stratigraphy and basal conditions in central west antarctica revealed by coherent radar". IEEE Geoscience and Remote Sensing Letters. 7 (2): 246–250. doi:10.1109/LGRS.2009.2032304. ISSN 1558-0571. Check date values in: |date= (help)

Cite error: <ref> tag with name "Figueiredo_2010" defined in <references> is not used in prior text.
Cite error: <ref> tag with name "Zirizzotti_2010" defined in <references> is not used in prior text.