View source for Module:EditAtWikidata
From The Goon Show Depository
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:Documentation (view source)
- Template:Endplainlist (view source)
- Template:Lua sidebar (view source)
- Template:Lua sidebar/styles.css (view source)
- Template:Module other (view source)
- Template:Module rating (view source)
- Template:Ombox (view source)
- Template:Plainlist (view source)
- Template:Plainlist/styles.css (view source)
- Template:Sandbox other (view source)
- Template:Sidebar (view source)
- Module:Arguments (view source)
- Module:Documentation (view source)
- Module:Documentation/config (view source)
- Module:Documentation/styles.css (view source)
- Module:EditAtWikidata (view source)
- Module:EditAtWikidata/doc (view source)
- Module:Effective protection level (view source)
- Module:Message box (view source)
- Module:Message box/configuration (view source)
- Module:Message box/ombox.css (view source)
- Module:Redirect (view source)
- Module:Sidebar (view source)
- Module:Sidebar/configuration (view source)
- Module:Sidebar/styles.css (view source)
- Module:Yesno (view source)
Return to Module:EditAtWikidata.