User:Ligulem/work/Infobox City
From Wikipedia, the free encyclopedia
< User:Ligulem | work
Settings for MWB to split some params of {{Infobox City}}
Beware: click here, then copy the text between the pre tags (don't copy it from the box below, there are some issues with encoded characters not displayed as need here)
<?xml version="1.0" encoding="utf-8"?> <Settings program="MWB" schema="5"> <general general="False" /> <editsummary text="Splitting params of {{[[template:Infobox City|Infobox City]]}}" /> <menu> <wordwrap enabled="True" /> <bypass enabled="True" /> <ingnorenonexistent enabled="True" /> <noautochanges enabled="False" /> <skipnochanges enabled="False" /> <preview enabled="False" /> <minor enabled="False" /> <watch enabled="False" /> <addignoredtolog enabled="False" /> </menu> <replacerules enabled="True"> <InTemplateRule name="{{Infobox City}}" enabled="True"> <template>Infobox City</template> <rule name="Standardise <br>'s" type="0" enabled="True"> <regex /> <replace><br[\s]*/></replace> <with><br></with> </rule> <rule name="Remove surplus <br>'s at end" type="0" enabled="True"> <regex /> <replace><br>([\s]*[|])</replace> <with>$1</with> </rule> <rule name="subdivision" type="0" enabled="True"> <rule name="subdivision_type, 3 lines" type="0" enabled="True"> <regex /> <replace>[|][\s]*subdivision_type[\s]*=[\s]*(.*)[\s]*<br>[\s]*(.*)[\s]*<br>[\s]*(.*)</replace> <with>|subdivision_type = $1 |subdivision_type1 = $2 |subdivision_type2 = $3</with> </rule> <rule name="subdivision_type, 2 lines" type="0" enabled="True"> <regex /> <replace>[|][\s]*subdivision_type[\s]*=[\s]*(.*)[\s]*<br>[\s]*(.*)</replace> <with>|subdivision_type = $1 |subdivision_type1 = $2</with> </rule> <rule name="subdivision_name, 3 lines" type="0" enabled="True"> <regex /> <replace>[|][\s]*subdivision_name[\s]*=[\s]*(.*)[\s]*<br>[\s]*(.*)[\s]*<br>[\s]*(.*)</replace> <with>|subdivision_name = $1 |subdivision_name1 = $2 |subdivision_name2 = $3</with> </rule> <rule name="subdivision_name, 2 lines" type="0" enabled="True"> <regex /> <replace>[|][\s]*subdivision_name[\s]*=[\s]*(.*)[\s]*<br>[\s]*(.*)</replace> <with>|subdivision_name = $1 |subdivision_name1 = $2</with> </rule> </rule> <rule name="established" type="0" enabled="True"> <rule name="established_title, 3 lines" type="0" enabled="True"> <regex /> <replace>[|][\s]*established_title[\s]*=[\s]*(.*)[\s]*<br>(.*)[\s]*<br>[\s]*(.*)</replace> <with>|established_title = $1 |established_title2 = $2 |established_title3 = $3</with> </rule> <rule name="established_title, 2 lines" type="0" enabled="True"> <regex /> <replace>[|][\s]*established_title[\s]*=[\s]*(.*)[\s]*<br>[\s]*(.*)</replace> <with>|established_title = $1 |established_title2 = $2</with> </rule> <rule name="established_date, 3 lines" type="0" enabled="True"> <regex /> <replace>[|][\s]*established_date[\s]*=[\s]*(.*)[\s]*<br>[\s]*(.*)[\s]*<br>[\s]*(.*)</replace> <with>|established_date = $1 |established_date2 = $2 |established_date3 = $3</with> </rule> <rule name="established_date, 2 lines" type="0" enabled="True"> <regex /> <replace>[|][\s]*established_date[\s]*=[\s]*(.*)[\s]*<br>[\s]*(.*)</replace> <with>|established_date = $1 |established_date2 = $2</with> </rule> </rule> <rule name="leader" type="0" enabled="True"> <rule name="leader_title, 2 lines" type="0" enabled="True"> <regex /> <replace>[|][\s]*leader_title[\s]*=[\s]*(.*)[\s]*<br>[\s]*(.*)</replace> <with>|leader_title = $1 |leader_title1 = $2</with> </rule> <rule name="leader_name, 2 lines" type="0" enabled="True"> <regex /> <replace>[|][\s]*leader_name[\s]*=[\s]*(.*)[\s]*<br>[\s]*(.*)</replace> <with>|leader_name = $1 |leader_name1 = $2</with> </rule> </rule> <rule name="Remove " type="0" enabled="True"> <regex /> <replace>([|][\s]*.*[\s]*=[\s]*)(\ \;[ ]*)+</replace> <with>$1</with> </rule> </InTemplateRule> </replacerules> </Settings>