The triiodide ion ($I_3^-$) has structure [I-I-I]$^-$, but the resonance structure [I=I-I]$^-\leftrightarrow$ [I-I=I]$^-$ seems more favourable to me. After all, it disperses formal charge and has a higher bond order. Yet, the triiodide ion being linear shows that the first structure is the correct one. Why?
P.S.: A similar question does exist but asks why the formation of triiodide is possible, rather than why it is the way it is.