On Mon, Feb 27, 2017 at 7:02 PM, Fred at Nimble Books <[email protected]>
wrote:
> for a wikimedia wiki -- but I need to do it programmatically. any
> citation format is ok.
>
Just fetch the revision ID and last edit date from the API and generate the
citation yourself. The template [1] used by English Wikipedia is simply
@misc{ wiki:xxx,
author = "Wikipedia",
title = "<page name> --- Wikipedia{,} The Free Encyclopedia",
year = "<year of last edit>",
url = "\url{https://en.wikipedia.org/w/index.php?title=<page
title>&oldid=<revision id>}",
note = "[Online; accessed <current date>]"
}
[1] https://en.wikipedia.org/wiki/MediaWiki:Citethispage-content
_______________________________________________
Mediawiki-api mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api