How can I refer to the "current page" in a template?

Welcome to the community @DiogoSnows! :wave:

{{current_page}} isn’t valid syntax. The syntax for dynamic variables is: <% current week %> (anything between <% and %> gets interpreted by the natural language processor in Logseq).

Also, it seems like you’re trying to mix simple queries with datalog (:type, :parent) which isn’t supported. See this query lesson (and the other lessons in the series) on how to properly write simple queries using dynamic variables.