Jump to content

Talk:Wikibase/Notes/Inclusion syntax

About this board

Get id of property value and sitelink

3
Vladis13 (talkcontribs)

How get a id of property value, but not its text? And how get a sitelink of item, e.g. to Wikisource?

Lydia Pintscher (WMDE) (talkcontribs)

You need to use Lua for these.

Vladis13 (talkcontribs)

Ok, thanks you. But It would be desirable that was added such a functional in parser. And the opportunity to get item id of the current page.

Reply to "Get id of property value and sitelink"
DePiep (talkcontribs)

The page now says, like: "... specify |from= either by Q-ID or by their label in the wiki's content (?) language".

Question 1: My tests showed that one can not specify an item by its 'label' (=the article name in the example enwiki, we understand).

<pre>

{{#property:P17|from=Italy}}

</pre>

should show {{#property:P17|from=Italy}}

Question 2: If I'm wrong (it does work well), should we remove the question mark?

(-edit-: talkpage code shows different from my habit).

Lydia Pintscher (WMDE) (talkcontribs)

Yes you can not specify the item there by its label. This is because many items can have the same label. The labels of properties are unique.

DePiep (talkcontribs)

Thanks.

Reply to "Label for Q-ID"
There are no older topics