Talk:Wikidata/Notes/Inclusion syntax v0.4

From Meta, a Wikimedia project coordination wiki
Jump to: navigation, search

Property aliases[edit]

The use of the identifier of the property like {{#property:P36}} is more stable as the label like {{#property:capital}}. To improve stability it should also work for aliases like {{#property:alias of capital}}. In case a label changes, we could add the old label as alias. In that case the Wikipedia templates and modules still continue to function properly without the need to change it immediately. HenkvD (talk) 14:56, 18 May 2013 (UTC)

You are correct that IDs are more stable than labels, and I would suggest to use IDs instead of labels -- but labels might be preferred due to their readability. It's a tradeoff. On the other hand, aliases are not necessarily unique, and thus we do not allow them for accessing values. Property labels thought are unique per language. --denny (talk) 14:45, 21 May 2013 (UTC)
"Property labels thought are unique per language." I'm curious, is that automatically enforced (so there can never be two "capital" properties in the same language)? Superm401 | Talk 05:10, 26 May 2013 (UTC)
Yes it is enforced. --Lydia Pintscher (WMDE) (talk) 09:00, 26 May 2013 (UTC)

access a different item by label[edit]

As labels are not unique, I assume you mean article title. --Zolo (talk) 11:07, 19 May 2013 (UTC)

Thanks for catching this, you are correct. --denny (talk) 14:45, 21 May 2013 (UTC)

Implement Copypaste.py as a parser function[edit]

Could be possible to integrate Copypaste.py tool (here and here) as an inclusion parser function into mediawiki? The tool generates an interwiki list in wiki syntax from the Q number. Such function would be very helpful for Commons (until Commons will be integrated fully-fledged). Such syntax can be something like:

{{#interwiki|Q183}}
{{#interwiki|Germany}}
{{#iw|de:Deutschland}}

--ŠJů (talk) 23:52, 5 August 2013 (UTC)

Make inclusion human readable[edit]

Have a look at https://www.wikidata.org/wiki/Wikidata_talk:Infoboxes_task_force#Make_embedding_data_in_wikipedia_human_readable --141.58.44.204 19:14, 25 August 2013 (UTC)

Refer to WP page links and titles?[edit]

Is it possible to return the links to Wikipedia pages and titles of those pages for items? This would be very helpful on commons, where we could use it in templates like Commons:Template:Portrait of and make image descriptions interlingual. --Jfhutson (talk) 20:52, 27 October 2013 (UTC)

Accessing qualifiers for statements[edit]

I added the actual version from wikidata to the dewiki article about Mozilla Firefox: https://de.wikipedia.org/w/index.php?title=Mozilla_Firefox&diff=125417237&oldid=125385804 and want to get the qualifier that sais the Version is from 2013-12-10 as well. --Lbenedix (talk) 20:05, 13 December 2013 (UTC)

release a good inclusion syntax now, otherwise wikidata is not used in wikipedia and WILL CERTAINLY die![edit]

--92.201.145.65 08:10, 27 February 2014 (UTC)