Template talk:Infobox artwork

From Wikipedia, the free encyclopedia
  (Redirected from Template talk:Infobox Painting)
Jump to: navigation, search

Secondary title[edit]

Suppressing the secondary title apparently also suppresses the title, as seen in this is; can this be fixed? It should be possible to suppress one without affecting the other. Nikkimaria (talk) 18:53, 2 November 2017 (UTC)

@Nikkimaria: This is odd. It looks like {{#invoke:WikidataIB|checkBlacklist|name=title|suppressfields=other_title_1}} triggers the blacklist when it shouldn't. @RexxS: is there a way of fixing the blacklist code here, or should we change to using something other than "other_title_1" here? Thanks. Mike Peel (talk) 21:36, 3 November 2017 (UTC)
@Mike Peel and Nikkimaria:The code is working as expected Face-sad.svg. If you have a blacklist with the characters "title" in it, then a field called title will be suppressed. I wrote it that way so that it could cope with all varieties of alternative spelling in field names. If it only works with an exact match, then you'd have to blacklist "this field", "this-field", "this_field", and "thisfield", etc. for every conceivable permutation, rather than just blacklisting "field" as you can now. The downside is that infobox designers have to be a bit more picky about the words they use to name different fields, sorry. In your case, you could use e.g. |name=fulltitle when invoking WikidataIB in the infobox design (without changing the actual parameter name of title in all other places); and then you could use |suppressfields=fulltitle in an article. You'd just have to include a note to that effect in the infobox documentation. If you can think of a better scheme, I'd be happy to consider how to implement it (although I won't be implementing any more changes to Module:WikidataIB while it remains unsynchronised from the development work). --RexxS (talk) 22:03, 3 November 2017 (UTC)
Having said that, I couldn't resist making a demo of how we could implement exact matching, if that was what was preferable. It's at Module:Sandbox/RexxS/Blacklist and some test cases are at Module talk:Sandbox/RexxS/Blacklist. --RexxS (talk) 23:02, 3 November 2017 (UTC)
Thanks RexxS. Either way works, I think, so I'd say this is up to @Nikkimaria as the main user of the suppressfields feature. I don't think there's any significant technical/logistical barriers in either way: I'm happy to write a bit of pywikibot code that goes around and checks for current cases of |suppressfield=title that could be changed to |suppressfields=fulltitle if that would help. Thanks. Mike Peel (talk) 05:35, 4 November 2017 (UTC)
Well, if the hope is to eventually use this more widely, it shouldn't be designed for me personally! But the argument against exact matching makes sense. What about changing the name of the secondary title parameter to altname or similar? Nikkimaria (talk) 15:37, 4 November 2017 (UTC)
That could be confused with alt tags for images. How about othername1? Thanks. Mike Peel (talk) 11:15, 5 November 2017 (UTC)

Multiple websites?[edit]

Adam and Eve (Dürer) is behaving strangely (when I insert WD template). Also suppress is not working for website URL. Tried fixing, but did not succeed. - Adam-Papuass (talk) 21:20, 3 November 2017 (UTC)

@Papuass: I think the problem is caused by multiple URLs on Wikidata, which are all equally ranked. At the moment, there are two solutions: either set a preferred URL on Wikidata, or set "| website=example.com" that should locally override it (it seems to work for me?). There is a solution in the works to retrieve a max of 1 URL from Wikidata, and I'll have a think about whether there's a good way to properly format multiple URLS from Wikidata (suggestions welcome!). Dimensions are also tricky in this case, with two panels, so I'd suggest locally overriding that one too (just keep the dimensions= line). Thanks. Mike Peel (talk) 21:32, 3 November 2017 (UTC)
Yes, this is complex case (that is diptych) ar there are 2 viable websites to show — one link for Adam, one for Eve. Right now I just made override with empty website. --Papuass (talk) 21:37, 3 November 2017 (UTC)

──────────────────────────────────────────────────────────────────────────────────────────────────── Better markup would be:

| website=
* [https://www.museodelprado.es/en/the-collection/online-gallery/on-line-gallery/obra/adam/ Adam]
* [https://www.museodelprado.es/en/the-collection/online-gallery/on-line-gallery/obra/eve/ Eve]

-- Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 11:28, 7 November 2017 (UTC)

Switching to onlysourced=yes by default in the Wikidata version[edit]

@Nikkimaria has been changing inclusions of {{Infobox artwork/wikidata}} to only show information from Wikidata that has a reference. To be honest, I can't disagree with this - if we can't reference the information that we're showing, then we shouldn't be showing it. So I've changed the default here to onlysourced=yes. This will remove information from infoboxes - please add references to continue showing this information. Thanks. Mike Peel (talk) 23:09, 7 December 2017 (UTC)

Hi Mike, thanks, but I think this has broken the image formatting? Also, not sure it is currently possible to cite aliases on Wikidata... Nikkimaria (talk) 23:28, 7 December 2017 (UTC)