User:Zackmann08/scripts/indent
Appearance
From Wikipedia, the free encyclopedia
| Description | Adds a link to clean up syntax of templates |
|---|---|
| Author | Zackmann08 |
| Updated | August 4, 2026 (0 days ago) |
| Source | User:Zackmann08/scripts/indent.js |
Installing this script will add an Indent option to your tools section that allows you to quickly and easily clean up Infobox code. While largely cosmetic edits, these edits will aide in readability and dramatically reduce errors. For an example of what this edit will do see this diff:
- Before
{{Infobox person | name = John Smith | birth_date = 12 Dec 1980 | birth_place = [[France]] | death_date = 21 March 2020 | occupation = [[Chef]] | title = King | known_for = Cooking stuff }}
- After
{{Infobox person | name = John Smith | birth_date = 12 Dec 1980 | birth_place = [[France]] | death_date = 21 March 2020 | occupation = [[Chef]] | title = King | known_for = Cooking stuff }}
This script was created as a fork of User:Frietjes/indent.js.
Installation
[edit ]- Go to your common JavaScript and paste in the following line:
{{subst:iusc|User:Zackmann08/scripts/indent.js}}
- Save the page.