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ş 4 ara dəyişiklik göstərilmir) | |||
| Sətir 412: | Sətir 412: | ||
end | end | ||
domain, path = URL:match ('^([/%.%-%+:%a%d]+)([/%?#].*)$'); -- split the url into scheme plus domain and path | |||
if path then -- if there is a path portion | |||
path = path:gsub ('[%[%]]', {['[']='%5b',[']']='%5d'}); -- replace '[' and ']' with their percent encoded values | |||
URL = table.concat ({domain, path}); -- and reassemble | |||
end | |||
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) | ||