[Wikidata-bugs] [Maniphest] [Commented On] T141864: Add parser function for associated wikidata item ID

2016-11-27 Thread Yurik
Yurik added a comment.
@hoo, thanks, I know I can use Lua to get the Wikidata ID, but this means that instead of simply copying one template like this one to all the different wikis, the community would have to copy at least two - the template plus the Lua module, and keep them in sync. Having a wikimarkup to extract at least the current Wikidata ID would mean that only the template would need to be copied.TASK DETAILhttps://phabricator.wikimedia.org/T141864EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: YurikCc: Bugreporter, Zppix, Steenth, Metalindustrien, Sjoerddebruin, matej_suchanek, Lydia_Pintscher, hoo, Aklapper, Yurik, D3r1ck01, Izno, Wikidata-bugs, aude, Mbch331___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T141864: Add parser function for associated wikidata item ID

2016-11-27 Thread hoo
hoo added a comment.

In T141864#2824042, @Yurik wrote:
Is there any progress with this feature? Users would really like to use templates like population history -- where users would just place it on the page, instead of requiring a Lua module to get the ID and use tag expansion into wiki markup.


Why don't you use mw.wikibase.getEntityIdForCurrentPage for that? If it's not meant to use the entity id of the current page, how would you know the title of the target page?TASK DETAILhttps://phabricator.wikimedia.org/T141864EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: hooCc: Bugreporter, Zppix, Steenth, Metalindustrien, Sjoerddebruin, matej_suchanek, Lydia_Pintscher, hoo, Aklapper, Yurik, D3r1ck01, Izno, Wikidata-bugs, aude, Mbch331___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T141864: Add parser function for associated wikidata item ID

2016-11-25 Thread Yurik
Yurik added a comment.
Is there any progress with this feature? Users would really like to use templates like population history -- where users would just place it on the page, instead of requiring a Lua module to get the ID and use tag expansion into wiki markup.TASK DETAILhttps://phabricator.wikimedia.org/T141864EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: YurikCc: Bugreporter, Zppix, Steenth, Metalindustrien, Sjoerddebruin, matej_suchanek, Lydia_Pintscher, hoo, Aklapper, Yurik, D3r1ck01, Izno, Wikidata-bugs, aude, Mbch331___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T141864: Add parser function for associated wikidata item ID

2016-08-03 Thread Bugreporter
Bugreporter added a comment.
For getting item ID from arbitrary page names see also T133498: Any title in wikibase can give its item id to modules (excluding xwiki feature).TASK DETAILhttps://phabricator.wikimedia.org/T141864EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: BugreporterCc: Bugreporter, Zppix, Steenth, Metalindustrien, Sjoerddebruin, matej_suchanek, Lydia_Pintscher, hoo, Aklapper, Yurik, D3r1ck01, Izno, Wikidata-bugs, aude, Mbch331___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T141864: Add parser function for associated wikidata item ID

2016-08-03 Thread Yurik
Yurik added a comment.
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.TASK DETAILhttps://phabricator.wikimedia.org/T141864EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: YurikCc: Zppix, Steenth, Metalindustrien, Sjoerddebruin, matej_suchanek, Lydia_Pintscher, hoo, Aklapper, Yurik, D3r1ck01, Izno, Wikidata-bugs, aude, Mbch331___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T141864: Add parser function for associated wikidata item ID

2016-08-02 Thread matej_suchanek
matej_suchanek added a comment.
Parser functions usually require some parameters. I think a magic word (like {{WBREPONAME}}) fits better. Could be for instance {{ITEMID}} or {{ENTITYID}}.TASK DETAILhttps://phabricator.wikimedia.org/T141864EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: matej_suchanekCc: matej_suchanek, Lydia_Pintscher, hoo, Aklapper, Yurik, D3r1ck01, Izno, Wikidata-bugs, aude, Mbch331___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T141864: Add parser function for associated wikidata item ID

2016-08-02 Thread Lydia_Pintscher
Lydia_Pintscher added a comment.
Ok from my side. Ideas for a name?TASK DETAILhttps://phabricator.wikimedia.org/T141864EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Lydia_PintscherCc: Lydia_Pintscher, hoo, Aklapper, Yurik, D3r1ck01, Izno, Wikidata-bugs, aude, Mbch331___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs