hoo added a comment.

[…] Could be for instance {{ITEMID}} or {{ENTITYID}}.

Both sound ok to me, maybe I lean a little towards itemid. A more verbose form like wikibase-itemid probably doesn't make to much sense, does it?

I think we should do the parser function, not a magic keyword. This way we can expand it to do a page lookup. For example, {{ ENTITYID | United States }} is replaced with Q30. The optional first parameter would be the valid page title, as parsed by the local wiki. This will also allow us to easily do {{ ENTITYID | en:United States }} in another Wikipedia language, and still get Q30.

This would probably require T142093: [RfC] Decide how to do usage tracking for strings used to lookup entities (page titles, external ids, …) to be implemented. We could probably start with a parser function that doesn't take any arguments and then extend upon that, if we can/ want to.


TASK DETAIL
https://phabricator.wikimedia.org/T141864

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: hoo
Cc: Bugreporter, Zppix, Steenth, Metalindustrien, Sjoerddebruin, matej_suchanek, Lydia_Pintscher, hoo, Aklapper, Yurik, D3r1ck01, Izno, Wikidata-bugs, aude, Mbch331
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to