Page MenuHomePhabricator

Spacing in expanded templates
Closed, ResolvedPublic

Description

Example @ line 408:

https://en.wikipedia.org/w/index.php?title=Adrian_Lamo&type=revision&diff=798906470&oldid=798761681

IABot adds spacing to the |interviewer argument .. however this causes the template in the wikitext to look messed up. The original authors had the "=" lined up so it is easy to read and looks nice. The number of spaces between the end of the argument name and the "=" sign are variable. But the total number of characters (include spaces) from the start of the argument name to the "=" would be the same for all arguments.

I ran into this wiki Medic and came up with some functions to determine spacing and have the "=" signs lined up (assuming that was the original intent).

Event Timeline

Restricted Application added a subscriber: Cyberpower678. · View Herald Transcript

IABot attempts to read the formatting. But it's not able to recognize lined up arguments. It tries to read the spacing of the arguments, and uses the one most common in the template, and follows through with it. Something to consider as an update.

Cyberpower678 moved this task from Inbox to v1.5 on the InternetArchiveBot board.
Cyberpower678 moved this task from Unsorted to Bugs on the InternetArchiveBot (v1.5) board.

Implemented in v1.5.1

Great! Hope it wasn't too difficult. Occurred to me the easiest method would be 1) determine if there is padded spacing involved and if so 2) change all to the length of the longest argument + 1 space.