Module talk:Institution

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Change Google Maps icon[edit]

{{Edit request}} Can someone please copy over the sandbox to change File:Google favicon.svg to File:Google Maps icon (2020).svg as it represents Google Maps better by using to actual logo rather than an old favicon for Google. Thanks --Nintendofan885T&Cs apply 15:49, 22 February 2021 (UTC)[reply]

✓ Done Thank you! Jarekt (talk) 17:14, 22 February 2021 (UTC)[reply]

Wrap long strings/URLs[edit]

{{Edit request}}

Please modify line 65 to include the code:

	end
	local cell1 = string.format('<td style="%s">%s</td>\n', args.style2, tag)
	local cell2 = string.format('<td colspan="2" style="word-break:break-word;%s">'.. param.wrapper ..'</td>', args.style1, field or '')
	return string.format('<tr valign="top">\n%s%s</tr>\n', cell1, cell2)
end

Thanks, ᴀlbanɢeller (talk) 06:56, 17 June 2021 (UTC)[reply]

✓ Done Thank you! Jarekt (talk) 00:40, 19 June 2021 (UTC)[reply]

Field "Web page" not shown with uselang=en etc. if no fallback provided[edit]

If official website (P856) doesn't have a (best) value without language of work or name (P407) qualifier or with a qualifier / language of work or name (P407) English (Q1860) no website is shown for languages with no fallback provided, like English. Example: Institution:Museo de Bellas Artes, Seville: If you remove |website= the "Web page" disappears unless uselang falls back to Spanish.

That should be changed. I guess it's caused by line 494:

	data.website = core.langSwitch(website, lang)

Thanks for any help to improve the situation! --Marsupium (talk) 15:04, 25 August 2021 (UTC)[reply]

SDC[edit]

Would it be possible for this template to utilize SDC statements for determining institution Wikidata IDs? I think there are two current cases for this. Either an image uses digital representation of (P6243) in SDC and the linked Wikidata item has a collection (P195) statement, or the image has no Wikidata item, but uses P195 in the SDC itself. In these cases, since the institution's Wikidata item is already contained in structured data, it should be sufficient simple to use the template without parameters. There are millions of images using these statements, so it seems like a good time to implement. Dominic (talk) 15:41, 13 December 2021 (UTC)[reply]

I don’t think determining the Qid of the institution should be the responsibility of this module; instead, whatever code transcludes {{Institution}} should provide a Qid (or local parameters in case there’s no Wikidata item). As far as I know, {{Artwork}} already uses SDC and Wikidata as a fallback if the institution parameter is not filled in. —Tacsipacsi (talk) 23:45, 13 December 2021 (UTC)[reply]
I think {{Artwork}} only uses SDC for the source field currently, which is the reason for my suggestion. Though, my understanding was that {{Institution}} is used in many places on its own, rather than nested within other templates, (especially the thousands of existing institution-specific templates), so that's why I thought it best to suggest here rather than on a particular metadata template. How it's implemented is not the important thing to me, though! Dominic (talk) 14:58, 14 December 2021 (UTC)[reply]

QuickStatements links and websites[edit]

QuickStatements links (to wikidata items) are not working properly. Many templates are categorized to Category:Institution templates with Wikidata link: quick statements due to missing website even if the relevant item has official website (P856) properly filled. Seems that the code cannot handle official website (P856) qualifiers.Jklamo (talk) 13:57, 23 May 2022 (UTC)[reply]

Institutions with only non-English websites[edit]

On Institution:Moravian Gallery in Brno, I had to keep the website on Commons, because I properly set language of work or name (P407) on Wikidata to Czech (unfortunately the website of the gallery has no English pages) – and the module tries to find the appropriate website using LangSwitch, which yields no/empty result if the website is Czech and the UI language isn’t. Please always show a website if one is given, regardless of its language. I’m not sure what’s the best strategy if there are multiple statements, all of which is set to something other than English (try to find the one in the institution’s likely official language? simply choose the first one?), but this particular case is pretty straightforward. —Tacsipacsi (talk) 10:10, 8 September 2022 (UTC)[reply]

Google Maps icon: height[edit]

{{Edit request}} I've seen in Institution:University of Washington page that Google Maps coordinates favicon seems to be too big as this icons are shrinked only by width. Can someone please set that the coordinate favicons scale by height (20x20px) as well (line 186,192)? Thanks. ZandDev (talk) 13:27, 25 February 2023 (UTC)[reply]

+1. Anyone? Iketsi (talk) 04:54, 12 September 2023 (UTC)[reply]
✓ Done with this edit. --Marsupium (talk) 23:36, 14 September 2023 (UTC)[reply]

Website/Web page[edit]

Hello. I believe it would be better to localize website with d:Q35127 than d:Q36774. May I change it? --TadejM (t/p) 09:58, 8 March 2023 (UTC)[reply]

I've updated it. --TadejM (t/p) 06:42, 9 March 2023 (UTC)[reply]