Complex sentence: To make a diff get its URL from the article history or a user's contribution page and enclose it in single brackets you can add optional text after the URL and before the closing bracket.
Split into simpler sentences: To make a diff get its URL from the article history or a user's contribution page and enclose it in single brackets. You can add optional text after the URL and before the closing bracket.