User:Liou/Module:Sign

Revision as of 20:40, 20 January 2025 by Lb34 (talk | contribs) (Lb34 moved page User:Lb34/Module:Sign to User:Liou/Module:Sign: practicality)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

local p = {}

function p.render(frame)

   local title = frame.args.title
   local titleIcon = frame.args.titleIcon
   local englishText = frame.args.englishText
   local germanText = frame.args.germanText
   local url = frame.args.url
   local location = frame.args.location
   local author = frame.args.author
   local date = frame.args.date
   local output = ""
   output = output.. "".. title.. "\n"
   output = output.. titleIcon.. "\n"
   output = output.. "".. englishText.. "\n"
   output = output.. "".. germanText.. "\n"
   if url then
       output = output.. "URL: ".. url.. "\n"
   end
   output = output.. "Location: ".. location.. "\n"
   output = output.. "Author: ".. author.. "\n"
   output = output.. "Date: ".. date.. "\n"
   return output

end

return p