Create flashcards from page properties

Hello,

I have a namespace full of pages for people which all contain page properties such as “name” and “photo”.

I would like to use the flashcard feature to memorize the names of these people, i.e. being prompted with the photo and being asked for the name. How can this be done? Can card generation be automated, e.g. by a query?

Sure, I could go manually through all pages and copy the photo to a node, add the “#card” tag to it and then copy the name to the child node. That would work. But that’s also tedious and it duplicates the data.