Wikidata:Property proposal/venue of the grand final

From Wikidata
Jump to navigation Jump to search

Venue of the grand final[edit]

Originally proposed at Wikidata:Property proposal/Sports

   Not done
DescriptionProperty proposed for indicating in an item related to an edition of sports tournament that has a grand final game, the venue of that game. The property should have at least as qualifier location (P276)
Data typeItem
Template parameter"Finale" in Q69895479
Domainluoghi
Allowed unitssubclasses of sports venue (Q1076486)
Example 11990 FIFA World Cup (Q132529)Stadio Olimpico (Q159884)
Example 22007 Rugby World Cup (Q124753)Stade de France (Q13205)
Example 32019 FIBA Basketball World Cup (Q4630359)Cadillac Arena (Q1321458)
Example 42014 Women's Rugby World Cup (Q1823040)Stade Jean-Bouin (Q670499)
Planned useImport data from local templates and centralize such information

Motivation[edit]

I noticed that the items related to the [editions of] sports tournaments with a grand final (a single-match final game) lack a property where to indicate both the venue and the city of the final. The property should indicate the venue and it should have a qualifier that indicates the location (location (P276)). -- Blackcat (talk) 17:06, 6 October 2019 (UTC)[reply]

Discussion[edit]

local item = frame.args["title"] and mw.wikibase.getEntityIdForTitle( args["title"] ) or mw.wikibase.getEntityIdForCurrentPage() or error('No entity');
local finalEvent = mw.wikibase.getAllStatements( item, 'P3967' );
local finalEventItem = finalEvent[1]["mainsnak"]["datavalue"]["value"]["id"];
local finalEventLocation = mw.wikibase.getAllStatements( finalEventItem, 'P276' );
local location = finalEventLocation[1]["mainsnak"]["datavalue"]["value"];
Hope that is helpful --DannyS712 (talk) 01:23, 21 October 2019 (UTC)[reply]
Of course you're aware that such solution is the triumph of cumbersomeness, @DannyS712:: whereas we have for sure an item for each edition of torunament we should create an additional item for its final then overload the template with supplemental code in order to read a simple 20-byte string from a related item... Much like using a train to transport one passenger only. I thought that we were here to simplify things, not to complicate them. -- Blackcat (talk) 11:27, 21 October 2019 (UTC)[reply]