Wikimedia
Do not set 'wpb-banner-options' in ParserOutput if custom banner and wikidata banner are not found.
Whenever {{PAGEBANNER..}} is used with a custom banner, it adds 'wpb-banner-options' array to ParserOutput object so that banner parameters could be retrieved later in addBanner() for generating the banner. We'd not want that property being set, if the custom banner is invalid and a wikidata banner is also not found associated with that article. addCustomBanner() already checks the existence of a valid banner in the end, which could be made use of.
Read more about WikidataPageBanner extension
My irc nick: codezee
If you need help, leave a comment on T120188
Task tags
Students who completed this task
neonowy