Parse query for using in the out link

Also formats items to best readability.
Adds all variables from articles to be displayed
Sets todo list