Module:CRTModel: Difference between revisions
No edit summary |
No edit summary |
||
| Line 194: | Line 194: | ||
end | end | ||
-- Documents section | |||
-- Check if there are any documents first | -- Check if there are any documents first | ||
local documentsCheckWikitext = | local documentsCheckWikitext = | ||
| Line 231: | Line 231: | ||
' |named args=yes\n' .. | ' |named args=yes\n' .. | ||
' |searchlabel=\n' .. | ' |searchlabel=\n' .. | ||
'}} | '}}' | ||
-- | -- Preprocess the #ask query to execute it | ||
addFullRow(tbl, | local docListHtml = frame:preprocess(docListWikitext) | ||
-- Combine with upload link | |||
local combinedHtml = docListHtml .. '\n\n<div style="margin-top:0.5em; font-style:italic;">[' .. tostring(uploadUrl) .. ' Upload a document]</div>' | |||
-- Use isRawHtml=true since we've already preprocessed and have HTML | |||
addFullRow(tbl, combinedHtml, 'padding:0.2em 0.4em;', true) | |||
else | else | ||
-- Just show the upload link styled as italic | -- Just show the upload link styled as italic | ||