Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Module:Wikidata label
(view source)
Revision as of 00:29, 19 April 2019
61 bytes removed
,
5 years ago
no edit summary
Line 68:
Line 68:
else
else
label = mw.wikibase.getLabelByLang("Item:"..item, language)
label = mw.wikibase.getLabelByLang("Item:"..item, language)
−
mw.notify("Trying to find in Wikidata label")
−
mw.notify(label)
−
end
end
if label then break end -- label found and we are done
if label then break end -- label found and we are done
Line 265:
Line 262:
local entity
local entity
if type(item)=='string' then -- "item" is a q-code
if type(item)=='string' then -- "item" is a q-code
−
entity = mw.wikibase.getEntity(item);
+
entity = mw.wikibase.getEntity(
"Item:"..
item);
else
else
entity = item -- "item" is the entity
entity = item -- "item" is the entity
Podehaye
Bureaucrats
, editors,
Interface administrators
,
Ninjas
, nuke,
Administrators
,
Widget editors
15,627
edits
Navigation menu
Personal tools
English
Log in
Request account
Namespaces
Module
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
New Item
New Property
All items
All properties
All pages
Active Users
SAR service dev
Query Service
Maintenance
Administrator
Tools
Special pages
Printable version
Interaction
Community portal
WebXray
Recent changes
Contact Page
Telegram
Discourse forum
MyData Slack