Модул:Нормативен контрол: Разлика между версии
Изтрито е съдържание Добавено е съдържание
Ted Masters (беседа | приноси) Редакция без резюме |
replace the internal wikilinks with external ones per https://bg.wikipedia.org/w/index.php?oldid=10493105 |
||
Ред 1:
local p = {}
--[[==========================================================================]]
--[[ Local functions ]]
--[[==========================================================================]]
--- Creates a label that links to an article in the main namespace.
-- The link is external ([...], not [[...]]), so the 'What links here' results
-- don't get polluted from the widely transcluded authority control template.
-- See also https://bg.wikipedia.org/w/index.php?oldid=10493105
-- @param article The name of the article to be linked to in the label
-- @param text[opt=article] The text for the label (defaults to article name)
-- @return A string representing an external link in MediaWiki markup.
local function linkedLabel( article, text )
-- If 'text' is not provided, show the article name as text of the link.
text = text or article
local page = mw.title.makeTitle( 0, article )
return '[' .. page:fullUrl() .. ' ' .. text .. ']'
end
--[[==========================================================================]]
Line 751 ⟶ 769:
-- Parameter format: { name of the parameter, label, propertyId in Wikidata, formatting function, category (used in p.docConfTable for tracking) }
-- IMPORTANT: Create links to articles in the label parameter _only_ with the
-- linkedLabel() function. In particular, do not use internal links ([[...]]).
-- See the discussion in https://bg.wikipedia.org/w/index.php?oldid=10493105
p.conf = {
{ 'AAT', 'Art & Architecture Thesaurus', 1014, p.aatLink },
Line 756 ⟶ 777:
{ 'autores.uy', 'autores.uy', 2558, p.autoresuyLink },
{ 'BALaT', 'BALaT', 3293, p.balatLink },
{ 'BIBSYS', linkedLabel('
{ 'Bildindex', 'Bildindex', 2092, p.bildLink },
{ 'BNE', linkedLabel('
{ 'BNed', 'BNed', 2187, p.BNeditionLink, category = 'BiblioNet book' },
{ 'BNF', linkedLabel('
{ 'BNper', 'BNper', 2188, p.BNpersonLink, category = 'BiblioNet author' },
{ 'BNpub', 'BNpub', 2189, p.BNpublisherLink, category = 'BiblioNet' },
Line 768 ⟶ 789:
{ 'DBLP', 'DBLP', 2456, p.dblpLink },
{ 'DSI', 'DSI', 2349, p.dsiLink },
{ 'EBE', linkedLabel('
{ 'Europeana', linkedLabel('
{ 'FAST', 'FAST', 2163, p.fastLink },
{ 'GND', linkedLabel('
{ 'HDS', linkedLabel('
{ 'IAAF', linkedLabel('
{ 'ICIA', 'ICIA', 1736, p.iciaLink },
{ 'ISNI', linkedLabel('
{ 'Joconde', 'Joconde' , 347, p.jocondeLink },
{ 'JSTOR', linkedLabel('
{ 'Koninklijke', linkedLabel('
{ 'KULTURNAV', 'KulturNav', 1248, p.kulturnavLink },
{ 'LCCN', linkedLabel('
{ 'LIR', linkedLabel('
{ 'LNB', 'LNB', 1368, p.lnbLink },
{ 'Léonore', 'Léonore', 640, p.leonoreLink },
{ 'MBA', linkedLabel('
{ 'MBAREA', linkedLabel('
{ 'MBI', linkedLabel('
{ 'MBL', linkedLabel('
{ 'MBP', linkedLabel('
{ 'MBRG', linkedLabel('
{ 'MBS', linkedLabel('
{ 'MBW', linkedLabel('
{ 'MGP', 'MGP', 549, p.mgpLink },
{ 'NARA', 'NARA', 1225, p.naraLink },
{ 'NCL', 'NCL', 1048, p.nclLink },
{ 'NDL', linkedLabel('
{ 'NEWW', 'NEWW Women Writers', 2533, p.newwLink },
{ 'NKC', linkedLabel('
{ 'NLA', linkedLabel('
{ 'NSK', 'NSK', 1375, p.nskLink },
{ 'OCLC', linkedLabel('
{ 'OpenLibrary', 'Open Library', 648, p.openLibraryLink },
{ 'ORCID', 'ORCID', 496, p.orcidLink },
{ 'PIC', 'PIC', 2750, p.picLink },
{ 'RID', 'ResearcherID', 1053, p.ridLink },
{ 'RKDartists', linkedLabel('
{ 'RKDID', 'RKDimages ID', 350, p.rkdidLink },
{ 'RSL', linkedLabel('
{ 'SBN', 'ICCU', 396, p.sbnLink },
{ 'SELIBR', linkedLabel('
{ 'SIKART', 'SIKART', 781, p.sikartLink },
{ 'SNAC-ID', 'SNAC', 3430, p.snacLink },
{ 'SUDOC', linkedLabel('
{ 'TA98', 'TA98', 1323, p.ta98Link },
{ 'TE', 'TE', 1693, p.teLink },
Line 819 ⟶ 840:
{ 'ULAN', 'ULAN', 245, p.ulanLink },
{ 'USCongress', 'US Congress', 1157, p.uscongressLink },
{ 'VIAF', linkedLabel('
{ 'WORLDCATID', 'WorldCat', 7859, p.worldcatidLink, category = 'WorldCat' },
}
|