Template talk:Institution

From Wikimedia Commons, the free media repository
(Redirected from Template talk:Museum)
Jump to: navigation, search
Info non-talk.svg Template:Institution has been protected indefinitely because it is a highly-used or visible template. Use {{Edit request}} on this page to request an edit.
Please test any changes in the template's /sandbox or /testcases subpages, or in a user subpage, and consider discussing changes at the talk page before implementing them.

Better RTL compatibility[edit]

{{editprotected}} Hi, please use

File:Gnome-go-{{#ifeq:{{dir|{{int:Lang}}}}|rtl|next|previous}}.svg

instead of File:Gnome-go-previous.svg in Template:Institution/layout. It will switch the icon when visitor wiki is RTL. Thanks in advance! :) −ebraminiotalk 15:53, 23 July 2012 (UTC)

✓ Done --Jarekt (talk) 19:30, 23 July 2012 (UTC)

Use of wikidata facility?[edit]

I think i'm not the first one to either think or want to use this, but could the name part of the template (e.g. this one:

 | name = {{LangSwitch
   |ca=[[:ca:Gliptoteca de Munic|Gliptoteca de Munic]]
   |de=[[:de:Glyptothek (München)|Glyptothek, München]]
   |en=[[:en:Glyptothek|Glyptothek, Munich]]
   |es=[[:es:Gliptoteca de Múnich|Gliptoteca de Múnich]]
   |fr=[[:fr:Glyptothèque de Munich|Glyptothèque de Munich]]
   |it=[[:it:Gliptoteca (Monaco di Baviera)|Gliptoteca di Monaco di Baviera]]
   |pl=[[:pl:Gliptoteka monachijska|Gliptoteka monachijska]]
   |pt=[[:pt:Glyptothek|Glyptothek, Munique]]
   |ro=[[:ro:Gliptoteca de la München|Gliptoteca de la München]]
 }}
)

be linked to the wikidata item, so that either :

  • changing wikidata item will automatically change the links / name
  • and/or adding wikidata item will automatically complete this part of the institution

I don't know if this should be a bot work, or a transclusion of wikidata item, or whatever. i'm just trying to push the idea. Zeugma fr (talk) 09:58, 21 June 2013 (UTC)

I assume that eventually we will be transcluding that date from Wikidata, but for time being Wikidata does not work with Commons, so that can be a while. I do not think there is a need for writing a bot for this in-between state we are in, it will be better to write it after Wikidata starts supporting Commons. --Jarekt (talk) 11:33, 21 June 2013 (UTC)

Language select widget[edit]

I noticed, that there is a language select widget on the institution templates. It doesn't work and I do not see what it is good for.--Oursana (talk) 07:55, 12 November 2013 (UTC)

I do not think there is one. Can you link to some examples, or a screenshot? --Jarekt (talk) 12:33, 12 November 2013 (UTC)
Thanks for your quick respons. I have it at whatever institution template left over the headline/title, with click I get this, my screenshot:File:Language select widget2.tiff Thank you--Oursana (talk) 14:02, 12 November 2013 (UTC)
Now I get it. I do not think it is related to the institution template. I do not understand Meta:Language_select: this script seem to have always given me wrong and unexpected results, like hiding text I was working on. So some years ago I added "ls_enable = false; " to my User:Jarekt/common.js to disable Language_select script. --Jarekt (talk) 15:12, 12 November 2013 (UTC)
But I see this useless thing only with institutions and do not want to. I will delete my screenshot.--Oursana (talk) 15:30, 12 November 2013 (UTC)

Institution:De Young Museum[edit]

does not show data. Regards--Oursana (talk) 20:54, 15 November 2013 (UTC)

Yes, it does not show Wikidata. I am puzzled, I cannot find anything different from institution:Louvre, where it works. --Zolo (talk) 09:17, 19 November 2013 (UTC)
Ahh, now I get what the problem was. I looked at it and the data showed just fine, but I did not noticed it was missing Wikidata icon. It is Pictogram voting keep.svg Fixed, although I have no idea what caused the problem. It was fixed by pasting blank template and moving each field from the old to the new templates. --Jarekt (talk) 12:48, 19 November 2013 (UTC)
Thank you--Oursana (talk) 13:09, 19 November 2013 (UTC)

Steps towards making Institution draw directly from Wikidata[edit]

Some first steps towards getting an Institution template to draw directly from Wikidata can be seen at d:Template:Institution/statictest -- still with quite a lot of weirdness still to be fixed at the moment, some of which is identified at d:Template talk:Institution, plus some that probably isn't.

This has to be hosted on Wikidata at the moment, because it requires "access to arbitrary items" -- the ability for template code called from one page to access information about a Wikidata item sitelinked to a different page. (Also called Wikidata Phase 3).

Such arbitrary access won't generally be possible until some quite heavy technical work has been done first, to enable MediaWiki to be able to work out whether (and which) pages need to be regenerated if an item on Wikidata changes. So it's not expected to be generally available on wikis including Commons until some time in 2015. But it is now possible, for development work without page regeneration, on Wikidata itself.

So that is why the development pages above are on Wikidata, rather than here.

See also the main project page d:Wikidata:WikiProject Structured Data for Commons/Template workshop for more information on the development, plus the (slightly more advanced) corresponding pages for the Creator template at d:Template talk:Creator, d:Template talk:Creator/statictest, d:Template:Creator/statictest and d:Template:Creator/wrapper/test

The Institution page also, at d:Template:Institution/statictest#Template_wikitext_generation, attempts to show what's going on 'under the bonnet' and passed to the existing template, in a form that will be possible to cut-and-paste to make new Institution:xyz templates here. (Once some more of the bugs are sorted out).

All thoughts and comments gratefully received, Jheald (talk) 22:35, 19 September 2014 (UTC)

Thank you, the mockups are great! Unfortunately the missing arbitrary access prevents an enrollment on Commons at the moment of course. But perhaps the main functionality of the templates could yet be tested on Commons at single pages connected directly by Wikibase. --Marsupium (talk) 13:50, 20 September 2014 (UTC)
More test-cases now up at d:Template:Institution/wrapper/test. Still quite a lot to fix (see its talk page), and a lot to do to check things for proper robustness; but it's good to get some more examples on the board. Feel free to try others, if you think there may be any particularly awkward cases to handle.
As for connecting Institution pages directly to Wikidata -- in general, let's not do this. Unfortunately, for better or worse, the way Wikidata is constructed at the moment, each WD item can only link to a single target, and it's important that those links are consistent, predictable and traversable ie Category <-> Category-like item, Gallery <-> Article-like item. Otherwise too many things get too vulnerable.
There are queries at d:Wikidata:WikiProject Structured Data for Commons/Phase 1 progress/Links/Institution to check whether any items link directly to Institution pages, which can be re-run by following the links, logging in to the Quarry app, possibly re-loading the link, and then hitting "submit query". At the moment, thanks to the efforts of User:EugeneZelenko, the number is zero and it really ought to remain that way.
Conceivably in future there may be very special instances when cases need to be tested on Commons, as the Commons:Structured data project gets more thoroughly under way; but for the present it's not such a big hardship to have to be using Wikidata-wiki for the development and testing environment. Jheald (talk) 14:36, 20 September 2014 (UTC)