User:Zyxw/autoFormatterSettings.js
Appearance
Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with "importScript", "mw.loader.load", "iusc", or "lusc", take note that this causes you to dynamically load a remote script, which could be changed by others. Editors are responsible for all edits and actions they perform, including by scripts. User scripts are not centrally supported and may malfunction or become inoperable due to software changes. A guide to help you find broken scripts is available. If you are unsure whether code you are adding to this page is safe, you can ask at the appropriate village pump. This code will be executed when previewing this page. |
![]() | Documentation for this user script can be added at User:Zyxw/autoFormatterSettings. |
// for use with [[User:Zyxw/autoFormatter.js]], a copy of [[:de:Benutzer:TMg/autoFormatter.js]]
// settings formerly located at [[User:Zyxw/common.js]]
// <nowiki>
var autoFormatTemplates = [
{ name: 'Infobox',
format: '| _ = _\n'
},
{ name: 'Infobox airport',
format: '| ______________ = _\n'
},
{ name: 'Infobox amateur wrestler',
format: '| ___________________ = _\n',
parameters: {
'imagesize': 'image_size',
'img_capt': 'caption'
}
},
{ name: 'Infobox artwork',
format: '| __________________ = _\n',
parameters: {
'backcolor': false,
'material': 'medium',
'url': 'website'
}
},
{ name: 'Infobox artist',
format: '| ________________ = _\n',
parameters: {
'imagesize': 'image_size',
'field': 'known_for',
'training': 'education',
'works': 'notable_works',
'bgcolor': false,
'bgcolour': false
}
},
{ name: 'Infobox astronaut',
format: '| _____________ = _\n',
parameters: {
'imagesize': 'image_size',
'date_death': 'death_date',
'other names': 'other_names',
'othername': 'other_names',
'alias': 'other_names',
'time': 'space_time',
'eva1': 'evas',
'eva2': 'eva_time',
'mission': 'missions',
'Date of ret': 'retirement',
'url': 'website'
}
},
{ name: 'Infobox badminton player',
format: '| ____________________ = _\n',
parameters: {
'size': 'image_size',
'date_of_highest_ranking': 'highest_ranking_date',
'date_of_current_ranking': 'current_ranking_date',
'medaltemplates': 'medals',
'medal_templates': 'medals',
'show-medals': 'medals-expand'
}
},
{ name: 'Infobox baseball biography',
format: '| ______________ = _\n',
parameters: {
'width': 'image_size'
}
},
{ name: 'Infobox basketball biography',
format: '| _______________ = _\n',
parameters: {
'width': 'image_size',
'highschool': 'high_school',
'high school': 'high_school',
'high school': 'high_school',
'draftpba': 'draft_pba',
'draftpick': 'draft_pick',
'draftpickpba': 'draft_pick_pba',
'draftroundpba': 'draft_round_pba',
'draftteam': 'draft_team',
'draftteampba': 'draft_team_pba',
'draftyear': 'draft_year',
'draftyearpba': 'draft_year_pba',
'debutyear': 'career_start',
'finalyear': 'career_end'
}
},
{ name: 'Infobox bishopstyles',
format: '| ___________ = _\n'
},
{ name: 'Infobox boxer',
format: '| ______________ = _\n',
parameters: {
'imagesize': 'image_size',
'url': 'website',
'home': false,
'home_town': false,
'residence': false
}
},
{ name: 'Infobox boxer (amateur)',
format: '| ______________ = _\n',
parameters: {
'fullname': 'full_name'
}
},
{ name: 'Infobox brewery',
format: '| ________________ = _\n',
parameters: {
'url': 'website'
}
},
{ name: 'Infobox building',
format: '| ___________________ = _\n',
parameters: {
'building_name': 'name',
'hotel_name': 'name',
'native_name': 'native_building_name',
'Logo_caption': 'logo_caption',
'url': 'website'
}
},
{ name: 'Infobox CFL biography',
format: '| _________________ = _\n',
parameters: {
'Position': 'position',
'jersey': 'uniform_number',
'Height_ft': 'height_ft',
'Height_in': 'height_in',
'Weight_lb': 'weight_lb',
'weight_lbs': 'weight_lb',
'Weight_lbs': 'weight_lb',
'College': 'college',
'highschool': 'high_school',
'Career Highlights': 'career_highlights',
'Awards': 'awards',
'Honors': 'honors',
'Honours': 'honours',
'Retired #s': 'retired #s',
'Records': 'records',
'Color': false,
'fontcolor': false,
'image_size': false,
'imagesize': false,
'ImageWidth': false
}
},
{ name: 'Infobox college coach',
format: '| __________________ = _\n'
},
{ name: 'Infobox college football player',
format: '| _______________ = _\n'
},
{ name: 'Infobox comedian',
format: '| _______________ = _\n',
parameters: {
'imagesize': 'image_size'
}
},
{ name: 'Infobox comic strip',
format: '| ___________ = _\n',
parameters: {
'url': 'website'
}
},
{ name: 'Infobox comics creator',
format: '| _____________ = _\n',
parameters: {
'imagesize': 'image_size',
'mangaka': 'manga artist',
'strip': 'cartoonist',
'write': 'writer',
'pencil': 'penciller',
'penciler': 'penciller',
'art': 'artist',
'ink': 'inker',
'edit': 'editor',
'publish': 'publisher',
'publishing': 'publisher',
'letter': 'letterer',
'lettering': 'letterer',
'color': 'colorist',
'coloring': 'colorist',
'colour': 'colourist',
'colouring': 'colourist',
'sortkey': false,
'subcat': false
}
},
{ name: 'Infobox company',
format: '| ___________________ = _\n',
parameters: {
'homepage': 'website'
}
},
{ name: 'Infobox computer',
format: '| _____________ = _\n',
parameters: {
'Name': 'name',
'Image': 'image',
'Photo': 'image',
'photo': 'image',
'ImageWidth': 'image_size',
'Developer': 'developer',
'Type': 'type',
'Released': 'releasedate',
'Introduced': 'releasedate',
'Baseprice': 'baseprice',
'Discontinued': 'discontinued',
'OS': 'os',
'CPU': 'cpu',
'Processor': 'processor',
'Memory': 'memory',
'Display': 'display',
'Graphics': 'graphics',
'Sound': 'sound',
'Input': 'input',
'Connectivity': 'connectivity',
'Power': 'power',
'Casing': 'dimensions',
'Website': 'website'
}
},
{ name: 'Infobox cricket ground',
format: '| _________________ = _\n',
parameters: {
'logosize': 'logo_size',
'imagesize': 'image_size'
}
},
{ name: 'Infobox cricketer',
format: '| __________________ = _\n',
parameters: {
'imagesize': 'image_size'
}
},
{ name: 'Infobox cricketerX',
format: '| _ = _\n',
parameters: {
'batting': 'caption = \n| fullname = \n| birth_date = \n| birth_place = \n| death_date = \n| death_place= \n| batting'
}
},
{ name: 'Infobox curler',
format: '| _ = _\n'
},
{ name: 'Infobox curlerX',
format: '| _ = _\n',
parameters: {
'Curling club': 'gender = \n| image = \n| caption = \n| other_names =\n| birth_name = \n| birth_date = <!-- {{birth-date and age|}} -->\n| birth_place = \n| death_date = \n| death_place = \n| Curling club'
}
},
{ name: 'Infobox cyclist',
format: '| ______________ = _\n'
},
{ name: 'Infobox deity',
format: '| ____________ = _\n',
parameters: {
'Name': 'name',
'Deity_of': 'deity_of',
'God_of': 'god_of',
'Image': 'image',
'Image_size': 'image_size',
'Alt': 'alt',
'Caption': 'caption',
'Other_names': 'other_names',
'Hiro': 'hiro',
'Sanskrit_Transliteration': 'Sanskrit_transliteration',
'Tamil_Transliteration': 'Tamil_transliteration',
'Script_name': 'script_name',
'Script': 'script',
'Associate': 'associate',
'Affiliation': 'affiliation',
'Abode': 'abode',
'Abodes': 'abodes',
'Planet': 'planet',
'World': 'world',
'Mantra': 'mantra',
'Weapon': 'weapon',
'Weapons': 'weapons',
'Battles': 'battles',
'Artefacts': 'artefacts',
'Artifacts': 'artifacts',
'Animals': 'animals',
'Symbol': 'symbol',
'Symbols': 'symbols',
'Day': 'day',
'Colour': 'colour',
'Color': 'color',
'Number': 'number',
'Consort': 'consort',
'Consorts': 'consorts',
'Parents': 'parents',
'Siblings': 'siblings',
'Offspring': 'offspring',
'Children': 'children',
'Mount': 'mount',
'Texts': 'texts',
'Region': 'region',
'Ethnic_group': 'ethnic_group',
'Festivals': 'festivals'
}
},
{ name: 'Infobox economist',
format: '| ________________ = _\n',
parameters: {
'color': false,
'url': 'website'
}
},
{ name: 'Infobox equestrian',
format: '| ________________ = _\n',
parameters: {
'imagesize': 'image_size',
'url': 'website'
}
},
{ name: 'Infobox event',
format: '| ________________________ = _\n',
parameters: {
'title': 'name',
'event': 'name',
'Event_Name': 'name',
'image_name': 'image',
'Image_Name': 'image',
'Imagesize': 'image_size',
'Thumb_Time': 'thumbtime',
'image_alt': 'alt',
'Image_Alt': 'alt',
'Image_Caption': 'caption',
'English_name': 'english_name',
'Date': 'date',
'Location': 'location',
'also known as': 'also_known_as',
'aka': 'also_known_as',
'AKA': 'also_known_as',
'result': 'outcome',
'Result': 'outcome',
'url': 'footage',
'URL': 'website'
}
},
{ name: 'Infobox family',
format: '| ________________ = _\n',
parameters: {
'caste': false,
'birth_place': false,
'url': 'website'
}
},
{ name: 'Infobox figure skater',
format: '| ________________________ = _\n',
parameters: {
'imagesize': 'image_size',
'fullname': 'full_name',
'medaltemplates': 'medals',
'medaltemplates-expand': 'medals-expand',
'show-medals': 'medals-expand'
}
},
{ name: 'Infobox flash series',
format: '| _______________ = _\n',
parameters: {
'content license': 'content_license',
'devise': 'creator',
'voice-actor': 'voice_actor',
'launch date': 'launch_date',
'launchdate': 'launch_date',
'url': 'website'
}
},
{ name: 'Infobox football biography',
format: '| ______________ = _\n'
},
{ name: 'Infobox football club',
format: '| _____________ = _\n'
},
{ name: 'Infobox football official',
format: '| ___________________ = _\n'
},
{ name: 'Infobox gymnast',
format: '| __________________ = _\n',
parameters: {
'gymnastname': 'name',
'imagesize': 'image_size',
'birthdate': 'birth_date',
'birthplace': 'birth_place',
'deathdate': 'death_date',
'deathplace': 'death_place'
}
},
{ name: 'Infobox horse person',
format: '| _____________________ = _\n',
parameters: {
'url': 'website'
}
},
{ name: 'Infobox horseracing personality',
format: '| ________________ = _\n',
parameters: {
'imagesize': 'image_size',
'url': 'website'
}
},
{ name: 'Infobox hospital',
format: '| ___________ = _\n',
parameters: {
'Address': 'address',
'Affiliation': 'affiliation',
'Beds': 'beds',
'Caption': 'caption',
'Certification': 'certification',
'Closed': 'closed',
'Coordinates': 'coordinates',
'Country': 'country',
'Demolished': 'demolished',
'Emergency': 'emergency',
'Founded': 'founded',
'Funding': 'funding',
'HealthCare': 'healthcare',
'Helipad': 'helipad',
'Image': 'image',
'Location': 'location',
'Logo': 'logo',
'Logo Size': 'logo_size',
'Name': 'name',
'Network': 'network',
'NRHP': 'nrhp',
'Org/Group': 'org/group',
'Patron': 'patron',
'Region': 'region',
'Speciality': 'speciality',
'Specialty': 'specialty',
'Standards': 'standards',
'State': 'state',
'Type': 'type',
'Website': 'website',
'Wiki-Links': 'other_links'
}
},
{ name: 'Infobox ice hockey player',
format: '| _______________ = _\n'
},
{ name: 'Infobox journal',
format: '| _____________ = _\n',
parameters: {
'formername': 'former_name',
'formernames': 'former_names',
'url': 'website'
}
},
{ name: 'Infobox legislature',
format: '| __________________ = _\n'
},
{ name: 'Infobox martial artist',
format: '| ________________ = _\n',
parameters: {
'imagesize': 'image_size',
'birthname': 'birth_name',
'url': 'website'
}
},
{ name: 'Infobox military person',
format: '| ________________ = _\n'
},
{ name: 'Infobox musical artist',
format: '| ___________________ = _\n',
parameters: {
'Name': 'name',
'Img': 'image',
'Img_size': 'image_size',
'Landscape': 'landscape',
'Img_alt': 'alt',
'Img_capt': 'caption',
'Background': 'background',
'Birth_name': 'birth_name',
'Alias': 'alias',
'Origin': 'origin',
'Genre': 'genre',
'Occupation': 'occupation',
'Occupations': 'occupations',
'Instrument': 'instrument',
'Years_active': 'years_active',
'yearsactive': 'years_active',
'Label': 'label',
'Associated_acts': 'associated_acts',
'URL': 'website',
'url': 'website',
'Current_members': 'current_members',
'Past_members': 'past_members',
'Notable_instruments': 'notable_instruments',
'active': 'years_active',
'Active': 'years_active',
'Born': 'birth_date',
'Died': 'death_date',
'age': false,
'Age': false
}
},
{ name: 'Infobox musical artistX',
format: '| ___________________ = _\n',
parameters: {
'origin': 'birth_date = \n| birth_place = \n| origin',
'birth_name': 'birth_name = <!-- if different -->\n| birth_name'
}
},
{ name: 'Infobox national military',
format: '| __________________ = _\n',
parameters: {
'url': 'website'
}
},
{ name: 'Infobox NFL biography',
format: '| ___________________ = _\n',
parameters: {
'weight_lbs': 'weight_lb'
}
},
{ name: 'Infobox noble',
format: '| _________________ = _\n',
parameters: {
'date of christening': 'christening_date',
'place of christening': 'christening_place',
'date of burial': 'burial_date',
'place of burial': 'burial_place',
'url': 'website'
}
},
{ name: 'Infobox officeholder',
format: '| __________________ = _\n',
parameters: {
'image name': 'image',
'width': 'image_size',
'imagesize': 'image_size',
'majorityleader': 'majority_leader',
'minorityleader': 'minority_leader',
'termlabel': 'term_label',
'termstart': 'term_start',
'termend': 'term_end',
'preceded': 'predecessor',
'succeeded': 'successor',
'majorityleader1': 'majority_leader1',
'minorityleader1': 'minority_leader1',
'termlabel1': 'term_label1',
'termstart1': 'term_start1',
'termend1': 'term_end1',
'preceded1': 'predecessor1',
'succeeded1': 'successor1',
'majorityleader2': 'majority_leader2',
'minorityleader2': 'minority_leader2',
'termlabel2': 'term_label2',
'termstart2': 'term_start2',
'termend2': 'term_end2',
'preceded2': 'predecessor2',
'succeeded2': 'successor2',
'majorityleader3': 'majority_leader3',
'minorityleader3': 'minority_leader3',
'termlabel3': 'term_label3',
'termstart3': 'term_start3',
'termend3': 'term_end3',
'preceded3': 'predecessor3',
'succeeded3': 'successor3',
'majorityleader4': 'majority_leader4',
'minorityleader4': 'minority_leader4',
'termlabel4': 'term_label4',
'termstart4': 'term_start4',
'termend4': 'term_end4',
'preceded4': 'predecessor4',
'succeeded4': 'successor4',
'majorityleader5': 'majority_leader5',
'minorityleader5': 'minority_leader5',
'termlabel5': 'term_label5',
'termstart5': 'term_start5',
'termend5': 'term_end5',
'preceded5': 'predecessor5',
'succeeded5': 'successor5',
'birthname': 'birth_name',
'restingplace': 'resting_place',
'restingplacecoordinates': 'resting_place_coordinates',
'alma-mater': 'alma_mater'
}
},
{ name: 'Infobox congressman',
format: '| __________________ = _\n',
parameters: {
'image name': 'image',
'width': 'image_size',
'imagesize': 'image_size',
'majorityleader': 'majority_leader',
'minorityleader': 'minority_leader',
'termlabel': 'term_label',
'termstart': 'term_start',
'termend': 'term_end',
'preceded': 'predecessor',
'succeeded': 'successor',
'majorityleader1': 'majority_leader1',
'minorityleader1': 'minority_leader1',
'termlabel1': 'term_label1',
'termstart1': 'term_start1',
'termend1': 'term_end1',
'preceded1': 'predecessor1',
'succeeded1': 'successor1',
'majorityleader2': 'majority_leader2',
'minorityleader2': 'minority_leader2',
'termlabel2': 'term_label2',
'termstart2': 'term_start2',
'termend2': 'term_end2',
'preceded2': 'predecessor2',
'succeeded2': 'successor2',
'majorityleader3': 'majority_leader3',
'minorityleader3': 'minority_leader3',
'termlabel3': 'term_label3',
'termstart3': 'term_start3',
'termend3': 'term_end3',
'preceded3': 'predecessor3',
'succeeded3': 'successor3',
'majorityleader4': 'majority_leader4',
'minorityleader4': 'minority_leader4',
'termlabel4': 'term_label4',
'termstart4': 'term_start4',
'termend4': 'term_end4',
'preceded4': 'predecessor4',
'succeeded4': 'successor4',
'majorityleader5': 'majority_leader5',
'minorityleader5': 'minority_leader5',
'termlabel5': 'term_label5',
'termstart5': 'term_start5',
'termend5': 'term_end5',
'preceded5': 'predecessor5',
'succeeded5': 'successor5',
'birthname': 'birth_name',
'restingplace': 'resting_place',
'restingplacecoordinates': 'resting_place_coordinates',
'alma-mater': 'alma_mater'
}
},
{ name: 'Infobox senator',
format: '| __________________ = _\n',
parameters: {
'image name': 'image',
'width': 'image_size',
'imagesize': 'image_size',
'majorityleader': 'majority_leader',
'minorityleader': 'minority_leader',
'termlabel': 'term_label',
'termstart': 'term_start',
'termend': 'term_end',
'preceded': 'predecessor',
'succeeded': 'successor',
'majorityleader1': 'majority_leader1',
'minorityleader1': 'minority_leader1',
'termlabel1': 'term_label1',
'termstart1': 'term_start1',
'termend1': 'term_end1',
'preceded1': 'predecessor1',
'succeeded1': 'successor1',
'majorityleader2': 'majority_leader2',
'minorityleader2': 'minority_leader2',
'termlabel2': 'term_label2',
'termstart2': 'term_start2',
'termend2': 'term_end2',
'preceded2': 'predecessor2',
'succeeded2': 'successor2',
'majorityleader3': 'majority_leader3',
'minorityleader3': 'minority_leader3',
'termlabel3': 'term_label3',
'termstart3': 'term_start3',
'termend3': 'term_end3',
'preceded3': 'predecessor3',
'succeeded3': 'successor3',
'majorityleader4': 'majority_leader4',
'minorityleader4': 'minority_leader4',
'termlabel4': 'term_label4',
'termstart4': 'term_start4',
'termend4': 'term_end4',
'preceded4': 'predecessor4',
'succeeded4': 'successor4',
'majorityleader5': 'majority_leader5',
'minorityleader5': 'minority_leader5',
'termlabel5': 'term_label5',
'termstart5': 'term_start5',
'termend5': 'term_end5',
'preceded5': 'predecessor5',
'succeeded5': 'successor5',
'birthname': 'birth_name',
'restingplace': 'resting_place',
'restingplacecoordinates': 'resting_place_coordinates',
'alma-mater': 'alma_mater'
}
},
{ name: 'Infobox state representative',
format: '| __________________ = _\n',
parameters: {
'image name': 'image',
'width': 'image_size',
'imagesize': 'image_size',
'majorityleader': 'majority_leader',
'minorityleader': 'minority_leader',
'termlabel': 'term_label',
'termstart': 'term_start',
'termend': 'term_end',
'preceded': 'predecessor',
'succeeded': 'successor',
'majorityleader1': 'majority_leader1',
'minorityleader1': 'minority_leader1',
'termlabel1': 'term_label1',
'termstart1': 'term_start1',
'termend1': 'term_end1',
'preceded1': 'predecessor1',
'succeeded1': 'successor1',
'majorityleader2': 'majority_leader2',
'minorityleader2': 'minority_leader2',
'termlabel2': 'term_label2',
'termstart2': 'term_start2',
'termend2': 'term_end2',
'preceded2': 'predecessor2',
'succeeded2': 'successor2',
'majorityleader3': 'majority_leader3',
'minorityleader3': 'minority_leader3',
'termlabel3': 'term_label3',
'termstart3': 'term_start3',
'termend3': 'term_end3',
'preceded3': 'predecessor3',
'succeeded3': 'successor3',
'majorityleader4': 'majority_leader4',
'minorityleader4': 'minority_leader4',
'termlabel4': 'term_label4',
'termstart4': 'term_start4',
'termend4': 'term_end4',
'preceded4': 'predecessor4',
'succeeded4': 'successor4',
'majorityleader5': 'majority_leader5',
'minorityleader5': 'minority_leader5',
'termlabel5': 'term_label5',
'termstart5': 'term_start5',
'termend5': 'term_end5',
'preceded5': 'predecessor5',
'succeeded5': 'successor5',
'birthname': 'birth_name',
'restingplace': 'resting_place',
'restingplacecoordinates': 'resting_place_coordinates',
'alma-mater': 'alma_mater'
}
},
{ name: 'Infobox state senator',
format: '| __________________ = _\n',
parameters: {
'image name': 'image',
'width': 'image_size',
'imagesize': 'image_size',
'majorityleader': 'majority_leader',
'minorityleader': 'minority_leader',
'termlabel': 'term_label',
'termstart': 'term_start',
'termend': 'term_end',
'preceded': 'predecessor',
'succeeded': 'successor',
'majorityleader1': 'majority_leader1',
'minorityleader1': 'minority_leader1',
'termlabel1': 'term_label1',
'termstart1': 'term_start1',
'termend1': 'term_end1',
'preceded1': 'predecessor1',
'succeeded1': 'successor1',
'majorityleader2': 'majority_leader2',
'minorityleader2': 'minority_leader2',
'termlabel2': 'term_label2',
'termstart2': 'term_start2',
'termend2': 'term_end2',
'preceded2': 'predecessor2',
'succeeded2': 'successor2',
'majorityleader3': 'majority_leader3',
'minorityleader3': 'minority_leader3',
'termlabel3': 'term_label3',
'termstart3': 'term_start3',
'termend3': 'term_end3',
'preceded3': 'predecessor3',
'succeeded3': 'successor3',
'majorityleader4': 'majority_leader4',
'minorityleader4': 'minority_leader4',
'termlabel4': 'term_label4',
'termstart4': 'term_start4',
'termend4': 'term_end4',
'preceded4': 'predecessor4',
'succeeded4': 'successor4',
'majorityleader5': 'majority_leader5',
'minorityleader5': 'minority_leader5',
'termlabel5': 'term_label5',
'termstart5': 'term_start5',
'termend5': 'term_end5',
'preceded5': 'predecessor5',
'succeeded5': 'successor5',
'birthname': 'birth_name',
'restingplace': 'resting_place',
'restingplacecoordinates': 'resting_place_coordinates',
'alma-mater': 'alma_mater'
}
},
{ name: 'Infobox governor',
format: '| __________________ = _\n',
parameters: {
'image name': 'image',
'width': 'image_size',
'imagesize': 'image_size',
'majorityleader': 'majority_leader',
'minorityleader': 'minority_leader',
'termlabel': 'term_label',
'termstart': 'term_start',
'termend': 'term_end',
'preceded': 'predecessor',
'succeeded': 'successor',
'majorityleader1': 'majority_leader1',
'minorityleader1': 'minority_leader1',
'termlabel1': 'term_label1',
'termstart1': 'term_start1',
'termend1': 'term_end1',
'preceded1': 'predecessor1',
'succeeded1': 'successor1',
'majorityleader2': 'majority_leader2',
'minorityleader2': 'minority_leader2',
'termlabel2': 'term_label2',
'termstart2': 'term_start2',
'termend2': 'term_end2',
'preceded2': 'predecessor2',
'succeeded2': 'successor2',
'majorityleader3': 'majority_leader3',
'minorityleader3': 'minority_leader3',
'termlabel3': 'term_label3',
'termstart3': 'term_start3',
'termend3': 'term_end3',
'preceded3': 'predecessor3',
'succeeded3': 'successor3',
'majorityleader4': 'majority_leader4',
'minorityleader4': 'minority_leader4',
'termlabel4': 'term_label4',
'termstart4': 'term_start4',
'termend4': 'term_end4',
'preceded4': 'predecessor4',
'succeeded4': 'successor4',
'majorityleader5': 'majority_leader5',
'minorityleader5': 'minority_leader5',
'termlabel5': 'term_label5',
'termstart5': 'term_start5',
'termend5': 'term_end5',
'preceded5': 'predecessor5',
'succeeded5': 'successor5',
'birthname': 'birth_name',
'restingplace': 'resting_place',
'restingplacecoordinates': 'resting_place_coordinates',
'alma-mater': 'alma_mater'
}
},
{ name: 'Infobox judge',
format: '| __________________ = _\n',
parameters: {
'image name': 'image',
'width': 'image_size',
'imagesize': 'image_size',
'majorityleader': 'majority_leader',
'minorityleader': 'minority_leader',
'termlabel': 'term_label',
'termstart': 'term_start',
'termend': 'term_end',
'preceded': 'predecessor',
'succeeded': 'successor',
'majorityleader1': 'majority_leader1',
'minorityleader1': 'minority_leader1',
'termlabel1': 'term_label1',
'termstart1': 'term_start1',
'termend1': 'term_end1',
'preceded1': 'predecessor1',
'succeeded1': 'successor1',
'majorityleader2': 'majority_leader2',
'minorityleader2': 'minority_leader2',
'termlabel2': 'term_label2',
'termstart2': 'term_start2',
'termend2': 'term_end2',
'preceded2': 'predecessor2',
'succeeded2': 'successor2',
'majorityleader3': 'majority_leader3',
'minorityleader3': 'minority_leader3',
'termlabel3': 'term_label3',
'termstart3': 'term_start3',
'termend3': 'term_end3',
'preceded3': 'predecessor3',
'succeeded3': 'successor3',
'majorityleader4': 'majority_leader4',
'minorityleader4': 'minority_leader4',
'termlabel4': 'term_label4',
'termstart4': 'term_start4',
'termend4': 'term_end4',
'preceded4': 'predecessor4',
'succeeded4': 'successor4',
'majorityleader5': 'majority_leader5',
'minorityleader5': 'minority_leader5',
'termlabel5': 'term_label5',
'termstart5': 'term_start5',
'termend5': 'term_end5',
'preceded5': 'predecessor5',
'succeeded5': 'successor5',
'birthname': 'birth_name',
'restingplace': 'resting_place',
'restingplacecoordinates': 'resting_place_coordinates',
'alma-mater': 'alma_mater'
}
},
{ name: 'Infobox Olympic event',
format: '| ___________ = _\n'
},
{ name: 'Infobox park',
format: '| ______________ = _\n',
parameters: {
'photo': 'image',
'photo_width': 'image_size',
'photo_alt': 'image_alt',
'photo_caption': 'image_caption',
'Motto': 'motto'
}
},
{ name: 'Infobox person',
format: '| ________________ = _\n',
parameters: {
'honorific prefix': 'honorific_prefix',
'honorific suffix': 'honorific_suffix',
'imagesize': 'image_size',
'image size': 'image_size',
'birthname': 'birth_name',
'death cause': 'death_cause',
'body discovered': 'body_discovered',
'restingplace': 'resting_place',
'resting place': 'resting_place',
'restingplacecoordinates': 'resting_place_coordinates',
'resting place coordinates': 'resting_place_coordinates',
'othername': 'other_names',
'other names': 'other_names',
'alias': 'other_names',
'alma mater': 'alma_mater',
'yearsactive': 'years_active',
'years active': 'years_active',
'known for': 'known_for',
'known': 'known_for',
'notable works': 'notable_works',
'home town': 'home_town',
'criminal charge': 'criminal_charge',
'criminal penalty': 'criminal_penalty',
'criminal status': 'criminal_status',
'judicial status': 'judicial_status',
'domesticpartner': 'domestic_partner',
'networth': 'net_worth',
'net worth': 'net_worth',
'relations': 'relatives',
'homepage': 'website',
'URL': 'website',
'signature alt': 'signature_alt'
}
},
{ name: 'Infobox philosopher',
format: '| _________________ = _\n',
parameters: {
'books': 'notable_works'
}
},
{ name: 'Infobox poker player',
format: '| __________________ = _\n',
parameters: {
'imagesize': 'image_size',
'hometown': 'residence',
'wsop bracelet count': 'birth_date = \n| birth_place = \n| wsop bracelet count',
'multi-year wsop winner': false
}
},
{ name: 'Infobox port',
format: '| ________________ = _\n',
parameters: {
'imagesize': 'image_size',
'url': 'website'
}
},
{ name: 'Infobox presenter',
format: '| ________________ = _\n',
parameters: {
'imagesize': 'image_size',
'web': 'website',
'url': 'website'
}
},
{ name: 'Infobox pro football player',
format: '| __________________ = _\n',
parameters: {
'imagesize': 'image_size'
}
},
{ name: 'Infobox podcast',
format: '| ____________________ = _\n',
parameters: {
'picture format': 'picture_format',
'cite_for': 'cited_for',
'cite_as': 'cited_as',
'url': 'website',
'Misc': 'misc',
'Audio Caption': 'audio caption',
'Audio caption': 'audio caption'
}
},
{ name: 'Infobox product',
format: '| ________________ = _\n',
parameters: {
'url': 'website'
}
},
{ name: 'Infobox publisher',
format: '| ____________ = _\n',
parameters: {
'imagesize': 'image_size',
'image size': 'image_size',
'image caption': 'caption',
'image_caption': 'caption',
'url': 'website'
}
},
{ name: 'Infobox racecourse',
format: '| ____________ = _\n',
parameters: {
'Name': 'name',
'Image': 'image',
'imagesize': 'image_size',
'Caption': 'caption',
'Location': 'location',
'Coordinates': 'coordinates',
'Owner': 'owner',
'Operator': 'operator',
'Opened': 'opened',
'Closed': 'closed',
'Capacity': 'capacity',
'Channel': 'channel',
'RaceType': 'racetype',
'CourseType': 'coursetype',
'NotableRaces': 'notableraces',
'Handle': 'handle',
'Attendance': 'attendance',
'Website': 'website',
'Prev': false,
'Next': false
}
},
{ name: 'Infobox racing driver',
format: '| _________________ = _\n',
parameters: {
'imagesize': 'image_size',
'medaltemplates': 'medals',
'medaltemplates-expand': 'medals-expand',
'show-medals': 'medals-expand'
}
},
{ name: 'Infobox record label',
format: '| ___________ = _\n',
parameters: {
'url': 'website'
}
},
{ name: 'Infobox religious biography',
format: '| ________________ = _\n',
parameters: {
'native name lang': 'native_name_lang',
'other name': 'other_name',
'dharma name': 'dharma_name',
'monastic name': 'monastic_name',
'pen name': 'pen_name',
'posthumous name': 'posthumous_name',
'resting place': 'resting_place',
'resting place coordinates': 'resting_place_coordinates',
'Title': 'title',
'Period': 'period',
'Predecessor': 'predecessor',
'Successor': 'successor',
'Reason': 'reason',
'Rank': 'rank',
'reincarnation of': 'reincarnation_of',
'previous post': 'previous_post',
'present post': 'present_post',
'color': false,
'ethnicity': false,
'education': false
}
},
{ name: 'Infobox residential college',
format: '| ___________________ = _\n',
parameters: {
'photo': 'image',
'picture': 'image',
'photo_size': 'image_size',
'college_name': 'full_name',
'homepage': 'website',
'url': 'website'
}
},
{ name: 'Infobox restaurant',
format: '| ___________________ = _\n',
parameters: {
'phone': 'other-information',
'telephone': 'other-information',
'zip-code': 'zip'
}
},
{ name: 'Infobox rugby biography',
format: '| _ = _\n', // _________________
parameters: {
'birthname': 'birth_name',
'url': 'website'
}
},
{ name: 'Infobox rugby union biography',
format: '| ______________ = _\n'
},
{ name: 'Infobox sailor',
format: '| ______________ = _\n',
parameters: {
'imagesize': 'image_size'
}
},
{ name: 'Infobox school',
format: '| ______________________ = _\n',
parameters: {
'Location': 'location',
'Region': 'region',
'Opened': 'opened',
'Number': 'number',
'schoolnumber': 'school_number',
'school code': 'school_code',
'Principal': 'principal',
'campus director': 'campus_director',
'head of school': 'head_of_school',
'head teacher': 'head_teacher',
'number_of_staff': 'staff',
'number of staff': 'staff',
'num_employ': 'employees',
'Years': 'years',
'years taught': 'years_taught',
'nursery years taught': 'nursery_years_taught',
'primary years taught': 'primary_years_taught',
'secondary years taught': 'secondary_years_taught',
'age range': 'age_range',
'Students': 'students',
'number of pupils': 'pupils',
'number_of_pupils': 'pupils',
'International_Students': 'international_students',
'System': 'system',
'classes offered': 'classes_offered',
'Classes offered': 'classes_offered',
'medium of language': 'medium_of_language',
'medium': 'medium_of_language',
'mediums': 'medium_of_language',
'schedtyp': 'schedule_type',
'Hours_in_Day': 'hours_in_day',
'Campuses': 'campuses',
'campus size': 'campus_size',
'campus type': 'campus_type',
'schoolcolours': 'school_colours',
'schoolcolors': 'school_colors',
'fightsong': 'fight_song',
'athletics conference': 'athletics_conference',
'athletic_conference': 'athletics_conference',
'athletic conference': 'athletics_conference',
'conference': 'athletics_conference',
'team name': 'team_name',
'teamname': 'team_name',
'National_ranking': 'national_ranking',
'testaverage': 'test_average',
'bar pass rate': 'bar_pass_rate',
'annual tuition': 'annual_tuition',
'Graduates': 'graduates',
'motto_pl': 'mottoes',
'founder_pl': 'founders',
'specialist_pl': 'specialists',
'homepage': 'website',
'url': 'website'
}
},
{ name: 'Infobox scientist',
format: '| _________________ = _\n',
parameters: {
'imagesize': 'image_size',
'prizes': 'awards'
}
},
{ name: 'Infobox snooker player',
format: '| _____________ = _\n'
},
{ name: 'Infobox speed skater',
format: '| ______________ = _\n',
parameters: {
'imagesize': 'image_size'
}
},
{ name: 'Infobox sportsperson',
format: '| ________________ = _\n',
parameters: {
'imagesize': 'image_size',
'fullname': 'full_name',
'birthname': 'birth_name',
'restingplace': 'resting_place',
'resting place': 'resting_place',
'restingplacecoordinates': 'resting_place_coordinates',
'resting place coordinates': 'resting_place_coordinates',
'alma mater': 'alma_mater',
'yearsactive': 'years_active',
'years active': 'years_active',
'other-interests': 'other_interests',
'formerpartner': 'former_partner',
'Disability Class': 'disability_class'
}
},
{ name: 'Infobox swimmer',
format: '| _ = _\n',
parameters: {
'imagesize': 'image_size'
}
},
{ name: 'Infobox table tennis player',
format: '| ________________ = _\n',
parameters: {
'imagesize': 'image_size'
}
},
{ name: 'Infobox tennis biography',
format: '| ___________________________ = _\n',
parameters: {
'fullname': 'full_name',
'medaltemplates': 'medals',
'medaltemplates-expand': 'medals-expand',
'medaltemplates-title': 'medals-title'
}
},
{ name: 'Infobox volleyball biography',
format: '| ________________ = _\n',
parameters: {
'imagesize': 'image_size'
}
},
{ name: 'Infobox war faction',
format: '| ________________ = _\n',
parameters: {
'previous': 'originated_as',
'next': 'became',
'split': 'split_to',
'url': 'website'
}
},
{ name: 'Infobox writer',
format: '| ________________ = _\n',
parameters: {
'imagesize': 'image_size',
'birthname': 'birth_name',
'homepage': 'website',
'URL': 'website',
'yearsactive': 'years_active',
'years active': 'years_active',
'home_town': false,
'known_for': false,
'othername': false,
'residence': false
}
},
{ name: 'Compact election box no change', format: ' | __________________________ = _\n' },
{ name: 'U.S. judgeship row', format: ' | ____________ = _\n' },
{ name: 'U.S. judgeship row Current', format: ' | ____________ = _\n' },
{ name: 'U.S. judgeship row Former', format: ' | ____________ = _\n' },
{ name: 'NavboxX', format: '| _ = _\n' },
{ name: 'NFL predraft', format: '| ____________ = _\n' },
{ name: 'Stub category', format: '| _ = _\n' },
{ name: 'succession box', format: '| _ = _\n' },
{ name: 'USRepSuccessionBox', format: '| _ = _\n' },
{ name: 'Waterpolobox', format: '| _ = _\n' },
{ name: 'Wikipedia category', format: '| _ = _\n' }
];
var autoFormatReplacements = [
// misc
[ / =\n/g, ' = \n' ], // add trailing space after = for empty infobox parameters
[ /\{\{ /g, '{{' ], // remove space after {{
[ /\|tau\]\]/g, '|τ]]' ], // fix unwanted change in category sorting
[ /b\. *(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)/g, 'born $1' ], // replace "b. Jan" with "born Jan"
[ /b\. *([0-9]{1,2}) *(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)/g, 'born $1 $2' ], // replace "b. 31 Jan" with "born 31 Jan"
[ /(born|b\.) \{\{ *birth ?date *\|/ig, 'born {{SUBST:User:Zyxw/bd|' ], // fix duplicated birth date templates
[ /(\| *height *= *\{\{convert\| *[1-2]),([0-9]{1,2} *\| *m)/ig, '$1.$2' ], // fix height with comma in {{convert}}
[ /\n\{\{Baseballstats/ig, '\n* {{Baseball stats' ], // start line with asterisk
[ /\n\{\{Basketballstats/ig, '\n* {{Basketball stats' ], // start line with asterisk
[ /\n\{\{Footballstats/ig, '\n* {{Football stats' ], // start line with asterisk
[ /\n(== *)External Links( *==)/, '\n$1External links$2' ],
[ /([0-9]{4})-present/ig, '$1–present' ],
// templates renamed
[ /\{\{airport-dest-list( |\||\}|\n)/ig, '{{airport destination list$1' ],
[ /\{\{Baseballstats( |\||\}|\n)/ig, '{{Baseball stats$1' ],
[ /\{\{Basketballstats( |\||\}|\n)/ig, '{{Basketball stats$1' ],
[ /\{\{b-da( |\||\}|\n)/ig, '{{birth-date and age$1' ],
[ /\{\{bda( |\||\}|\n)/ig, '{{birth date and age$1' ],
[ /\{\{citebook( |\||\}|\n)/ig, '{{cite book$1' ],
[ /\{\{citenews( |\||\}|\n)/ig, '{{cite news$1' ],
[ /\{\{citeweb( |\||\}|\n)/ig, '{{cite web$1' ],
[ /\{\{Current Iowa Representatives( |\||\}|\n)/ig, '{{Iowa House of Representatives$1' ],
[ /\{\{d-da( |\||\}|\n)/ig, '{{death-date and age$1' ],
[ /\{\{dda( |\||\}|\n)/ig, '{{death date and age$1' ],
[ /\{\{eliteprospects( |\||\}|\n)/ig, '{{EliteProspects$1' ],
[ /\{\{empty category( |\||\}|\n)/ig, '{{Possibly empty category$1' ],
[ /\{\{Find a grave( |\||\}|\n)/ig, '{{Find a Grave$1' ],
[ /\{\{Findagrave( |\||\}|\n)/ig, '{{Find a Grave$1' ],
[ /\{\{FAG( |\||\}|\n)/ig, '{{Find a Grave$1' ],
[ /\{\{Fag( |\||\}|\n)/ig, '{{Find a Grave$1' ],
[ /\{\{Fg( |\||\}|\n)/ig, '{{Find a Grave$1' ],
[ /\{\{FIBT profile( |\||\}|\n)/ig, '{{IBSF$1' ],
[ /\{\{fig( |\||\}|\n)/ig, '{{FIG$1' ],
[ /\{\{Footballstats( |\||\}|\n)/ig, '{{Football stats$1' ],
[ /\{\{hockeydb( |\||\}|\n)/ig, '{{HockeyDB$1' ],
[ /\{\{Icehockeystats( |\||\}|\n)/ig, '{{Ice hockey stats$1' ],
[ /\{\{Ice Hockey Stats( |\||\}|\n)/ig, '{{Ice hockey stats$1' ],
[ /\{\{Infobox athlete( |\||\}|\n)/ig, '{{Infobox sportsperson$1' ],
[ /\{\{Infobox baseball player( |\||\}|\n)/ig, '{{Infobox baseball biography$1' ],
[ /\{\{Infobox basketball player( |\||\}|\n)/ig, '{{Infobox basketball biography$1' ],
[ /\{\{Infobox CFL player( |\||\}|\n)/ig, '{{Infobox CFL biography$1' ],
[ /\{\{Infobox gridiron football person( |\||\}|\n)/ig, '{{Infobox CFL biography$1' ],
[ /\{\{Infobox MLB player( |\||\}|\n)/ig, '{{Infobox baseball biography$1' ],
[ /\{\{Infobox NBA biography( |\||\}|\n)/ig, '{{Infobox basketball biography$1' ],
[ /\{\{Infobox NFL player( |\||\}|\n)/ig, '{{Infobox NFL biography$1' ],
[ /\{\{Infobox politician( |\||\}|\n)/ig, '{{Infobox officeholder$1' ],
[ /\{\{Infobox volleyball player( |\||\}|\n)/ig, '{{Infobox volleyball biography$1' ],
[ /\{\{ISAF sailor( |\||\}|\n)/ig, '{{World Sailing profile$1' ],
[ /\{\{IBSF profile( |\||\}|\n)/ig, '{{IBSF$1' ],
[ /\{\{ISSF name( |\||\}|\n)/ig, '{{ISSF$1' ],
[ /\{\{ISU name( |\||\}|\n)/ig, '{{ISU figure skater$1' ],
[ /\{\{ITF (male|female) profile( |\||\}|\n)/ig, '{{ITF profile$2' ],
[ /\{\{(L)ang(?:uage)?[ \-]?icon( |\||\}|\n)/ig, '{{$1ink language$2' ],
[ /\{\{spanish name( 2)?( |\||\}|\n)/ig, '{{Spanish name$2' ],
[ /\{\{url( |\||\}|\n)/ig, '{{URL$1' ],
[ /\{\{USAGymnastics name( |\||\}|\n)/ig, '{{USA Gymnastics$1' ],
[ /\{\{USAGymnasticsName( |\||\}|\n)/ig, '{{USA Gymnastics$1' ],
[ /\{\{wta( |\||\}|\n)/ig, '{{WTA$1' ],
[ /\{\{worldcurling( |\||\}|\n)/ig, '{{World Curling Federation$1' ],
[ /\{\{worldcurlingtour( |\||\}|\n)/ig, '{{World Curling Tour$1' ],
[ /\{\{worldcurl( |\||\}|\n)/ig, '{{World Curling Tour$1' ],
// convert {{USCSub}} with only two parameters to {{USC}}
[
/\|etseq\}\}/g,
'}} [[et seq.]]'
], // fix invalid subsection link
[
/\{\{USCSub\|([0-9]{1,2})\|([0-9a-z]{1,7})\}\}/ig,
'{{USC|$1|$2}}'
],
// renamed URLs
[ 'http://www.collegefootball.org/famersearch.php?id=', 'http://www.footballfoundation.org/Programs/CollegeFootballHallofFame/SearchDetail.aspx?id=' ],
[ 'http://www.collegefootball.org/famer_selected.php?id=', 'http://www.footballfoundation.org/Programs/CollegeFootballHallofFame/SearchDetail.aspx?id=' ],
[ 'http://www.profootballhof.com/hof/member.jsp?PLAYER_ID=', 'http://www.profootballhof.com/hof/member.aspx?PlayerId=' ],
[ 'http://www.profootballhof.com/hof/member.jsp?player_id=', 'http://www.profootballhof.com/hof/member.aspx?PlayerId=' ],
[ 'http://www.profootballhof.com/hof/member.aspx?PLAYER_ID=', 'http://www.profootballhof.com/hof/member.aspx?PlayerId=' ],
[ 'http://www.profootballhof.com/hof/member.aspx?player_id=', 'http://www.profootballhof.com/hof/member.aspx?PlayerId=' ],
// convert bare ISSF URL to ext link
[
/http:\/\/www\.issf-sports\.org\/athletes\/athlete\.ashx\?personissfid=([A-Z]{6}[0-9]{10})/g,
'\n==External links==\n* {{ISSF name | $1 }}'
],
// athletics related
[ /\{\{iaaf name/ig, '{{IAAF' ],
[ /\| *?letter *?= *?[A-Za-z] *?([\|\}])/g, '$1' ], // remove deprecated letter parameter and value from Template:IAAF
[ '{{AchievementTable', '{{AchievementTable|width=auto' ],
[ '{{AchievementTable|width=auto|width=auto', '{{AchievementTable|width=auto' ],
[
/\{\{MedalSport ?\| ?(Men's|Women's) \[\[Athletics \(sport\)\|Athletics\]\] ?\}\}/ig,
'{{MedalSport | $1 [[athletics (sport)|athletics]]}}'
],
[
/\{\{MedalSport ?\| ?(Men's|Women's) Athletics ?\}\}/ig,
'{{MedalSport | $1 [[athletics (sport)|athletics]]}}'
],
// rowing related
[
/\{\{MedalCountry ?\| ?(\{\{[A-Z]{3}\}\}) ?\}\}\n\{\{MedalSport ?\| ?\[\[Rowing at the Summer Olympics\|(Men's|Women's) Rowing\]\] ?\}\}\n\{\{MedalCompetition ?\| ?\[\[Olympic Games\]\] ?\}\}/ig,
'{{MedalSport | $2 [[rowing (sport)|rowing]] }}\n{{MedalCountry | $1 }}\n{{MedalCompetition | [[Rowing at the Summer Olympics|Olympic Games]]}}'
],
[
/\{\{MedalTop\}\}\n\{\{MedalSport ?\| ?(Men's|Women's) \[\[Rowing at the Summer Olympics\|Rowing\]\] ?\}\}/ig,
'{{MedalTableTop}}\n{{MedalSport | $1 [[rowing (sport)|rowing]] }}\n{{MedalCountry | {{unk}} }}\n{{MedalCompetition | [[Rowing at the Summer Olympics|Olympic Games]]}}'
],
[
/\{\{MedalSport ?\| ?(Men's|Women's) \[\[Rowing \(sport\)\|Rowing\]\] ?\}\}/ig,
'{{MedalSport | $1 [[rowing (sport)|rowing]]}}'
],
[
/\{\{(MedalSport|MedalCompetition|Medal\|Comp) ?\| ?\[\[Rowing World Championships/g,
'{{MedalCompetition | [[World Rowing Championships'
],
[
/\{\{(MedalSport|MedalCompetition|Medal\|Comp) ?\| ?\[\[(Olympic Games|World Rowing Championships|World Rowing Championships\|World Championships|European Rowing Championships|European Rowing Championships\|European Championships)\]\] ?\}\}/g,
'{{MedalCompetition | [[$2]]}}'
],
[ /\[\[Rowing \(sport\)\|row/ig, '[[rowing (sport)|row' ],
[ /\[\[Sport rowing\|/ig, '[[rowing (sport)|' ],
[ /\[\[Coxswain\|cox/ig, '[[coxswain (rowing)|cox' ],
// general medal template formatting
[ /\{\{Medal\|?Olympics?\}\}/ig, '{{MedalCompetition | [[Olympic Games]] }}' ],
[ /\{\{Medal\|?WorldChampionships\}\}/ig, '{{MedalCompetition | World Championships }}' ],
[ /\{\{Medal\|?EuropeanChampionships\}\}/ig, '{{MedalCompetition | European Championships }}' ],
[
/\{\{(Medal\|?(?:Sport|Country|Competition|Comp|Gold|Silver|Bronze|Disqualified)) *\| *(.*?) ?\}\}\n/g,
'{{$1 | $2 }}\n'
], // spacing for readability when editing
[
/\]\] *\| *(?![\|])/g,
']] | '
], // spacing before 2nd parameter - replace "]]|" with "]] | " unless followed by another |
[
/\n(\}\}|\{\{MedalBottom\}\})\n?'''/g,
"\n$1\n\n'''"
], // blank line between end of infobox or medal templates and first sentence
[
/\[\[([0-9]{4}) (Summer Olympics|Winter Olympics|World Rowing Championships)\|(.+?(?= [0-9])) ([0-9]{4})\]\]/g,
'[[$1 $2|$4 $3]]'
], // from [[1984 Summer Olympics|Los Angeles 1984]] to [[1984 Summer Olympics|1984 Los Angeles]]
[ /\{\{MedalTop\|?\}\}/ig, '{{MedalTableTop | name = no | medals =\n{{MedalCompetition | [[Olympic Games]] }}' ],
[ /\{\{MedalTableTop\|?\}\}/ig, '{{MedalTableTop | medals =' ],
[ /\{\{MedalBottom\}\}/ig, '}}' ],
[
/(\{\{Medal\|?Country[^\n]*\n)(\{\{Medal\|?Sport[^\n]*\n)/i,
'$2$1'
], // place MedalCountry after MedalSport
// if no ref section
// [ /\.\n\n== ?External links ?==/g, '.\n\n== References ==' ],
// sports-ref citations
[
/(>|\* *)\[?(http:\/\/www\.sports\-reference\.com\/olympics\/athletes\/[a-z]{2}\/[a-z1-9\-]{3,30}\.html) *[A-Za-z \]\-\.]*(\n|<\/ref>)/ig,
'$1{{cite Sports-Reference |url=$2}}$3'
],
[
/\{\{cite web *\| *title *= *Olympics *\| *url *= *(http:\/\/www\.sports\-reference\.com\/olympics\/athletes\/[a-z]{2}\/[a-z1-9\-]{3,30}\.html) *\| *publisher *= *sports\-reference *\| *accessdate *= */ig,
'{{cite Sports-Reference |url=$1 |accessdate='
],
[
/\{\{cite web *\| *url *= *(http:\/\/www\.sports\-reference\.com\/olympics\/athletes\/[a-z]{2}\/[a-z1-9\-]{3,30}\.html) *\| *title *= *([^\|]*)\| *publisher *= *Sports\-reference\.com *\| *accessdate *= */ig,
'{{cite Sports-Reference |url=$1 |title=$2|accessdate='
],
[
/\{\{Sports-reference *\| *id *= */ig,
'{{cite Sports-Reference |url=http://www.sports-reference.com/olympics/athletes/'
],
[
/\{\{Sports-reference *\|/ig,
'{{cite Sports-Reference |url=http://www.sports-reference.com/olympics/athletes/'
],
[
/\{\{Sports-reference\}\}/ig,
'{{cite Sports-Reference}}'
],
[
/\{\{cite Sports\-Reference \|url=([^0-9]*[0-9])([^\.])/ig,
'{{cite Sports-Reference |url=$1.html$2'
], // add .html if missing
[
/\{\{ *cite *sports\-reference *\| *1 *= *([^\|]*)\| *2 *= *([^\|]*)\| *3 *= *([^\}]*)}}/ig,
'{{cite Sports-Reference|title=$1|url=$2|accessdate=$3}}'
],
// replace link with template
[
/\[http:\/\/www\.databaseolympics\.com\/players\/playerpage\.htm\?ilkid=([A-Z0-9%]{5,30}) (Olympics profile|profile|databaseOlympics)\]/ig,
'{{databaseOlympics |id=$1}}'
],
// boxing related
[
/(==Professional boxing record==[\n\r]*?)\{\{[Ss]-start}}([\n\r]*?\|)/g,
'$1{| class="wikitable" style="text-align:center;"$2'
],
[
/\[(http:\/\/boxrec\.com\/list_bouts\.php\?human_id=[0-9]{1,6}&cat=boxer)]/g,
"<ref>[$1 Boxing record for {{PAGENAMEBASE}}]. ''[[BoxRec.com]]''.</ref>"
],
[ '{{boxrec|id=', '{{BoxRec|' ],
[ '|align="center" colspan=8', '| colspan="8"' ],
[ '| align="center" style="border-style:', '| style="border-style:' ],
[
/(\| *)([0-9]{2})\/([0-9]{2})\/([0-9]{4})/g,
'$1$4-$3-$2'
], // replace "| 31/12/2015" with "| 2015-12-31"
[
/(\| *)([0-9]{4})[–—−\/]([0-9]{2})[–—−\/]([0-9]{2})/g,
'$1$2-$3-$4'
], // replace "| 2015–12–31" with "| 2015-12-31" (endash/emdash/minus/slash to hyphen)
// cricket external links
[
/\{\{ *Cricinfo/ig,
'{{ESPNcricinfo'
],
[
/\{\{ *Cricketarchive/ig,
'{{CricketArchive'
],
[
/\{\{ *Yahoo!_Cricket/ig,
'{{Yahoo! Cricket'
],
[
/\{\{ESPNcricinfo *\| *ref *= *[a-z]*\/content\/player\/([0-9]*)\.html/ig,
'{{ESPNcricinfo |id= $1'
],
[
/\{\{CricketArchive *\| *ref *= *Archive\/Players\/[0-9]*\/[0-9]*\/([0-9]*)\.html/ig,
'{{CricketArchive |id= $1'
],
[
/\{\{Yahoo! Cricket *\| *ref *= *player\-profile\/([a-z0-9_\-]*)/ig,
'{{Yahoo! Cricket |id= $1'
],
// infobox image cleanup
[
/(\| *image *= *)(Image:|File:)/g,
'$1'
], // if "| image = File:name" is used, remove unneeded "File:"
// spaces after bullets
[
/(\n[*#]+) *([^\s*#:;])/g,
'$1 $2'
], // space after one or more * or # at start of line
// table spacing for readability when editing
[
/\n\|(?![\s\n\-\+\}\|])/g,
"\n| "
], // space after | at start of line, if not followed by space newline - + } |
[
/\n(\!|\{\||\|\+|\|\-)(?![\s\n])/g,
"\n$1 "
], // space after ! {| |+ |- at start of line, if not followed by space or newline
[
/(\|\||\!\!)(?![\s\n])/g,
"$1 "
], // space after || or !! if not followed by space or newline
[
/([^\s\n])(\|\||\!\!)/g,
"$1 $2"
], // space before || or !! if not preceded by space or newline
[
/(\{\{[a-z]*) \|\| /ig,
"$1||"
], // fix templates changed from "{{abc||" to "{{abc || "
[
/align=("?)(left|right|center)("?) *\| */g,
'align=$1$2$3 | '
], // spacing around | in table rows with align="right", etc.
[
/(background: *|bgcolor=)("?)(#?\w{1,6}|[a-z]{3,20})("?) *\| */g,
'$1$2$3$4 | '
], // spacing around | in table rows with bgcolor=#F9E8C7, bgcolor="red", background: #F9E8C7, etc.
[
/scope=("?)(col|row)("?) *\| */g,
'scope=$1$2$3 | '
], // spacing around | in table rows with scope="col", etc.
[
/span=("?)([1-9]{1,3})("?) *\| */g,
'span=$1$2$3 | '
], // spacing around | in table rows with colspan="13", rowspan="2", etc.
[
/(width="?[0-9]{1,3}%?"?)\|/g,
'$1 | '
], // spacing around | in table rows with width="100", width="5%", etc.
[
/; *"\| */g,
';" | '
], // spacing around | in table rows with ;"
[
/\|\-\n\|\}/g,
'|}'
], // remove unneeded |- (<tr>) at end of table
[
/(\|\-\n)\n/g,
'$1'
], // remove extra blank line after |- in table
[
/\n(\n\|\})/g,
'$1'
], // remove extra blank line before |} in table
[
/(\n\! )\|/g,
'$1'
], // remove unneeded | after !
[
/\n\|\-(\n\|\-)/g,
'$1'
] // remove duplicate |-
];
// end </nowiki>