bib2wiki is a perl script to generate a template to cite scientific refeferences on this very website from its $\mathrm{B{\scriptstyle{IB}}\TeX}$ entry.
The rationale is explained in this blog post.
It is based on BibTeX::Parser.
# Usage: # To print everything: # bib2wiki -keys=all # # To print one key: # bib2wiki -keys=laussy04a # # To print several keys: # bib2wiki -keys=laussy04a,laussy05a,laussy06a
To extract the keys needed on a page, in edit mode, look for the list of templates at the end. It could look something like this:
Copy/past in a file (say templates) on which you run:
cat templates | perl -pe 's/Template:([a-zA-Z]+[0-9]{2}[a-z])\s\(edit\)\.*/\1/p' | sed '/Template/d' | awk -vORS=, '{ print $1 }' | sed 's/,$/\n/'
That will output on one line the list of templates needed:
Kirkwood35a,Kirkwood39a,Kirkwood42a,Kirkwood50a,Lopezcarreno18b,Percus58a,Salsburg53a,Sells53a,Thiele63a,Wertheim63a,Zerniker37a
You can then pass this to bib2wiki
bib2wiki -keys=Kirkwood35a,Kirkwood39a,Kirkwood42a,Kirkwood50a,Lopezcarreno18b,Percus58a,Salsburg53a,Sells53a,Thiele63a,Wertheim63a,Zerniker37a
which will return the list you have to upload:
kirkwood35a <u>[[Statistical Mechanics of Fluid Mixtures]]</u>. [[J. G. Kirkwood]] in [[J. Chem. Phys.]] [http://dx.doi.org/10.1063/1.1749657 '''3''':300] ([[1935]]). kirkwood39a <u>[[Molecular Distribution in Liquids]]</u>. [[J. G. Kirkwood]] in [[J. Chem. Phys.]] [http://dx.doi.org/10.1063/1.1750344 '''7''':919] ([[1939]]). kirkwood42a <u>[[The Radial Distribution Function in Liquids]]</u>. [[J. G. Kirkwood]] and [[E. Monroe]] in [[J. Chem. Phys.]] [http://dx.doi.org/10.1063/1.1723737 '''10''':394] ([[1942]]). etc.