Jump to content

User:Taavi/Aligner

From Wikipedia, the free encyclopedia
(Redirected from User:Majavah/Aligner)
Aligner
DescriptionAutomatically aligns infobox params
Author(s)Majavah
Statusexperimental
First releasedMay 6, 2020; 4 years ago (2020-05-06)
Version0.4.0
UpdatedJuly 2, 2020; 4 years ago (2020-07-02)
BrowsersFirefox, Chrome
SkinsVector
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

[edit]

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

[edit]

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!