| Rical added a comment. |
For some weeks in Module:Central, this function use:
function datas.property(pp) -- Get datas from mw.wikibase for one property of the page.
datas.QITEM = mw.wikibase.getEntityIdForCurrentPage() -- like "Q42"
datas.item = mw.wikibase.getEntity(QITEM)
pp.label = datas.item:getLabel.QITEM)
pp.sitelink = datas.item:getSitelink()
pp.labelwithlang = datas.item:getLabelWithLang()
pp.description = mw.wikibase.description.QITEM)
pp.labelbylang = mw.wikibase.getLabelByLang(QITEM)
pp.labelcontent = mw.wikibase.getLabelByLang(, langs.content_lan, QITEM)
pp.labelpage = mw.wikibase.getLabelByLang(, langs.page_lan, QITEM)
pp.labeluser = mw.wikibase.getLabelByLang(, langs.user_lan, QITEM)
pp.val = datas.item:formatPropertyValues( pp.prop ) -- like "P123"
...
return pp
endTASK DETAIL
EMAIL PREFERENCES
To: Rical
Cc: Lydia_Pintscher, hoo, thiemowmde, Uzume, Aklapper, Rical, Lahi, Gq86, GoranSMilovanovic, Soteriaspace, Jayprakash12345, JakeTheDeveloper, QZanden, Zoranzoki21, LawExplorer, Wikidata-bugs, aude, TheDJ, Mbch331
Cc: Lydia_Pintscher, hoo, thiemowmde, Uzume, Aklapper, Rical, Lahi, Gq86, GoranSMilovanovic, Soteriaspace, Jayprakash12345, JakeTheDeveloper, QZanden, Zoranzoki21, LawExplorer, Wikidata-bugs, aude, TheDJ, Mbch331
_______________________________________________ Wikidata-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
