Template:Featured book/Ad base

Description
This template works out the base name for the advertisement template for a featured book. If the book is in mainspace, the base template name is "Goodbook"; otherwise, it is "Featured book".