Content deleted Content added
No edit summary |
Shonebrooks (talk | contribs) m I corrected the spelling of "parameter." WP:TYPO |
||
(3 intermediate revisions by one other user not shown) | |||
Line 12:
For wikis that use some sort of variant of the Module:Citation/CS1 suite, supported parameters may (usually) be
fetched from the non-English Module:Citation/CS1/Configuration (may be differently named) aliases table.
For wikis that use wikitext templates, copy the template's wikitext to
function param_names_get () to
{{#invoke:CS1 translator|param_names_get|<page name>|<language tag>}}
]]
Line 1,658 ⟶ 1,659:
ru = { -- these parameters from ru:Шаблон:Книга (Template:Книга) (cite book)
['автор'] = 'author',
['автор имя'] = 'first',
['автор линк'] = 'author-link';
['часть'] = 'chapter',
['часть оригинал'] = 'trans-chapter',
['ссылка'] = 'url',
['ссылка часть'] = 'chapter-url',
['назва'] = 'title',
['название'] = 'title',
['заглавие'] = 'title',
['подзаголовок'] = nil, -- no cs1|2 equivalent: |subtitle=
['викитека'] = nil, -- no cs1|2 equivalent: wikisource; |title-link=?
['викисклад'] = nil, -- no cs1|2 equivalent: commons; |title-link=?
['оригинал'] = '
['ответственный'] = '
['издание'] = '
['тираж'] = nil, -- part of edition (circulation?)
['город'] = '___location',
['место'] = '___location',
['
['год'] = 'date', -- in wikitext Cite journal/Russian this is |year=
['рік'] = 'year',
-- ['місяць'] = 'month',
-- ['день'] = 'day',
['издательство'] = 'publisher',
['страницы как есть'] = 'at', -- 'pages as they are'?
Line 1,679 ⟶ 1,689:
['страницы'] = 'pages',
['страниц'] = 'pages',
['сторінок'] = 'page',
['сторінки'] = 'pages',
['страница'] = 'page', -- in {{Книга}} but not in ru:Шаблон:Книга
['серия'] = 'series',
['язык'] = 'language',
['язык издания'] = 'language',
['оригинал язык'] = 'language', -- original language
['nodot'] = nil, -- no cs1|2 equivalent; suppresses the dot when |title=<title> ends with puctuation
['nodot2'] = nil, -- no cs1|2 equivalent
['столбцы'] = nil, -- columns; |at=col. <column>?
-- these taken from :ru:Шаблон:Статья (Template:Книга) (cite journal)
['автор издания'] = 'authors', -- in wikitext Cite journal/Russian this is editor; google translate says 'author of the publication'
['тип'] = 'type',
['месяц'] = nil, -- month
['число'] = nil, -- day; in wikitext Cite journal/Russian this is |quote=; that can't be right
['
-- ['archiveurl'] = 'archive-url',
-- ['
['
['архив'] = 'archive-url',
-- enumerated parameters; non-enumerated forms of these parameters created by build_params_main_t()
['автор#'] = 'last#',
['автор# имя'] = 'first#',
['автор# линк'] = 'author-link#',
['ответственный#'] = 'editor#',
},
Line 2,059 ⟶ 2,080:
ru = { -- Russian
year_t = {'год', 'рік', 'year'},
month_t = {'месяц'},
day_t = {'число', 'день'},
},
Line 2,247 ⟶ 2,268:
['publicationdate'] = 'publication-date',
['transmissão'] = 'air-date',
▲ },
ru = { -- Russian
['archivedate'] = 'archive-date',
['архив дата'] = 'archive-date',
['оригинал'] = 'orig-date',
},
Line 2,347 ⟶ 2,374:
nl = {'språk', 'language'}, -- Dutch
no = {'på', 'språk'}, -- Norwegian
ru = {'язык', 'язык издания', 'оригинал язык'},
sv = {'språk', 'language'}, -- Swedish
tr = {'dil', 'language'}, -- Turkish
Line 2,377 ⟶ 2,404:
error (lang .. '[' .. k .. ']: '.. v .. ' missing \'#\''); -- glaring error message because '#' required on both sides
else
if k:find ('#', 1, true) then -- does the
out_t[lang][k:gsub('#', '')] = v:gsub('#', ''); -- add a non-enumerated version of the parameter to the output
end
|