Module:User:Bureaucrat 37/sandbox/List of Clubs/Lua experiment: Difference between revisions

From Foodclubipedia
Jump to navigation Jump to search
(works, or at least seems to, but only when using {{subst:}}... gonna have to actually read documentation, I suppose)
(template usage problematic, but might not be a dealbreaker (see the invoking page for info))
 
Line 4: Line 4:
     local out = ""
     local out = ""


     out = out .. "==The greatest==\n"
     out = out .. "===The greatest===\n"
     out = out .. "{{large|The greatest}}\n"
     out = out .. "Attempt at template usage: {{large|The greatest}}\n"
     out = out .. "\n"
     out = out .. "\n"
     out = out .. "This is certainly the greatest Lua module I have ever written.\n"
     out = out .. "This is certainly the greatest Lua module I have ever written.\n"

Latest revision as of 23:16, September 25, 2022

Documentation for this module may be created at Module:User:Bureaucrat 37/sandbox/List of Clubs/Lua experiment/doc

p = {}

p.blah = function(frame)
    local out = ""

    out = out .. "===The greatest===\n"
    out = out .. "Attempt at template usage: {{large|The greatest}}\n"
    out = out .. "\n"
    out = out .. "This is certainly the greatest Lua module I have ever written.\n"
    out = out .. "\n"
    out = out .. "And, I might add, '''almost''' certainly the greatest Lua module ever written."

    return out
end

return p