This commit is contained in:
Trappist the monk 2026-10-26 03:59:00 +13:00 • committed by Jonathan Harker
parent ca015c4f68
commit 756321f787

View file

@ -1021,8 +1021,8 @@ local function _cite_q (citeq_args)
for k, v in pairs(citeq_args) do
if v == "" then citeq_args[k] = nil end -- remove blank parameters
local link = v:match ('%[%[([^|]+)|%1%]%]'); -- get <link> from <v> wikilink [[<link>|<label>]] when <link> and <label> are same value
if link then -- and if <link> and <label> are the same thing
local link = tostring (v):match ('%[%[([^|]+)|%1%]%]'); -- get <link> from <v> wikilink [[<link>|<label>]] when <link> and <label> are same value
if link then -- if <link> and <label> are the same thing
citeq_args[k] = '[[' .. link .. ']]'; -- rewrite <v> as [[<link>]]
end
end