User:JSBM

CONVERT INFOBOXES TO THIS FORMAT (Reminder for myself)

1) Select only the rows after image, and excluding any collapsed sections.

2) Using regex (regexr.com is an excellent site for that):

SEARCH (without the quotes): "{{#if: {{{([a-z1-90_]+)[}\| ]+! c[^}]+}}([^}]+)}}\n\|-" REPLACE (without the quotes): ""

This will replace all infoboxdetails and replace them by the template.

3) Using regex, on the result of above:

SEARCH (without the quotes): "{{#if: {{{([a-z1-90_]+)[^<]+ ([^<]+)[^\n]+\n\|-" REPLACE (without the quotes): "{{User:JSBM/Infobox row|$2|{{{$1|}}}}}"

4) If you have any collapsable sections, convert them separately with this regex:

SEARCH (without quotes): "{{#if: {{{([a-z1-90_]+)[^<]+ ([^<]+)[^\n]+\n\|-?[^\n]+" REPLACE (without quotes): "{{User:JSBM/Infobox row|$2|{{{$1|}}}}}"

5) Complete the sections by indicating a title, an if and declaring each row.

6) Put everything in the template {{User:JSBM/Infobox}}, putting all the rows under the parameter |rows=