Template:Trimc/doc

Usage
Trimc trims multiple consecutive colons down to a single colon. Example: produces , which is rendered as ""

On July 11, 2017, a change to the mediawiki software was introduced per 361597 that made wikilinks beginning with multiple colons (e.g. &#91;&#91;::Main page&#93;&#93;) no longer valid. Since this format used to work, many template defensively insert a colon at the start of the link to ensure that interlanguage links and interwiki links work properly, and when combined with an input that already contains a leading colon, the output they produce is now broken.

This template is designed to be added to such templates to fix double-leading-colon errors.