First of all, forgive my little knowledge on the subject.
I can enter the complex space by just using an expression only having real numbers, for example:
f(x)= (-1)^x
as f(x)= (-1)^x - Wolfram|Alpha proves. I didn't express anything dependent on the imaginary unit i.
Can I similarly enter the quaternion space, just by using real or complex numbers on the expression? I mean to not use j and k.
A function is well defined only if we specify the Domain and the Codomain. So, if we write simply $f(x)=(-1)^x$ the function is ill-defined. We have to specify if we want a function $f:\mathbb{R} \rightarrow \mathbb{R} $ or $f:\mathbb{R} \rightarrow \mathbb{C} $ or $f:\mathbb{C} \rightarrow \mathbb{C} $, and all these are different functions.
Look well at the page you have linked. When WA gives the ''Properties as a real function'' write that The Domain and the Codomain are the empty set. This means that such a function ( reals to reals) is not defined.
Obviously you can define a function that has $\mathbb{R}$ as Domain and Codomain on the quaternions, but it is a matter of definition.