Module:Citation/CS1: Difference between revisions

UniversalLoser (talk | contribs)
tentatively adding url-avs
UniversalLoser (talk | contribs)
m moved the wrapping later still
 
(3 intermediate revisions by the same user not shown)
Line 2,839: Line 2,839:
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'];
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,617: Line 3,621:
elseif not utilities.is_set (TitleLink) and utilities.is_set (URLAVS) then
elseif not utilities.is_set (TitleLink) and utilities.is_set (URLAVS) then
Title = external_link (URLAVS, Title, URL_origin, UrlAccess) .. TransTitle .. Format;
Title = external_link (URLAVS, Title, URL_origin, UrlAccess) .. TransTitle .. Format;
URL = '';
URLAVS = ''; -- unset these because no longer needed
URLAVS = ''; -- unset these because no longer needed
Format = "";
Format = "";
Line 3,948: Line 3,953:
end
end
end
end
end
if utilities.is_set (URLAVS) then
Title = utilities.wrap_style ('user-show', Title);
end
end