User talk:Magnus Manske/author strings.js

From Wikidata
Jump to navigation Jump to search

Add P1412 to authors when P407 is stated on article[edit]

Hi Magnus Manske, and thanks for this tool.

I have a suggestion: when creating author item from an article, it would be nice to fill languages spoken, written or signed (P1412) based on language of work or name (P407) (if it is stated) of the article if (with based on heuristic (P887)inferred from language in work (Q105771507) in reference field). Do you think it this could be added to your tool? — Metamorforme42 (talk) 11:44, 11 October 2022 (UTC)[reply]

searchForAuthor function bug[edit]

Hi,

I'd like to report that the above mentioned function has a bug.

searchForAuthor : function (author_key) {
				let query = author_key+' haswbstatement:P31=Q5' ; //  haswbstatement:P496
				let url = '/w/index.php?search=&search='+encodeURIComponent(query)+'&title=Special%3ASearch&ns0=1'
				window.open(url, '_blank');
			} ,</code>

with names with diacritis like

  • Michael Böhm
  • Małgorzata Wyrwas

the search phrase does not give the correct name strings Kpjas (talk) 07:24, 10 July 2023 (UTC)[reply]