Module:Variable arguments: Difference between revisions
ArrowHead294 (talk | contribs) mNo edit summary |
Undo revision 198838 by ArrowHead294 (talk). Broken |
||
| Line 66: | Line 66: | ||
end | end | ||
result = "{ | result = "<div class=\"sidebox\">\n" | ||
.. string.format("%s:\n%s\n", | .. "{|\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} | .. "|}\n</div>" | ||
.. 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>" | ||