This subtemplate of {{BOOKPAGENAME}} handles cases where the page is a department of the Wikibooks Stacks.

The only parameter expected is pagename.

This template simply strips off the Department: prefix.