I think you have misinterpreted the passage on Wikipedia a little. Of course, you are right that the chemical potential is given by the formula
\begin{align}
\mu_{i} (p_{i}, T) &= \underbrace{\mu_{i}^{*}(p^{0}, T)}_{= \, \mu_{i}^{0}} + RT \log a_{i} \\
&= \mu_{i}^{0} + RT \ln \left(\phi_{i} \frac{p_{i}}{p^0} \right)
\end{align}
where $R$ is the universal gas constant, $T$ is the temperature, and $\phi_{i}$, $p_{i}$, $a_{i}$, and $\mu_{i}$ are the fugacity coefficient, the partial pressure, the activity and the chemical potential of the $i$th component in the system, respectively.
But the passage you are quoting says that the contribution of nonideality to the chemical potential of a real gas is equal to $RT \ln \phi$ and in the equation
\begin{align}
\mu = \mu_{\text{id}} + RT \ln \left(\phi \right)
\end{align}
$\mu_{\text{id}}$ is not the same as $\mu^{0}$. Rather it is meant in the following way: For an ideal gas the fugacity coefficient is $1$ by definition and so the chemical potential of an ideal gas, $\mu_{\text{id}}$, is given by
\begin{align}
\mu_{\text{id}} = \mu^{\text{id}}_{i} (p_{i}, T) = \mu_{i}^{0} + RT \ln \left(\frac{p_{i}}{p^0} \right)
\end{align}
If you use the mathematical property of logarithms that $\log(a \cdot b) = \log(a) + \log(b)$ you can rewrite the equation for the chemical potential of real gases to
\begin{align}
\mu_{i} (p_{i}, T) &= \underbrace{\mu_{i}^{0} + RT \ln \left(\frac{p_{i}}{p^0} \right)}_{= \, \mu_{\text{id}}} + RT \ln \left(\phi_{i} \right) \\
&= \mu_{\text{id}} + RT \ln \left(\phi_{i} \right)
\end{align}
and so you see, that the contribution of nonideality to the chemical potential of a real gas is indeed equal to $RT \ln \phi$ and you get to the equation from the Wikipedia article.