Let's talk about what a location parameter is. (The discussion of scale parameters will exactly parallel it and offers little new.)
The setting concerns a set $\mathcal{F}$ of probability distributions $F_\theta$ indexed by a parameter $\theta \in \Theta \subset \mathbb{R}^p$. "Indexed by" not only means each $\theta\in\Theta$ denotes a distribution $F_\theta$: it also means that no distribution is identified by more than one such $\theta$.
Consider any location-covariant property of $F_\theta$, such as a specific quantile (which will always exist) or its first moment (which might exist for some distribution families). By "property" I mean quite generally some "nice" real-valued function $t$ ("nice" will be explained momentarily) defined on this family of distributions and "location-covariant" means that for any $F$ in the family, $$t(F^{(\mu)}) = t(F) + \mu$$
where the translate $F^{(\mu)}$ is the distribution function given by
$$F^{(\mu)}(x) = F(x-\mu).$$
Consider any $\theta_0$ in the interior of $\Theta$. Parameterizations are assumed to have the property that such a $\theta_0$ will have a $p$-dimensional neighborhood $\mathcal{B}$ in which $t$ is differentiable with nonzero derivative throughout (that's what "nice" means). The Implicit Function Theorem then implies there is a coordinate system in this neighborhood in which the first coordinate is $t$ and the remaining $p-1$ coordinates are differentiable functions. Locally, at least, the distributions can be parameterized by $t$ and by the codimension-1 subset of $\mathcal{B}$ whose first coordinate is $t(\theta_0)$. That gives a new set of coordinates $\gamma=(\gamma_1,\ldots, \gamma_p)$ with $\gamma_1=t$.
We say that $t$ is a location parameter for the family. It has the property that if we fix the last $p-1$ coordinates in $\mathcal{B}$, then the distribution function can be written in the form
$$F_{(t, \gamma_2, \ldots,\gamma_p)}(x) = H_{(\gamma_2,\ldots, \gamma_p)}(x-t)$$
where $H$ (and therefore anything equivalent to it, such as its pdf if it has one) depends only on the last $p-1$ parameters. This is how you recognize a location parameter: the argument of the distribution function shows up in the formula only as the combination $x-t$.
Let's work an example. Suppose each $F_\theta$ in the interior of $\Theta = \{(\theta_1,\theta_2)\mid \theta_1 \ge 0\}$ is continuous and is given in terms of its pdf $f_\theta$ as
$$f_\theta(x) \propto \exp(-\theta_1 x^2 + \theta_2 x) \propto \exp\left(-\theta_1\left(x - \frac{\theta_2}{2\theta_1}\right)^2\right).\tag{1}$$
Is this a location family? If so, what is its location parameter?
In the first formula of $(1)$, there is no obvious location parameter: $f_\theta$ is not explicitly a function of $x-\theta_1$ or $x-\theta_2$.
The second formula of $(1)$ shows each pdf is symmetric around the value $$t(\theta) = \frac{\theta_2}{2\theta_1},$$ which therefore must be the median. Since the median is a location-covariant property, we can exploit this observation to construct a location parameter.
Consider $\theta_0 = (1,0)$ for instance. I chose this to make $t(\theta_0)=0$ have a simple value. The level set of $t$ passing through $\theta_0$ is given by
$$0 = t(1,0) = t(\theta_1, \theta_2) = \frac{\theta_2}{2\theta_1},$$
showing that (locally) it's the set where $\theta_2=0$ and we may parameterize it by $\theta_1$. Let us therefore change the parameterization from $\theta$ to
$$\gamma = (\gamma_1, \gamma_2) = (t(\theta_1, \theta_2), \theta_1) = \left( \frac{\theta_2}{2\theta_1}, \theta_1\right).$$
The base point $\theta_0$ corresponds to $\gamma_0 = (0, 1)$.
The inverse of this transformation from $\theta$ to $\gamma$ is
$$\theta = (\theta_1, \theta_2) = \left(\gamma_2, 2\gamma_1\gamma_2\right).$$
The new parameterization is therefore
$$G_\gamma(x) = F_{\left(\gamma_2, 2\gamma_1\gamma_2\right)}(x) \propto \exp\left(-\gamma_2(x - \gamma_1)^2\right).$$
Now it is perfectly obvious that $\gamma_1$ is a location parameter, because its sole effect is to shift $x$ in the formula.
By finding a candidate for a location parameter and demonstrating it acts as one, we have verified that this is a location family and we have found a location parameter for it. Incidentally, we have also identified this parameter with a location-covariant property: the median.