[Tex/LaTex] Citing Wikipedia with APA Formatting and BibTeX

apa6bibliographiesbibtex

Wikipedia's entry on citing Wikipedia says that APA formatting requires that their page on plagiarism be formatted as:

Plagiarism. (n.d.). In Wikipedia. Retrieved August 10, 2004, from http://en.wikipedia.org/wiki/Plagiarism

In particular, the APA format requires the article name to take the place of the author.

To cite Wikipedia with BibTeX, they say to use the code:

@misc{ wiki:###,
   author = "Wikipedia",
   title = "Plagiarism --- {W}ikipedia{,} The Free Encyclopedia",
   year = "2004",
   url = "\url{http://en.wikipedia.org/w/index.php?title=Plagiarism&oldid=5139350}",
   note = "[Online; accessed 22-July-2004]"
 }

This however, puts Wikipedia as the author, among other things (and is therefore not in APA format).

The package I am using is apacite and the code I have for my bibliography is:

\usepackage{apacite}
\bibliographystyle{apacite}
\bibliography{FinalRoughDraft}

I have tried things like setting putting the title of the article in the author = ... field, but if I put, say, author = Estimation lemma, the output in the author position is "lemma, E." I have also tried putting quotation marks around the title, but this does not work either.

Is there any way to get around this?

Best Answer

Let's have a TeX and a BIB file:

Code

wiki.tex

\documentclass{article}
\usepackage{url,apacite}    % package url to prevent horrible linebreaks
\bibliographystyle{apacite}
\begin{document}
\cite{wiki:xxx}
\bibliography{wiki}
\end{document}

wiki.bib

@misc{ wiki:xxx,
  author = {{Estimation lemma}},
  title = "Estimation lemma --- {W}ikipedia{,} The Free Encyclopedia",
  year = "2010",
  url = "http://en.wikipedia.org/w/index.php?title=Estimation_lemma&oldid=375747928",
  note = "[Online; accessed 29-September-2012]"
}

Output

compiled example

Notes

Notice the use of double braces: {{Estimation lemma}}.
The inner pair hides these two words from BibTeX so that it only "sees" one string.