Not utilizing api:parse's `title` parameter

Expected Behavior

The title parameter of api:parse is used whenever generating page previews.

Current Behavior

Such parameter is not used and is instead left blank, leading to pages being marked as "API". This might have come from the assumption that title works the same as page (which parses an on-wiki page), which is not the case.

Possible Solution

Supply title with the appropriate title.

Steps to Reproduce

Generate a preview using any template with a magic word that checks the current page (e.g. {{BASEPAGENAME}})

Some information

Applicable to all usages of RedWarn.

Final checklist

  • I have included the version of the browser I'm running, operating system and other scripts (if used). N/A
  • I have included logs, exceptions and / or steps to reproduce the issue.
Edited by sportshead