ImportReferences: Difference between revisions

From IcingWiki
Jump to navigation Jump to search
Uwasa (talk | contribs)
test
Uwasa (talk | contribs)
Updated Zotero quick copy method
Line 1: Line 1:
[[File:ZoteroExportWiki.png|thumb|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 [https://www.zotero.org/ 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.
=== Adding citations directly from Zotero ===
[[File:ZoteroQuickCopy.png.png|thumb|'''Figure 1.''' Zotero Quick copy configuration dialog]]
The easiest way to add citations to Wiki is to do it directly from a reference management system, such as Zotero. First configure the Zotero quick copy configuration using the preferences dialog by selecting ''Preferences'' from ''Edit'' menu, as shown in the Figure 1 on the right. Configure ''Wikipedia Citation Templates'' from the export options. Having done this, you can drag the citations directly from your Zotero collections into the Basic reference dialog opened from ''Cite'' menu, shown in Figure 3.  


=== Using visual editor ===
=== Batch converting the list of references ===
[[File:InsertReference.png|alt=A dialog for adding a citation|thumb|A dialog for adding a citation]]
[[File:ZoteroExportWiki.png|thumb|'''Figure 2.''' A dialog showing how to export citations from Zotero in MediaWiki form]]A large amount of references can be also batch converted into Wikipedia format and then added by copy-pasting them from the text file. To do this, first collect the references using suitable reference management systems, such as [https://www.zotero.org/ 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, see Figure 2.
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.


Here are some sample citations <ref name=":0">{{Cite journal| doi = 10.1109/LGRS.2009.2032304| issn = 1558-0571| volume = 7| issue = 2| pages = 246–250| last1 = Laird| first1 = Claude M.| last2 = Blake| first2 = William A.| last3 = Matsuoka| first3 = Kenichi| last4 = Conway| first4 = Howard| last5 = Allen| first5 = Christopher T.| last6 = Leuschen| first6 = Carl J.| last7 = Gogineni| first7 = Sivaprasad| title = Deep ice stratigraphy and basal conditions in central west antarctica revealed by coherent radar| journal = IEEE Geoscience and Remote Sensing Letters| date = 2010-04}}</ref><ref>{{Cite journal| doi = 10.1109/TMI.2009.2036258| issn = 1558-254X| volume = 29| issue = 4| pages = 998–1011| last1 = Figueiredo| first1 = Isabel N.| last2 = Figueiredo| first2 = Pedro N.| last3 = Stadler| first3 = Georg| last4 = Ghattas| first4 = Omar| last5 = Araujo| first5 = Adérito| title = Variational image segmentation for endoscopic human colonic aberrant crypt foci| journal = IEEE Transactions on Medical Imaging| date = 2010-04}}</ref> and re use of <ref name=":0" />. Let's add one more directly from Zotero <ref>{{Cite journal| volume = 9| pages = 97| last = Seifert| first = Henry| title = Technical requirements for rotor blades operating in cold climate| journal = BOREAS VI| date = 2003}}</ref>.  
=== Adding citations in visual editor ===
[[File:InsertReference.png|alt=A dialog for adding a citation|thumb|'''Figure 3.''' 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 or drag it directly from Zotero. If the citation is already in the list of references, you can re-use it by selecting ''Re-Use'' from the ''Cite'' menu.
 
Here are some sample citations <ref name=":0">{{Cite journal| doi = 10.1109/LGRS.2009.2032304| issn = 1558-0571| volume = 7| issue = 2| pages = 246–250| last1 = Laird| first1 = Claude M.| last2 = Blake| first2 = William A.| last3 = Matsuoka| first3 = Kenichi| last4 = Conway| first4 = Howard| last5 = Allen| first5 = Christopher T.| last6 = Leuschen| first6 = Carl J.| last7 = Gogineni| first7 = Sivaprasad| title = Deep ice stratigraphy and basal conditions in central west antarctica revealed by coherent radar| journal = IEEE Geoscience and Remote Sensing Letters| date = 2010-04}}</ref><ref>{{Cite journal| doi = 10.1109/TMI.2009.2036258| issn = 1558-254X| volume = 29| issue = 4| pages = 998–1011| last1 = Figueiredo| first1 = Isabel N.| last2 = Figueiredo| first2 = Pedro N.| last3 = Stadler| first3 = Georg| last4 = Ghattas| first4 = Omar| last5 = Araujo| first5 = Adérito| title = Variational image segmentation for endoscopic human colonic aberrant crypt foci| journal = IEEE Transactions on Medical Imaging| date = 2010-04}}</ref> and re use of <ref name=":0" />. Let's add one more directly from Zotero <ref>{{Cite journal| volume = 9| pages = 97| last = Seifert| first = Henry| title = Technical requirements for rotor blades operating in cold climate| journal = BOREAS VI| date = 2003}}</ref> <ref>{{Cite journal| doi = 10.1016/j.coldregions.2006.06.005| issn = 0165-232X| volume = 46| issue = 2| pages = 125–131| last1 = Homola| first1 = Matthew C.| last2 = Nicklasson| first2 = Per J.| last3 = Sundsbø| first3 = Per A.| title = Ice sensors for wind turbines| journal = Cold Regions Science and Technology| accessdate = 2017-08-04| date = 2006-11-01| url = http://www.sciencedirect.com/science/article/pii/S0165232X06000760}}</ref>.  


=== Using Raw editor, and author year citation format ===
=== Using Raw editor, and author year citation format ===

Revision as of 14:13, 18 January 2022

Adding citations directly from Zotero

Figure 1. Zotero Quick copy configuration dialog

The easiest way to add citations to Wiki is to do it directly from a reference management system, such as Zotero. First configure the Zotero quick copy configuration using the preferences dialog by selecting Preferences from Edit menu, as shown in the Figure 1 on the right. Configure Wikipedia Citation Templates from the export options. Having done this, you can drag the citations directly from your Zotero collections into the Basic reference dialog opened from Cite menu, shown in Figure 3.

Batch converting the list of references

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

A large amount of references can be also batch converted into Wikipedia format and then added by copy-pasting them from the text file. To do this, 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, see Figure 2.

Adding citations in visual editor

A dialog for adding a citation
Figure 3. 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 or drag it directly from Zotero. If the citation is already in the list of references, you can re-use it by selecting Re-Use from the Cite menu.

Here are some sample citations [1][2] and re use of [1]. Let's add one more directly from Zotero [3] [4].

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

References

  1. 1.0 1.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)
  2. Figueiredo, Isabel N.; Figueiredo, Pedro N.; Stadler, Georg; Ghattas, Omar; Araujo, Adérito (2010-04). "Variational image segmentation for endoscopic human colonic aberrant crypt foci". IEEE Transactions on Medical Imaging. 29 (4): 998–1011. doi:10.1109/TMI.2009.2036258. ISSN 1558-254X. Check date values in: |date= (help)
  3. Seifert, Henry (2003). "Technical requirements for rotor blades operating in cold climate". BOREAS VI. 9: 97.
  4. Homola, Matthew C.; Nicklasson, Per J.; Sundsbø, Per A. (2006-11-01). "Ice sensors for wind turbines". Cold Regions Science and Technology. 46 (2): 125–131. doi:10.1016/j.coldregions.2006.06.005. ISSN 0165-232X. Retrieved 2017-08-04. C1 control character in |pages= at position 5 (help)