Wikiamobile placeholder, read more on file pages, simplify logic that se...

...ts vars for template

(cherry picked from commit acedb7b)