User:Taavi/Aligner
Appearance
(Redirected from User:Majavah/Aligner)
Description | Automatically aligns infobox params |
---|---|
Author(s) | Majavah |
Status | experimental |
First released | May 6, 2020 |
Version | 0.4.0 |
Updated | July 2, 2020 |
Browser support | Firefox, Chrome |
Skin support | Vector |
Source | User:Taavi/Aligner.js |
Aligner can be used to automatically align ='s in infoboxes. Once installed, it can be used via More -> Align template params.
Template whitelist
This script only aligns params within whitelisted templates. The whitelist is implemented as "starts with", so whitelisting "{{infobox" does include all templates that start with infobox (such as {{Infobox television episode}} or {{Infobox road}}.
The default whitelist can be seen in the the script's source. You can also add entries to the global window.alignerExtraSearches
array to include your custom whitelisted entries.
Installation instructions
Hint: It's much easier if you get ScriptInstaller, then navigate to User:Taavi/Aligner.js and click "Install" at the top.
However, here's the manual method:
- Place
{{subst:iusc|User:Taavi/Aligner.js}}
on Special:MyPage/common.js or a skin-specific page, like Special:MyPage/vector.js. - Clear your cache and enjoy!