Модуль:Книга:The Scots Peerage (Bk;rl,&Tunig&The Scots Peerage)

Перейти к навигации Перейти к поиску
Документация

Модуль содержит таблицы данных для шаблона {{Книга:The Scots Peerage}}.

Основной параметр для вызова функций — <Номер тома>. Вызовы функций:

  • {{#invoke:The Scots Peerage|BookYear|<Номер тома>}} — номер года издания тома
  • {{#invoke:The Scots Peerage|BookName|<Номер тома>}} — название тома
  • {{#invoke:The Scots Peerage|BookPage|<Номер тома>}} — число страниц тома
  • {{#invoke:The Scots Peerage|BookURL|<Номер тома>}} — url тома на сайте archive.org
  • {{#invoke:The Scots Peerage|BookEdit|<Номер тома>}} — ответственные редакторы тома
  • {{#invoke:The Scots Peerage|BookVolume|<Номер тома>}} — отображение номера тома в библиографическом описании
local p = {}

local year={}
year["1"]="1904"
year["2"]="1905"
year["3"]="1906"
year["4"]="1907"
year["5"]="1908"
year["6"]="1909"
year["7"]="1910"
year["8"]="1911"
year["9"]="1914"

local volume={}
volume["1"]="I"
volume["2"]="II"
volume["3"]="III"
volume["4"]="IV"
volume["5"]="V"
volume["6"]="VI"
volume["7"]="VII"
volume["8"]="VIII"
volume["9"]="IX"

local url={}
url["1"]="https://archive.org/details/scotspeeragefoun01paul"
url["2"]="https://archive.org/details/scotspeeragefoun02paul"
url["3"]="https://archive.org/details/scotspeeragefoun03paul"
url["4"]="https://archive.org/details/scotspeeragefoun04paul"
url["5"]="https://archive.org/details/scotspeeragefoun05paul"
url["6"]="https://archive.org/details/scotspeeragefoun06paul"
url["7"]="https://archive.org/details/scotspeeragefoun07paul"
url["8"]="https://archive.org/details/scotspeeragefoun08paul"
url["9"]="https://archive.org/details/scotspeeragefoun09paul"

local name={}
name["1"]="The Scots peerage; founded on Wood's edition of Sir Robert Douglas's peerage of Scotland; containing an historical and genealogical account of the nobility of that kingdom"
name["2"]="The Scots peerage; founded on Wood's edition of Sir Robert Douglas's peerage of Scotland; containing an historical and genealogical account of the nobility of that kingdom"
name["3"]="The Scots peerage; founded on Wood's edition of Sir Robert Douglas's peerage of Scotland; containing an historical and genealogical account of the nobility of that kingdom"
name["4"]="The Scots peerage; founded on Wood's edition of Sir Robert Douglas's peerage of Scotland; containing an historical and genealogical account of the nobility of that kingdom"
name["5"]="The Scots peerage; founded on Wood's edition of Sir Robert Douglas's peerage of Scotland; containing an historical and genealogical account of the nobility of that kingdom"
name["6"]="The Scots peerage; founded on Wood's edition of Sir Robert Douglas's peerage of Scotland; containing an historical and genealogical account of the nobility of that kingdom"
name["7"]="The Scots peerage; founded on Wood's edition of Sir Robert Douglas's peerage of Scotland; containing an historical and genealogical account of the nobility of that kingdom"
name["8"]="The Scots peerage; founded on Wood's edition of Sir Robert Douglas's peerage of Scotland; containing an historical and genealogical account of the nobility of that kingdom"
name["9"]="The Scots peerage; founded on Wood's edition of Sir Robert Douglas's peerage of Scotland; containing an historical and genealogical account of the nobility of that kingdom"

local page={}
page["1"]="575"
page["2"]="602"
page["3"]="617"
page["4"]="597"
page["5"]="639"
page["6"]="601"
page["7"]="502"
page["8"]="605"
page["9"]="913"

local edit={}
edit["1"]="Edited by Sir James Balfoure Paul"
edit["2"]="Edited by Sir James Balfoure Paul"
edit["3"]="Edited by Sir James Balfoure Paul"
edit["4"]="Edited by Sir James Balfoure Paul"
edit["5"]="Edited by Sir James Balfoure Paul"
edit["6"]="Edited by Sir James Balfoure Paul"
edit["7"]="Edited by Sir James Balfoure Paul"
edit["8"]="Edited by Sir James Balfoure Paul"
edit["9"]="Edited by Sir James Balfoure Paul"

function p.BookYear (frame)
    return year[frame.args[1]]
end

function p.BookName (frame)
    return name[frame.args[1]]
end

function p.BookVolume (frame)
    return volume[frame.args[1]]
end

function p.BookPage (frame)
    return page[frame.args[1]]
end

function p.BookURL (frame)
    return url[frame.args[1]]
end

function p.BookEdit (frame)
    return edit[frame.args[1]]
end

return p