Module:Sandbox/ChaoticShadow/InfoboxBuilder: Difference between revisions

Content added Content deleted
No edit summary
No edit summary
Line 383: Line 383:
_cell:wikitext(v.content)
_cell:wikitext(v.content)
elseif v.tag == 'argth' or v.tag == 'argtd' then
elseif v.tag == 'argth' or v.tag == 'argtd' then
local content = self:getContent(v.content)
_cell:wikitext(
self:getContent(v.content)
if content then
_cell:wikitext(content)
or
else
string.format([[
_cell:tag('a')
<span class="plainlinks">
:attr('href',
[%s?action=edit Edit this page]
string.format("%s?action=edit",
</span>
tostring(mw.uri.fullUrl(mw.title.getCurrentTitle().text))
]],
)
tostring(mw.uri.fullUrl(mw.title.getCurrentTitle().text))
)
)
)
:wikitext('?')
end
end
end
end
end