Thread:Extension talk:Scribunto/Check whether title exists, otherwise load data/reply (3)

Simply adding "flags_data_loaded = 1" might do the trick, yes. So simple! Thanks.

I'm confused about the documentation here:

exists: Whether the page exists. Alias for fileExists for Media-namespace titles. fileExists: Whether the file exists. For File- and Media-namespace titles, this is expensive.

http://commons.wikimedia.org/wiki/Media:Flag_of_Andorra.svg redirects to http://commons.wikimedia.org/wiki/File:Flag_of_Andorra.svg and both are "Media-namespace titles", right? Therefore it seems that "exists" should be used here (and then it seems that it wouldn't be expensive, but still worse than just checking the loaded flag_data module).

If you get an example running please share it here and consider adding it to the documentation. Being something new and specific to MediaWiki / Scribunto, the usual Google route for finding solutions won't work. :) Thank you!