I'd like to extend Semantic MediaWiki to implement a new query format: embedded.

It would insert on the output the contents of the selected pages, like this:

=Page 1=

(HTML-formatted contents from Page 1)

=Page 2=

(HTML-formatted contents from Page 2)

Since I'm new to MediaWiki, I'd be grateful if someone could point me to the class in Semantic MediaWiki that handles query formatting, and also to the class in MediaWiki that renders the HTML for a page contents.

If I can make it work, I plan on contributing this enhancement back to the community.