User:Taavi/Aligner

Aligner
DescriptionAutomatically aligns infobox params
Author(s)Majavah
Statusexperimental
First releasedMay 6, 2020; 3 years ago (2020-05-06)
Version0.4.0
UpdatedJuly 2, 2020; 3 years ago (2020-07-02)
Browser supportFirefox, Chrome
Skin supportVector
SourceUser: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:

  1. Place {{subst:iusc|User:Taavi/Aligner.js}} on Special:MyPage/common.js or a skin-specific page, like Special:MyPage/vector.js.
  2. Clear your cache and enjoy!
Retrieved from "https://en.wikipedia.org/w/index.php?title=User:Taavi/Aligner&oldid=1184153314"