Modul:Citation/CS1: Redaktələr arasındakı fərq
Redaktənin izahı yoxdur |
Redaktənin izahı yoxdur |
||
| (Eyni redaktor tərəfindən edilmiş bir ara dəyişiklik göstərilmir) | |||
| Sətir 288: | Sətir 288: | ||
end | end | ||
end | end | ||
| Sətir 368: | Sətir 367: | ||
error_message=error_message .. "|" .. k .. "="; -- add the failed parameter | error_message=error_message .. "|" .. k .. "="; -- add the failed parameter | ||
end | end | ||
end | end | ||
end | end | ||
| Sətir 383: | Sətir 379: | ||
local function safe_for_url( str ) | local function safe_for_url( str ) | ||
if str:match( "%[%[.-%]%]" ) ~= nil then | if str:match( "%[%[.-%]%]" ) ~= nil then | ||
end | end | ||
| Sətir 404: | Sətir 399: | ||
local path; | local path; | ||
local base_url; | local base_url; | ||
if not is_set( label ) then | if not is_set( label ) then | ||
label = URL; | label = URL; | ||
| Sətir 424: | Sətir 419: | ||
base_url = table.concat({ "[", URL, " ", safe_for_url (label), "]" }); -- assemble a wikimarkup url | base_url = table.concat({ "[", URL, " ", safe_for_url (label), "]" }); -- assemble a wikimarkup url | ||
if is_set (access) then -- access level (subscription, registration, limited) | if is_set (access) then -- access level (subscription, registration, limited) | ||
base_url = substitute (cfg.presentation['ext-link-access-signal'], {cfg.presentation[access].class, cfg.presentation[access].title, base_url}); -- add the appropriate icon | base_url = substitute (cfg.presentation['ext-link-access-signal'], {cfg.presentation[access].class, cfg.presentation[access].title, base_url}); -- add the appropriate icon | ||