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

Page contents not supported in other languages.
افزودن مبحث
از ویکی‌پدیا، دانشنامهٔ آزاد
آخرین نظر: ۵ سال پیش توسط Yamaha5 در مبحث Note

Note[ویرایش]

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)پاسخ

ערן: Thank you for your Nice code. I added these features:
fixing some bugs
  1. original code on some pages doesn't show the link. it has a minor bug at the bottom lines. Solved ✓
  2. 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 ✓
  3. original code suggests the tool for disambiguation pages and it should be. Solved ✓
Some features
  1. 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
  1. As you said check redirects for linking
  2. Show number of linked to (user can decide is it necessary to continue adding links)
  3. 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)
  4. If the page's title is used as linked and none linked at an article doesn't offer that article.
  5. 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.
  6. Doesn't add link to subsection's head ✓
  7. Shouldn't edit disambiguation pages adding links in disambiguation pages is incorrect. ✓
یاماها۵ / ب ‏۳۰ نوامبر ۲۰۱۸، ساعت ۱۷:۳۲ (UTC)پاسخ
  1. 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.
  2. 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?
  3. 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 :)
ערן (بحث) ‏۳۰ نوامبر ۲۰۱۸، ساعت ۱۷:۵۶ (UTC)پاسخ
ערן: 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)
for prefixes we should limit it to the specific prefixs and doesn't edit inside long word.,...یاماها۵ / ب ‏۳۰ نوامبر ۲۰۱۸، ساعت ۱۸:۲۲ (UTC)پاسخ
ערן: I added some codes may be it is interesting for you. these codes limit the tool to not edit at the pattern area یاماها۵ / ب ‏۲ دسامبر ۲۰۱۸، ساعت ۲۲:۴۲ (UTC)پاسخ