Is there a PHP/Perl/Python/... library for picking citations out of an HTML file and rendering a nice list of references at the bottom, like in Wikipedia?

I'm developing a website with heavily-sourced content, and I'd really like to have automatically-generated lists of formatted references, like in Wikipedia. (Check out their philosophy page, and see how the superscript numbered citations interact with the references at the bottom. This is all dynamically generated, automatically ordered & linked.) They do it really well: the citations are linked to the references (which are backlinked to the citations), when you click on one of the links, the target is highlighted, etc. I'm tempted to build the site on MediaWiki just for this one feature, but it seems like overkill. Do I have any options?

  • What are your cons against MediaWiki and what will you use instead? – Michael Jun 27 '12 at 7:09
  • @Michael Against MediaWiki is my having to learn, customize, and depend on this big piece of software for a relatively small task. There's no "instead" yet, though I'd probably just write the HTML manually if it weren't for the pain of linking citations and keeping them updated. – Nick Jun 27 '12 at 7:15
  • So you have 3 choices: a) using media wiki and have this built-in feature b) use another free system and build that functionality yourself (which makes at least as much work as using media wiki) and c) do it all manually (which will result in way more work than using any existing system. – Michael Jun 27 '12 at 7:32
  • @Michael True. Do you know of another (smaller, lighter-weight) free system exists that has this functionality? – Nick Jun 27 '12 at 17:05

Wordpress, with the Netblog plugin, is almost good enough for my needs. Almost. It doesn't generate COinS output, it doesn't have links to the footnotes, and it doesn't automatically link DOIs. Maybe this will help someone else out.

| improve this answer | |

Jekyll-citation and Jekyll-scholar (see this SO post) are extentions to Jekyll/Octopress, Ruby-based generators for static sites.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.