Jump to content

User:Hike395/River

From Wikipedia, the free encyclopedia

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):

  1. Find \|\s*length\s*=\s*{{(convert|cvt)\|([\d\.,]+)\|(km|mi)[^}]*}}\s*([^\|\n}]*[\|}\n]), replace with | length_$3 = $2|length_ref=$4
  2. Find \|\s*basin_size\s*=\s*{{(convert|cvt)\|([\d\.,]+)\|(km2|mi2)[^}]*}}\s*([^\|\n}]*[\|}\n]), replace with | basin_size_$3 = $2|basin_size_ref=$4
  3. Find \|\s*basin_size\s*=\s*{{(convert|cvt)\|([\d\.,]+)\|sqmi[^}]*}}\s*([^\|\n}]*[\|}\n]), replace with | basin_size_mi2 = $2|basin_size_ref=$3
  4. Find \|(length|basin_size)_ref=[\n\s]*([\|}]), replace with \n$2