\[
\begin{array}{|c|c|c|c|}
\hline \text{element} & \text{symbol of ion} & \text{type of ion} \\
\hline \text{scandium} & \mathrm{Sc}^{3+} & \text{cation} \\
\hline \text{magnesium} & \mathrm{Mg}^{2+} & \text{cation} \\
\hline \text{lithium} & \mathrm{Li}^{+} & \text{cation} \\
\hline \text{fluorine} & \mathrm{F}^{-} & \text{anion} \\
\hline \text{sulfur} & \mathrm{S}^{2-} & \text{anion} \\
\hline
\end{array}
\]