Module:Citation/CS1: Difference between revisions
wrap title link if the url-avs parameter is set
m (casting urlavs to url) |
(wrap title link if the url-avs parameter is set) |
||
Line 3,590: | Line 3,590: | ||
Title = kern_quotes (Title); -- if necessary, separate title's leading and trailing quote marks from module provided quote marks | Title = kern_quotes (Title); -- if necessary, separate title's leading and trailing quote marks from module provided quote marks | ||
Title = utilities.wrap_style ('quoted-title', Title); | Title = utilities.wrap_style ('quoted-title', Title); | ||
if utilities.is_set (URLAVS) then | |||
Title = utilities.wrap_style ('user-show', Title); | |||
end | |||
Title = script_concatenate (Title, ScriptTitle, 'script-title'); -- <bdi> tags, lang attribute, categorization, etc.; must be done after title is wrapped | Title = script_concatenate (Title, ScriptTitle, 'script-title'); -- <bdi> tags, lang attribute, categorization, etc.; must be done after title is wrapped | ||
TransTitle = utilities.wrap_style ('trans-quoted-title', TransTitle ); | TransTitle = utilities.wrap_style ('trans-quoted-title', TransTitle ); | ||
Line 3,621: | Line 3,624: | ||
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 = ""; |