Template talk:Creator

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Info non-talk.svg Template:Creator 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.

Statistics (Please do not archive)[edit]

Date Number of Creator templates Number of Files using Creator template
3049
‎125k
‎185k
6430 281k
7488 321k
8698 379k
10,285 452k
15,441 872k
24,783 1457k

Graph based on quarry:query/25334

Only says "birth" even if also death-info[edit]

The following:

{{Creator
 | Name              = Fortuné Méaulle
 | Birthdate         = 1844-04-11
 | Birthloc          = Angers
 | Deathyear         = 1901
 | Deathloc          = 
}}

displays as:

Fortuné Méaulle (1844–1901) Link back to Creator infobox template

Links to Wikidata redirected item[edit]

@Jarekt: on Creator:Tivadar Zemplényi I noticed a link to d:Q1467049 which redirects to d:Q7810390. Would be nice to have a maintenance category in these cases. Looking at mw:Extension:Wikibase Client/Lua#mw.wikibase.entity, I'm not sure how to do that. Multichill (talk) 16:20, 30 March 2018 (UTC)

Multichill as far as I can tell there is no way to tell if an item ID correct or redirect. I wrote about it in d:Wikidata:New_convenience_functions_for_Lua#Data_access_3. The redirects are a big issue if you are using Quickstatements, as any operations fail if the item ID is a redirect. --Jarekt (talk) 02:59, 31 March 2018 (UTC)
@Hoo man: ^^ Multichill (talk) 10:04, 31 March 2018 (UTC)
@Jarekt: turns out it was really easy. I'm a complete LUA noob, can you check and deploy? I updated the documentation. This might make some other fields of interest available for us to use here or in other templates. Multichill (talk) 13:14, 5 April 2018 (UTC)
Thanks for looking into this. I always assumed that entity.id is the same as item ID provided to mw.wikibase.getEntity, and I guess in great majority of cases that is true. I will have to revisit bunch of other templates that take item ID (q-code). Thanks. --Jarekt (talk) 16:17, 5 April 2018 (UTC)
Excellent, Category:Creator templates with redirected Wikidata link is filling up. Right now everything gets added if this gives too much noise we can always move it to the creator namespace only section. Multichill (talk) 17:10, 5 April 2018 (UTC)
I was thinking about namespace filter, but in some cases people or other templates use {{Creator}} directly without specialized templates in "Creator" namespace. So this way is better. --Jarekt (talk) 18:28, 5 April 2018 (UTC)
Category:Creator templates with redirected Wikidata link is empty again, but lets keep an eye on it.--Jarekt (talk) 03:40, 7 April 2018 (UTC)

Hyphen, dash[edit]

For work location, when there's a time span (e.g. Creator:Pieter Cornelisz. Verbeeck, "Utrecht (1638-1642)" etc), this template uses hyphens (-). It should probably use an en dash (–), as the use of hyphens in that context is often considered to be incorrect, which is not the case for the en dash. This is the difference between 1638-1642 and 1638–1643. /Julle (talk) 18:51, 2 April 2018 (UTC)

I mostly agree with you that dash is preferable to hyphens or "minus" signs. However this template does not add any of them in templates like Creator:Pieter Cornelisz. Verbeeck. It only displays what values people typed in. I guess the template can search for hyphens or "minus" signs in workloc field and replace them with dashes. I will look into it. --Jarekt (talk) 16:25, 5 April 2018 (UTC)
@Jarekt: We have the very same problem when the work period comes from Wikidata. Example: Creator:Lakṣmīpuram Śrīnivāsācārya where all data fields come from Lakṣmīpuram Śrīnivāsācārya (Q48317007). --AFBorchert (talk) 06:55, 15 June 2018 (UTC)
Pictogram voting keep.svg Fixed but please verify. --Jarekt (talk) 12:29, 15 June 2018 (UTC)
Thank you, Jarekt, this looks better but you have also added spaces to it which is in conflict with typographic rules. See, for example, Friedrich Forssmann and Ralf de Jong, Detailtypografie, ISBN 3-87439-642-8, p. 174, and Robert Bringhurst, The Elements of Typographic Style, ISBN 0-88179-132-6, p. 80. Quote of Bringhurst: “Use close-set en dashes or three-to-em dashes between digits to indicate a range.” Regards, AFBorchert (talk) 13:09, 15 June 2018 (UTC)
Pictogram voting keep.svg Fixed again. Hopefully this time is right. --Jarekt (talk) 13:18, 15 June 2018 (UTC)
Thanks, Jarekt, this is now perfect :) Regards, AFBorchert (talk) 14:41, 15 June 2018 (UTC)

"Innercollapse"[edit]

en:Help:Collapsing#"innercollapse" and "outercollapse" states that is is possible to collapse an element by default when it is in another one. If that can be done for creator and institution inside artwork templates and co, that would be a nice improvement for uses outside the file namespace.--Zolo (talk) 10:10, 23 April 2018 (UTC)

I have tried this about 5 years ago and did not menage to get it to work on Commons. If someone can figure out how to get it to work on Commons using a small test template, I could try to do it for a big one. --Jarekt (talk) 11:44, 23 April 2018 (UTC)
It seems that there is something missing in Commons' config. I have created COM:VP# Innercollapse and outercollapse. --Zolo (talk) 12:53, 23 April 2018 (UTC)
Partially Pictogram voting keep.svg Fixed. Now all Creator and Institution templates added automatically by {{Artwork}} template based on Wikidata are collapsed. --Jarekt (talk) 12:32, 15 June 2018 (UTC)

script error[edit]

At the moment a lot of creator templates show the following error: "Lua error in Module:Creator at line 559: table index is nil." Does anybody know what's going on? @Gbarta:, I suggest we wait before this error is fixed before we delete any information here on commons. Vincent Steenberg (talk) 15:33, 26 April 2018 (UTC)

See for an example: Creator:Ab Salm. It seems to have something to do with the workloc field. Vincent Steenberg (talk) 15:54, 26 April 2018 (UTC)
@Jarekt: --Zhuyifei1999 (talk) 17:36, 26 April 2018 (UTC)
Pictogram voting keep.svg Fixed Thanks for reporting that. --Jarekt (talk) 01:23, 28 April 2018 (UTC)