Jump to content
Main menu
Main menu
move to sidebar
hide
hamba uye
Iphepha Elingundoqo
Community portal
Utshitsho olusandokwenziwa
Random page
Uncedo
Amaphepha Abalulekileyo
Khangela
Khangela
Appearance
Amalizo
Yenza i-akhawunti yakho
Vula ungene
Izixhobo zangaphakathi kwikhompyutha okhetha ukuzisebenzisa
Amalizo
Yenza i-akhawunti yakho
Vula ungene
Pages for logged out editors
learn more
Igalelo lam
Talk
Editing
Module:EditAtWikidata
Add languages
Module
Ingxoxo
English
Funda
Edit source
Khawujonge imbali yeli phepha
Izixhobo zokuhlalutya ulwimi okanye ulwazi olufakwa ngaphakthi kwikhompyutha
Tools
move to sidebar
hide
Actions
Funda
Edit source
Khawujonge imbali yeli phepha
General
Yintoni exhumene/edibene nalapha
Utsitsho olufana nolu
Faka Ifile
Iinkcukacha ngeli khasi
Get shortened URL
Download QR code
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
-- 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*$') end end function p._showMessage(args) local local_parm = trimToNil(args[1]) if local_parm then return "" end -- Parameter qid=x specifies the Wikidata ID for the article. -- This is not normally used except for testing outside the article. local qid = trimToNil(args.qid) or mw.wikibase.getEntityIdForCurrentPage() if qid and mw.wikibase.entityExists(qid) then -- Parameter pid=x uses x as an anchor in the link to the Wikidata entry. local anchor = trimToNil(args.pid) -- Parameter nbsp replaces the leading space with local space = trimToNil(args.nbsp) and " " or " " return space .. "[[File:OOjs UI icon edit-ltr-progressive.svg|frameless|text-top|10px" .. "|alt=" .. i18n.message .. "|link=https://www.wikidata.org/wiki/" .. qid .. (anchor and ("#" .. anchor) or "") .. "|class=noprint" .. "|" .. i18n.message .. "]]" end return "" end function p.showMessage(frame) return p._showMessage(frame.args) end return p
Isishwankathelo:
By saving changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cima
Uncedo ngoTshintsho
(opens in new window)
Preview page with this template
Wikidata entities used in this page
Module:EditAtWikidata
: Sitelink, Description: en
Template used on this page:
Module:EditAtWikidata/doc
(
tshintsha
)
Khangela
Khangela
Editing
Module:EditAtWikidata
Add languages
Faka isihloko