If $S$ is a set of formulae, then $S \vdash \varphi$ means that $\varphi$ can be derived from the formulae in $S$. Intuitively, $\varphi$ is true under the assumptions in $S$.
$\vdash \varphi$ is shorthand for $\varnothing \vdash \varphi$, meaning that $\varphi$ can be proved without making any assumptions (beyond the axioms of the logical system).
The 'triangle' you speak of is $\Delta$, the capital Greek letter delta, which just stands for an arbitrary set of formulae (like the '$S$' I mentioned above).
So in particular:
- $\Delta \cup \{ A \} \vdash B$ means that $B$ can be derived under the assumptions in $\Delta$ and the additional assumption $A$.
- $\Delta \vdash A \to B$ means that $A \to B$ can be derived under the assumptions in $\Delta$.
- The deduction theorem says that if $\Delta \cup \{ A \} \vdash B$ then $\Delta \vdash A \to B$, i.e. under the assumptions in $\Delta$, if $B$ can be derived from the additional assumption $A$, then $A \to B$ can be derived just from $\Delta$.
The form '$A \vdash B$ implies $\vdash A \to B$' is the special case when $\Delta = \varnothing$. That is, if $B$ can be derived from just the assumption $A$, then $A \to B$ can be derived with no assumptions (beyond the axioms of the logical system).