Module:CRTModel: Difference between revisions
No edit summary |
No edit summary |
||
| Line 225: | Line 225: | ||
if hasDocuments then | if hasDocuments then | ||
-- Use #ask with array format | |||
-- Use #ask with array format | |||
local docsQueryWikitext = | local docsQueryWikitext = | ||
'{{#ask:\n' .. | '{{#ask:\n' .. | ||
| Line 244: | Line 240: | ||
local docsResult = frame:preprocess(docsQueryWikitext) | local docsResult = frame:preprocess(docsQueryWikitext) | ||
-- | -- DEBUG: Show raw result | ||
local debugDiv = mw.html.create('div') | |||
debugDiv:css('background', '#fee'):css('padding', '5px'):css('margin', '5px 0') | |||
debugDiv:wikitext('DEBUG docsResult: <pre>' .. mw.text.encode(docsResult or 'nil') .. '</pre>') | |||
td:node(debugDiv) | |||
-- Create UL element | |||
local ul = mw.html.create('ul') | |||
ul:css('margin', '0'):css('padding-left', '1.5em') | |||
-- Add a test item to verify UL works | |||
local testLi = ul:tag('li') | |||
testLi:wikitext('[https://example.com Test Link]') | |||
td:node(ul) | td:node(ul) | ||