User:Dr pda/persondata.js: Difference between revisions

Content deleted Content added
adding basic functionality for articles with no infobox
m fix to cope with mf=yes etc in {{birth date and age}} templates, and also years before 1000
Line 49:
//Remove references, birth/death date and age templates
template = template.replace(/<ref.*(\/ref>|$)/gm,'');
template = template.replace(/{{(?:birth|death) date (?:and age)?\|(\d{1,4})\|(\d{1,2})\|(\d{1,2})[\|\d.]*}}/g,"$1-$2-$3");
template = template.replace(/\[\[Image:Flag.*px\]\]/ig,'');
template = template.replace(/{{flagicon.*}}/ig,'');