檢視 模块:Authority control 的原始碼
由於下列原因,您沒有權限進行 編輯此頁面 的動作:
您可以檢視並複製此頁面的原始碼。
require('Module:No globals')
local function getCatForId( id )
local title = mw.title.getCurrentTitle()
local namespace = title.namespace
if namespace == 0 then
return '[[Category:包含规范控制信息的条目]]'
elseif namespace == 2 and not title.isSubpage then
return '[[Category:包含规范控制信息的用户页]]'
else
return '[[Category:包含规范控制信息的页面]]'
end
end
local function viafLink( id )
if not string.match( id, '^%d+$' ) then
return false
end
return '[https://viaf.org/viaf/' .. id .. ' ' .. id .. ']' .. getCatForId( 'VIAF' )
end
000
1:0
此頁面使用了以下模板:
返回「模块:Authority control」頁面