"පරිශීලක සාකච්ඡාව:MerlIwBot" හි සංශෝධන අතර වෙනස්කම්

 
:The interwiki position used by my bot for adding new interwikis is definied relative to the position of already existing interwikis. If the initial creator included them from a subpage my bot will add new interwiki at the subpage, too. [[User:Merlissimo|Merlissimo]] ([[User talk:Merlissimo|talk]]) 20:15, 21 සැප්තැම්බර් 2012 (යූටීසී)
::If existing interwikis are with the relevant doc page, and if the template does not possess any interwikis, how would your bot behave? ---[[User:ශ්වෙත|ශ්වෙත]] ([[User talk:ශ්වෙත|talk]]) 02:55, 22 සැප්තැම්බර් 2012 (යූටීසී)
:::First a note: I am running a java bot, not the python bot that most interwiki bot operators use. So the following explenation is specific to my bot.
:::My bot does not have any specific settings for template namespace expect that it currently does not add new interwikis if there are no existing ones.
:::First the script reads langlinks from api (e.g. [http://si.wikipedia.org/w/api.php?action=query&titles=%E0%B7%83%E0%B7%90%E0%B6%9A%E0%B7%92%E0%B6%BD%E0%B7%8A%E0%B6%BD:Ntsh&prop=langlinks&lllimit=max]) and not from page source as the pwb. Then my algorithm decides which changes have to be done (e.g. adding a dewiki langlink to siwiki:Template:Ntsh). The bot checks the wiki specific interwiki sorting order and knows that the de-langlink has to be added right before the existing en-langlink. Now my bot searches the complete page source for the expected en-langlink syntax and if found it adds the de-langlink previous to the en-langlink. If the en-langlink is not found at the main page/template the included parts of included subpages are searched instead until the en-langlink is found and the de-langlink can be added relative to the en-langlink. ([http://si.wikipedia.org/w/index.php?title=%E0%B7%83%E0%B7%90%E0%B6%9A%E0%B7%92%E0%B6%BD%E0%B7%8A%E0%B6%BD:Ntsh/doc&diff=prev&oldid=227020 here] my bot has placed the new ca-langlink before the en-langlink which was found on a subpage). If the expected en-langlink is not found the new de-langlink is not added.
:::This algorithm does not need any project specific settings and should always be save. The python bot uses a project specific mapping ''template->subpage'' from its config file instead. [[User:Merlissimo|Merlissimo]] ([[User talk:Merlissimo|talk]]) 16:20, 22 සැප්තැම්බර් 2012 (යූටීසී)

සංස්කරණ

7

ක්

"https://si.wikipedia.org/wiki/විශේෂ:MobileDiff/227216" වෙතින් සම්ප්‍රවේශනය කෙරිණි