Why can't we pass an Article there? (note that Article has all of WikiPage functions)
Perhaps doEdit could be in Article instead of WikiPage, given that Article functions seems to be those related to the content.
Maybe it's just that I haven't understood yet the basis for the diference between a WikiPage and an Article (which doesn't seem documented either).