MediaWiki:Common.js: Difference between revisions
Join date-only research notes and collapse duplicates |
Linkify 5th class as Team IPW Italian 5 |
||
| Line 170: | Line 170: | ||
var name = 'MII ' + num + '-' + letter.toUpperCase(); | var name = 'MII ' + num + '-' + letter.toUpperCase(); | ||
return teamLink(name, num + '-' + letter.toUpperCase()); | return teamLink(name, num + '-' + letter.toUpperCase()); | ||
}); | |||
text = text.replace(/\b(?:IPW\s+)?(?:Italian\s+)?5th\s+class\b/gi, function () { | |||
return teamLink('IPW Italian 5', 'IPW Italian 5'); | |||
}); | }); | ||
text = text.replace(/\bIPW\s+(\d{1,4})\s*[-–]\s*([A-Za-z])\b/gi, function (_, num, letter) { | text = text.replace(/\bIPW\s+(\d{1,4})\s*[-–]\s*([A-Za-z])\b/gi, function (_, num, letter) { | ||