View source for Module:WikidataCheck
From HandWiki
You do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page.
local p = {}
function p.wikidatacheck(frame)
local pframe = frame:getParent()
local config = frame.args -- the arguments passed BY the template, in the wikitext of the template itself
local args = pframe.args -- the arguments passed TO the template, in the wikitext that transcludes the template
local property = config.property
local value = config.value or ""
local catbase = config.category
local namespaces = config.namespaces
local nocatsame = config.nocatsame or ""
local ok = false -- one-way flag to check if we're in a good namespace
local ns = mw.title.getCurrentTitle().namespace
for v in mw.text.gsplit( namespaces, ",", true) do
if tonumber(v) == ns then
ok = true
end
end
if not ok then -- not in one of the approved namespaces
000
1:0
Templates used on this page:
- Template:Documentation subpage (view source)
- Template:Label (view source)
- Template:Ombox (view source)
- Template:Para (view source)
- Template:Property (view source)
- Template:Sandbox other (view source)
- Template:Str left (view source)
- Template:Template link (view source)
- Template:Template link expanded (view source)
- Template:Tl (view source)
- Template:Tlx (view source)
- Template:WikidataCheck/doc (view source)
- Template:Wikidata property link (view source)
- Module:Arguments (view source)
- Module:Message box (view source)
- Module:Message box/configuration (view source)
- Module:No globals (view source)
- Module:String (view source)
- Module:Template link general (view source)
- Module:Wd (view source)
- Module:Wd/i18n (view source)
- Module:WikidataCheck/doc (view source)
- Module:Yesno (view source)
Return to Module:WikidataCheck.