Complex sentence: For instance, when writing documentation you might want to avoid a lot of unnecessary links, since it decreases readability--i.e. on the first occurrence of a template name, use, or and thereafter use, or.
Split into simpler sentences: For instance, when writing documentation you might want to avoid a lot of unnecessary links, since it decreases readability. Then on the first occurrence of a template name use, or, and then use, or.