Advertisement:
View source for Module:EditAtWikidata
Jump to navigation
Jump to search
You do not have permission to edit this page, for the following reason:
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 is 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.
-- 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 =
{
["message"] = "Edit this at Wikidata"
}
local function trimToNil(text)
-- Return trimmed non-empty text, or nil.
if type(text) == 'string' then
return text:match('(%S.-)%s*$')
000
1:0
Templates used on this page:
- Template:High use (view source)
- Template:Lua sidebar (view source)
- Template:Module other (view source)
- Template:Module rating (view source)
- Template:Ombox (view source)
- Template:Sandbox other (view source)
- Module:Arguments (view source)
- Module:EditAtWikidata (view source)
- Module:EditAtWikidata/doc (view source)
- Module:Effective protection level (view source)
- Module:High-use (view source)
- Module:Message box (view source)
- Module:Message box/configuration (view source)
- Module:Message box/ombox.css (view source)
- Module:No globals (view source)
- Module:String (view source)
- Module:Transclusion count (view source)
- Module:Transclusion count/data/E (view source)
- Module:Yesno (view source)
Return to Module:EditAtWikidata.