Difference between revisions of "Module:Authority control/doc/Wikidata properties table"

From blackwiki
Jump to navigation Jump to search
blackwiki>Reedy
(Fix first col sorting)
blackwiki>Tom.Reding
(Convert to self-creating doc module (Why do I get the feeling this won't work w/o admin intervention... *fingers crossed for auto-detecting Lua in module space*))
Line 1: Line 1:
{| class="wikitable sortable"
+
require('Module:No globals')
! Parameter !! Label !! data-sort-type=number | Wikidata property
+
 
|-
+
local authorityControl = require( "Module:Authority control" )
| ACM-DL || [[ACM Digital Library|ACM DL]] || data-sort-value=864|{{WPL|id=f|864}}
+
 
|-
+
local p = {}
| autores.uy || [[autores.uy]] || data-sort-value=2558 | {{WPL|id=f|2558}}
+
|-
+
function p.conf( frame )
| BIBSYS || [[BIBSYS]] || data-sort-value=1015|{{WPL|id=f|1015}}
+
local doctable = '{| class="wikitable sortable"\n' ..
|-
+
'! Parameter !! Label !! data-sort-type=number | Wikidata property'
| BNE || [[Biblioteca Nacional de España|BNE]] || data-sort-value=950|{{WPL|id=f|950}}
+
|-
+
for _, conf in pairs( authorityControl.conf ) do
| BNF || [[Bibliothèque nationale de France|BNF]] || data-sort-value=268|{{WPL|id=f|268}}
+
local param = conf[1]
|-
+
local link = conf[2]
| Botanist || [[Author citation (botany)|Botanist]] || data-sort-value=428|{{WPL|id=f|428}}
+
local pid = conf[3]
|-
+
local args = { id = 'f', pid }
| BPN || [[Biografisch Portaal|BPN]] || data-sort-value=651|{{WPL|id=f|651}}
+
local WPL = frame:expandTemplate{ title = 'Wikidata property link', args = args }
|-
+
doctable = doctable .. '\n' ..
| CINII || [[CiNii]] || data-sort-value=271|{{WPL|id=f|271}}
+
  '|-\n' ..
|-
+
  '|' .. param .. '||' .. link .. '||data-sort-value=' .. pid .. '|' .. WPL
| DBLP || [[DBLP]] || data-sort-value=2456|{{WPL|id=f|2456}}
+
end
|-
+
| GND || [[Integrated Authority File|GND]] || data-sort-value=227|{{WPL|id=f|227}}
+
return doctable .. '\n|}'
|-
+
end
| HDS || [[Historical Dictionary of Switzerland|HDS]] || data-sort-value=902|{{WPL|id=f|902}}
+
 
|-
+
return p
| ISNI || [[International Standard Name Identifier|ISNI]] || data-sort-value=213|{{WPL|id=f|213}}
 
|-
 
| KULTURNAV || [[KulturNav]] || data-sort-value=1248|{{WPL|id=f|1248}}
 
|-
 
| LCCN || [[Library of Congress Control Number|LCCN]] || data-sort-value=244|{{WPL|id=f|244}}
 
|-
 
| LIR || [[Historical Dictionary of Switzerland#Lexicon_Istoric_Retic|LIR]] || data-sort-value=886|{{WPL|id=f|886}}
 
|-
 
| Léonore || [[Base Léonore|Léonore]] || data-sort-value=640|{{WPL|id=f|640}}
 
|-
 
| MBA || [[MusicBrainz]] || data-sort-value=434|{{WPL|id=f|434}}
 
|-
 
| MGP || [[Mathematics Genealogy Project|MGP]] || data-sort-value=549|{{WPL|id=f|549}}
 
|-
 
| NARA-organization || [[National Archives and Records Administration|NARA]] || data-sort-value=1223|{{WPL|id=f|1223}}
 
|-
 
| NARA-person || [[National Archives and Records Administration|NARA]] || data-sort-value=1222|{{WPL|id=f|1222}}
 
|-
 
| NCL || [[National Central Library|NCL]] || data-sort-value=1048|{{WPL|id=f|1048}}
 
|-
 
| NDL || [[National Diet Library|NDL]] || data-sort-value=349|{{WPL|id=f|349}}
 
|-
 
| NKC || [[National Library of the Czech Republic|NKC]] || data-sort-value=691|{{WPL|id=f|691}}
 
|-
 
| NLA || [[National Library of Australia|NLA]] || data-sort-value=409|{{WPL|id=f|409}}
 
|-
 
| ORCID || [[ORCID]] || data-sort-value=496|{{WPL|id=f|496}}
 
|-
 
| PIC || [[Photographers' Identities Catalog|PIC]] || data-sort-value=2750 | {{WPL|id=f|2750}}
 
|-
 
| RID || [[ResearcherID]] || data-sort-value=1053|{{WPL|id=f|1053}}
 
|-
 
| RKDartists || [[Netherlands Institute for Art History#Online artist pages|RKD]] || data-sort-value=650|{{WPL|id=f|650}}
 
|-
 
| RLS || [[Russian State Library|RLS]] || data-sort-value=947|{{WPL|id=f|947}}
 
|-
 
| SBN || [[Istituto Centrale per il Catalogo Unico|ICCU]] || data-sort-value=396|{{WPL|id=f|396}}
 
|-
 
| SELIBR || [[LIBRIS|SELIBR]] || data-sort-value=906|{{WPL|id=f|906}}
 
|-
 
| SIKART || [[SIKART]] || data-sort-value=781|{{WPL|id=f|781}}
 
|-
 
| SNAC-ID || [[SNAC]] || data-sort-value=3430|{{WPL|id=f|3430}}
 
|-
 
| SUDOC || [[Système universitaire de documentation|SUDOC]] || data-sort-value=269|{{WPL|id=f|269}}
 
|-
 
| TLS || [[Theaterlexikon der Schweiz|TLS]] || data-sort-value=1362|{{WPL|id=f|1362}}
 
|-
 
| ULAN || [[Union List of Artist Names|ULAN]] || data-sort-value=245|{{WPL|id=f|245}}
 
|-
 
| USCongress || [[Biographical Directory of the United States Congress|US Congress]] || data-sort-value=1157|{{WPL|id=f|1157}}
 
|-
 
| VIAF || [[Virtual International Authority File|VIAF]] || data-sort-value=214|{{WPL|id=f|214}}
 
|}
 

Revision as of 19:02, 24 May 2018

require('Module:No globals')

local authorityControl = require( "Module:Authority control" )

local p = {}

function p.conf( frame ) local doctable = '{| class="wikitable sortable"\n' .. '! Parameter !! Label !! data-sort-type=number | Wikidata property'

for _, conf in pairs( authorityControl.conf ) do local param = conf[1] local link = conf[2] local pid = conf[3] local args = { id = 'f', pid } local WPL = frame:expandTemplate{ title = 'Wikidata property link', args = args } doctable = doctable .. '\n' .. '|-\n' .. '|' .. param .. '||' .. link .. '||data-sort-value=' .. pid .. '|' .. WPL end

return doctable .. '\n|}' end

return p