מדיה ויקי:Gadget-quickLinker.js: הבדלים בין גרסאות בדף
מאין תקציר עריכה |
מאין תקציר עריכה |
||
| שורה 145: | שורה 145: | ||
contextPre = m[1]; | contextPre = m[1]; | ||
newContext = contextPre+contextInner+contextPost; | newContext = contextPre+contextInner+contextPost; | ||
this.content.$element.html('<h1>'+page.title+'</h1><p>'+contextPre+contextInnerOld+'<b>'+contextInner+'</b>'+contextPost+'</p>'); | this.content.$element.html('<h1><a href="/wiki/'+encodeURI(page.title)+'">'+page.title+'</a></h1><p>'+contextPre+contextInnerOld+'<b>'+contextInner+'</b>'+contextPost+'</p>'); | ||
this.curPage = page.title; | this.curPage = page.title; | ||
this.text = pagecontent.replace(context, newContext) | this.text = pagecontent.replace(context, newContext) | ||