Module:Variable arguments: Difference between revisions

ArrowHead294 (talk | contribs)
mNo edit summary
ArrowHead294 (talk | contribs)
mNo edit summary
Line 66: Line 66:
end
end
result = "<div class=\"sidebox\">\n"
result = "{{sidebox\n| image = Lua-Logo.svg\n| image size = 30px\n | text = "
.. "{|\n"
.. string.format("%s:\n%s\n",
.. "|-\n"
.. "| <span class=\"sidebox-image\">[[File:Lua-Logo.svg|30px]]</span>"
.. " || <span class=\"sidebox-text\">"
.. string.format("%s:\n%s</span>\n",
(namespace == "module"
(namespace == "module"
and "This module depends on the following other modules"
and "This module depends on the following other modules"
or "This template uses [[wikipedia:wp:Lua|Lua]]"),
or "This template uses [[wikipedia:wp:Lua|Lua]]"),
result)
result)
.. "|}\n</div>"
.. "\n}}"
.. mw.getCurrentFrame():extensionTag("templatestyles", "", {
 
src = "Module:Variable arguments/styles.css"
})
if yesno(debugg) == true then
if yesno(debugg) == true then
result = "<syntaxhighlight lang=\"wikitext\">" .. result .. "</syntaxhighlight>"
result = "<syntaxhighlight lang=\"wikitext\">" .. result .. "</syntaxhighlight>"