The sulfur-bubble template-mediated synthesis of uniform porous g-C3N4 with superior photocatalytic performance.