View source for Module:EditAtWikidata
You do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page.
-- Module to display an icon with a tooltip such as "Edit this at Wikidata"
-- Icon will be linked to the Wikidata entry for the article where this is placed.
-- This message is only displayed if a local_parameter is not supplied
-- i.e. when called from a template, it can be coded not to display the message
-- when a local parameter is in use, preventing the value form Wikidata being fetched.
-- The qid of a Wikidata entry can optionally be supplied for testing outside the article.
-- Usage:
-- {{#invoke:EditAtWikidata|showMessage|local_parameter}}
-- {{#invoke:EditAtWikidata|showMessage|qid=<ArticleID|local_parameter}}
local p = {}
local i18n = {}
local function getMessage(name)
if not i18n[name] then
local lang = mw.getCurrentFrame():preprocess('{{int:lang}}')
i18n[name] = require('Module:TNT').formatInLanguage(lang, 'I18n/EditAt.tab', name)
end
return i18n[name]
end
000
1:0
Templates used on this page:
Return to Module:EditAtWikidata.