Thread:Extension talk:Widgets/How to include to a category all pages using a certain widget?

For instance, I want all pages featuring YouTube videos, i.e. using Widget:YouTube to be included to a category named "YouTube". How can I do that? I have already tried putting inside tags but it doesn't seem to work.