Module:Citation/CS1: Difference between revisions

UniversalLoser (talk | contribs)
No edit summary
UniversalLoser (talk | contribs)
m moved the wrapping later still
 
(4 intermediate revisions by the same user not shown)
Line 2,838: Line 2,838:


local URL = A['URL']; -- TODO: better way to do this for URL, ChapterURL, and MapURL?
local URL = A['URL']; -- TODO: better way to do this for URL, ChapterURL, and MapURL?
local URLAVS = A['URL-AVS'];
if utilities.is_set (URLAVS) then
URL = URLAVS;
end
local UrlAccess = is_valid_parameter_value (A['UrlAccess'], A:ORIGIN('UrlAccess'), cfg.keywords_lists['url-access'], nil);
local UrlAccess = is_valid_parameter_value (A['UrlAccess'], A:ORIGIN('UrlAccess'), cfg.keywords_lists['url-access'], nil);
Line 3,613: Line 3,618:
Title = external_link (URL, Title, URL_origin, UrlAccess) .. TransTitle .. Format;
Title = external_link (URL, Title, URL_origin, UrlAccess) .. TransTitle .. Format;
URL = ''; -- unset these because no longer needed
URL = ''; -- unset these because no longer needed
Format = "";
elseif not utilities.is_set (TitleLink) and utilities.is_set (URLAVS) then
Title = external_link (URLAVS, Title, URL_origin, UrlAccess) .. TransTitle .. Format;
URL = '';
URLAVS = ''; -- unset these because no longer needed
Format = "";
Format = "";
elseif utilities.is_set (TitleLink) and not utilities.is_set (URL) then
elseif utilities.is_set (TitleLink) and not utilities.is_set (URL) then
Line 3,943: Line 3,953:
end
end
end
end
end
if utilities.is_set (URLAVS) then
Title = utilities.wrap_style ('user-show', Title);
end
end