I wish to make my .htaccess file do that:

From: http://www.domain.com/example  
-OR-  http://domain.com/example  
To:   http://example.domain.com  

and

From: http://www.domain.com/example/newfolder/file.html?q=blank  
-OR-  http://domain.com/example/newfolder/file.html?q=blank  
To:   http://example.domain.com/newfolder/file.html?q=blank  

For that existence of me, I've looked and looked, and merely can't decipher it.

Do this rule:

RewriteCond %{HTTP_HOST} ^(www\.)?example\.com$
RewriteRule ^([^/.]+)(/.*)?$ http://$1.example.com$2 [L,R=301]