Module:Variable arguments: Difference between revisions
ArrowHead294 (talk | contribs) m Check for nil first so that "trim" does not error out |
ArrowHead294 (talk | contribs) mNo edit summary |
||
| Line 123: | Line 123: | ||
result = "<div style=\"background: #f9f9f9; border: 1px solid #aaa; clear: right; float: right; " | result = "<div style=\"background: #f9f9f9; border: 1px solid #aaa; clear: right; float: right; " | ||
.. "font-size: 90%; width: 300px; margin: 0 0 4px 4px; padding: 4px 4px 4px 4px; text-align: left;\">\n" | .. "font-size: 90%; width: 300px; margin: 0 0 4px 4px; padding: 4px 4px 4px 4px; text-align: left;\">\n" | ||
.. " | .. "{|\n" | ||
.. "< | .. "|-\n" | ||
.. "| [[File:Wikipedia-logo.png|44px|none|link=|alt=]]" | |||
.. " || <span style=\"margin-left: 60px;\">" | |||
.. string.format("English [[Wikipedia:Main Page|Wikipedia]] has %s on:\n%s</div>", (i > 1 and "articles" or "an article"), result) | .. string.format("English [[Wikipedia:Main Page|Wikipedia]] has %s on:\n%s</div>", (i > 1 and "articles" or "an article"), result) | ||
.. "{{clear}}</div>" | .. "</span>\n" | ||
.. "|}\n" | |||
.. "{{clear}}\n" | |||
.. "</div>" | |||
return frame:preprocess(yesno(debugg) == true and "<syntaxhighlight lang=\"wikitext\">" .. result .. "</syntaxhighlight>" or result) | return frame:preprocess(yesno(debugg) == true and "<syntaxhighlight lang=\"wikitext\">" .. result .. "</syntaxhighlight>" or result) | ||
end | end | ||
return p | return p | ||