User:Hike395/River
Appearance
For articles in Category:Pages using infobox river with mapframe, apply the following 4 regex (the last one has to run after the first 3):
- Find
\|\s*length\s*=\s*{{(convert|cvt)\|([\d\.,]+)\|(km|mi)[^}]*}}\s*([^\|\n}]*[\|}\n])
, replace with| length_$3 = $2|length_ref=$4
- Find
\|\s*basin_size\s*=\s*{{(convert|cvt)\|([\d\.,]+)\|(km2|mi2)[^}]*}}\s*([^\|\n}]*[\|}\n])
, replace with| basin_size_$3 = $2|basin_size_ref=$4
- Find
\|\s*basin_size\s*=\s*{{(convert|cvt)\|([\d\.,]+)\|sqmi[^}]*}}\s*([^\|\n}]*[\|}\n])
, replace with| basin_size_mi2 = $2|basin_size_ref=$3
- Find
\|(length|basin_size)_ref=[\n\s]*([\|}])
, replace with\n$2