بحث مدیاویکی:Gadget-quickLinker.js

message: Yamaha5, thank you for adapting the script for fa and extending it. Regarding Special:Diff/24949973:
* Language - Please try to keep the script language agnostic, so it will be easier to port it later between languages. e.g you can move '== جستارهای وابسته ==' to the configuration strings in the beginning. 
* See also - The script is based on letting the user to inspect the context (e.g to decide whether the link is relevant or not). I think giving a name of page without providing context is somewhat out of context. A different approach would be to search something else, other than the page name for linking.  (I find it quite useful to go to redirect page linked to the page, and then invoke the gadget)
Anyway, if you decide to expend it based on this suggestion or find the current seealso implementation useful after the community test it in the near future please let me know so I can port it back to hewiki :)
Thanks, ערן (بحث) ‏۳۰ نوامبر ۲۰۱۸، ساعت ۱۶:۵۹ (UTC)
replies: text: ערן: Thank you for your Nice code. I added these features:
;fixing some bugs:

text: # original code on some pages doesn't show the link. it has a minor bug at the bottom lines. Solved

text: # original code finds the page title also inside the words. for example it finds "book" in "booklet" and it shouldn't be. the regex Solved

text: # original code suggests the tool for disambiguation pages and it should be. Solved 
;Some features:

text: #If code couldn't find any context with the page's title it offers see also subsection (according to fa.wiki community request) 
;to do requests:

text: #As you said check redirects for linking

text: #Show number of linked to (user can decide is it necessary to continue adding links)

text: # At sidebar bold the tool link if the article is short but doesn't have stub template (check the article size instead of/and stub template)

text: # If the page's title is used as linked and none linked at an article doesn't offer that article.

text: #we can add some AI tools (API) at tool labs which can find the original and target article's topic and if they are unrelated add some warnings or ban the user.

text: #Doesn't add link to subsection's head

text: #Shouldn't edit disambiguation pages adding links in disambiguation pages is incorrect.

text: یاماها۵ / ب ‏۳۰ نوامبر ۲۰۱۸، ساعت ۱۷:۳۲ (UTC)
replies: text: :#Doesn't show link -  On stubs and orphans which are especially important it triggers search automatically (without user click) and if it doesn't find relevant pages in search it doesn't show it intentionally.

text: :#Search inside words - the idea behind it is to cover also prefixes ("the X" in Arabic "al-X", also "in" (ב/ب)/"to" (ל/ل)) and suffixes (book and books). I'm not sure what is the correct behavior here, probably as long as the page title is long enough we should allow prefixes and suffixes and for short page title avoid it?

text: :#Disambigs- good idea! as well as the rest of the ideas/TODOs. I may add it to the original script too if you won't get it before me :)

text: :ערן (بحث) ‏۳۰ نوامبر ۲۰۱۸، ساعت ۱۷:۵۶ (UTC)
replies: text: ::ערן: Take a look at مدیاویکی:Gadget-quickLinker2.js it coves very vital feature. the tool shouldn't edit at some part of the content (see patterns) for example it shouldn't edit book inside nowiki tag or refname or link target or long linked or image name. (for example file:a book at the library.jpg shouldn't be file:a book at the library.jpg)

text: ::for prefixes we should limit it to the specific prefixs and doesn't edit inside long word.,...یاماها۵ / ب ‏۳۰ نوامبر ۲۰۱۸، ساعت ۱۸:۲۲ (UTC)
replies: text: :::ערן: I added some codes may be it is interesting for you. these codes limit the tool to not edit at the pattern area یاماها۵ / ب ‏۲ دسامبر ۲۰۱۸، ساعت ۲۲:۴۲ (UTC)
thread_title:  Note