Module:Citation/CS1: Difference between revisions
fixed to allow "contribution=x" (formerly ignored); fixed "EditorSep" (was misspelled "EdithorSep").
m>Wikid77 (undid 2 revisions after "Script error") |
m>Wikid77 (fixed to allow "contribution=x" (formerly ignored); fixed "EditorSep" (was misspelled "EdithorSep").) |
||
Line 276: | Line 276: | ||
local TitleNote = args.department | local TitleNote = args.department | ||
local TitleLink = args.titlelink or args.episodelink | local TitleLink = args.titlelink or args.episodelink | ||
local Chapter = args.chapter or args.article or args.entry | local Chapter = args.chapter or args.contribution or args.article or args.entry | ||
local ChapterLink = args.chapterlink | local ChapterLink = args.chapterlink | ||
local TransChapter = args["trans-chapter"] or args.trans_chapter | local TransChapter = args["trans-chapter"] or args.trans_chapter | ||
Line 456: | Line 456: | ||
end | end | ||
if ( Editors == nil ) then | if ( Editors == nil ) then | ||
local EditorNameSep = args["editor-name-separator"] or args["name-separator"] or ", " | local EditorNameSep = args["editor-name-separator"] or args["name-separator"] or "," | ||
local EditorSep = args["editor-separator"] or args["separator"] or "; " | EditorNameSep = EditorNameSep + " " | ||
local EditorSep = args["editor-separator"] or args["separator"] or ";" | |||
EditorSep = EditorSep + " " | |||
local EditorFormat = args["editor-format"] or args.editorformat | local EditorFormat = args["editor-format"] or args.editorformat | ||
local EditorMaximum = tonumber(args["display-editors"] or args.displayeditors) or 3 | local EditorMaximum = tonumber(args["display-editors"] or args.displayeditors) or 3 | ||
local control = { sep = | local control = { sep = EditorSep, namesep = EditorNameSep, format = EditorFormat, maximum = EditorMaximum } | ||
Editors = listpeople(control, e) | Editors = listpeople(control, e) | ||
end | end | ||
Line 1,020: | Line 1,022: | ||
--20Feb2013 Fix empty "authorlink=" as person.link ~= "". | --20Feb2013 Fix empty "authorlink=" as person.link ~= "". | ||
--20Feb2013 Added space after AuthorSep & AuthorNameSep. | --20Feb2013 Added space after AuthorSep & AuthorNameSep. | ||
--21Feb2013 Fixed to allow "contribution=x" as "new" parameter. | |||
--21Feb2013 Fixed separator "EditorSep" (was "EdithorSep"). | |||
-- | -- | ||
--End | --End |