Benutzer:RFF-Bot/Football

aus Wikipedia, der freien Enzyklopädie
oldText = oldText.replace(/prettytable/g, 'wikitable');
oldText = oldText.replace(/align=center/g, 'style="text-align:center;"');
oldText = oldText.replace(/align=left/g, 'style="text-align:left;"');
oldText = oldText.replace(/(#[a-zA-Z0-9]{6})/g, function(v) { return v.toUpperCase(); });
oldText = oldText.replace(/\|-style="/g, '|- style="');
oldText = oldText.replace(/\|-\n(\||!)[ ]*style="[^#]*(#[a-zA-Z0-9]{6});"[ ]*\|[ ]*\n\|[ ]*[^#]*#[fF]{6};[^|]*\|[ ]*([^\n]*)/g, '{{Farblegende|$2|$3}}');
oldText = oldText.replace(/{{Farblegende\|(#[a-zA-Z0-9]{6})\|([^}]*?)([ ]*)}}/g, '{{Farblegende|$1|$2}}');
oldText = oldText.replace(/\|-\n![ ]*style="[^#]*#[fF]{6};"[ ]*\|[ ]*\(([A-Z])\)[ ]*\n\|[ ]*[^#]*#[fF]{6};[^|]*\|[ ]*([^\n]*)/g, "|-\n| '''($1)''' – $2");

oldText = oldText.replace(/{\|([^\n]*\n)(!|{)/g, '{|$1|-\n$2');
return {text: oldText};