Module:Citation/CS1: Difference between revisions
m
is_parameter_ext_wikilink() fix;
m>Trappist the monk (Synch from sandbox;) |
m>Trappist the monk m (is_parameter_ext_wikilink() fix;) |
||
Line 2,174: | Line 2,174: | ||
local function is_parameter_ext_wikilink (value) | local function is_parameter_ext_wikilink (value) | ||
if value:match ("%[%a[%a%d%+%.%-]*:.*%]") or value:match ("%[//.*%]") then -- does the param value contain an external wikilink? | if value:match ("%[%[%a+:") then -- if a wikilink with namespace | ||
return false; | |||
elseif value:match ("%[%a[%a%d%+%.%-]*:.*%]") or value:match ("%[//.*%]") then -- does the param value contain an external wikilink? | |||
return true; | return true; | ||
else | else |