See this example properly formatted in the QUT Cite tool.
Standard in-text citation examples are in Getting started - In-text citation.
Author. Year. Title. Edited by Editor. Publisher.
Shakespeare, William. 2006. Romeo and Juliet. Edited by Brian Gibbons. Methuen.
Author. Year. "Episode." In Book title. Publisher.
Whedon, Joss. 2003. "Anne." In Buffy the vampire slayer: The script book, Season three. Simon Pulse.
A script from an anthology is treated as a chapter in an edited book, but will not always have an editor.