Module:Cite Q/sandbox: Difference between revisions

Content deleted Content added
Sascha (talk | contribs)
Subtitle rendering, second attempt
Sascha (talk | contribs)
Fetch subtitle as per advice on https://en.wikipedia.org/wiki/Template_talk:Cite_Q#Subtitles
Line 500:
-- Handle subtitle.
if citeq_args.title then
local subtitle = getValuemw.wikibase.getBestStatements ( {"P1680", ps = 1, qid = qid, maxvals = 1, qo = "y"} 'P1680');
if 0 ~= #subtitle then
subtitle = subtitle[1].mainsnak.datavalue.value.text;
citeq_args.title = citeq_args.title .. ": " .. subtitle
end