It requires Module:Yesno (with the first letter in capital), so it should be transcluded...

...but strangely enough, it is not, both database and API request return only doc page.

At the same time, checking in the wiki, script seems to be working.

This means that requesting all the modules, where Module:Yesno is transcluded, doesn't show module:yesno too.