Template:Ifsubpage/doc

Returns  if the current page is a subpage, or   if it is not a subpage.