$n$-lab says that that a limit (resp colimit) over the empty diagram in a category $\mathcal{C}$ is the terminal (resp initial) object of $\mathcal{C}$.
Is this true because if we are to give a morphism to each object in the empty diagram, we must factor through the limit over the empty diagram - where each object vacuuously has a morphism to the objects of the empty diagram, and hence necessarily has a unique morphism to this limit.
I only consider the limit case (colimits are dual).
The limit of a diagram $\Delta$ is a cone over $\Delta$ with a certain universal property (see https://en.wikipedia.org/wiki/Limit_(category_theory).
A cone over the empty diagram $\Delta_\emptyset$ is nothing else than an object $X$ of $\mathcal{C}$, and the universal property says that $X$ is a limit of $\Delta_\emptyset$ if and only if each object $Y$ admits a unique morphism $Y \to X$.