User:Liou/Module:Sign: Difference between revisions

From Kanthaus wiki
Lb34 (talk | contribs)
Created page with "local p = {} function p.render(frame) local title = frame.args[1] local symbol = frame.args[2] local name_english = frame.args[3] local name_german = frame.args[4] local message_english = frame.args[5] local message_german = frame.args[6] local author = frame.args[7] local location = frame.args[8] local date = frame.args[9] local output = "" output = output.. "= ".. title.. " =\n" output = output.. symbol.. "\n" outpu..."
 
Lb34 (talk | contribs)
m Lb34 moved page User:Lb34/Module:Sign to User:Liou/Module:Sign: practicality
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
local p = {}
local p = {}


function p.render(frame)
function p.render(frame)
     local title = frame.args[1]
     local title = frame.args.title
     local symbol = frame.args[2]
     local titleIcon = frame.args.titleIcon
     local name_english = frame.args[3]
     local englishText = frame.args.englishText
     local name_german = frame.args[4]
     local germanText = frame.args.germanText
     local message_english = frame.args[5]
     local url = frame.args.url
     local message_german = frame.args[6]
     local location = frame.args.location
     local author = frame.args[7]
     local author = frame.args.author
    local location = frame.args[8]
     local date = frame.args.date
     local date = frame.args[9]


     local output = ""
     local output = ""
     output = output.. "= ".. title.. " =\n"
     output = output.. "<span style='font-size: 120%; font-weight: bold; font-family: Liberation Sans;'>".. title.. "</span>\n"
     output = output.. symbol.. "\n"
     output = output.. titleIcon.. "\n"
    output = output.. "== ".. name_english.. " ==\n"
     output = output.. "<span style='font-family: Liberation Sans;'>".. englishText.. "</span>\n"
     output = output.. "<span style='font-family: Liberation Serif; font-style: italic; color: #808080'>".. name_german.. "</span>\n"
     output = output.. "<span style='font-family: Liberation Serif; font-style: italic; color: #808080;'>".. germanText.. "</span>\n"
    output = output.. message_english.. "\n"
     if url then
     output = output.. "<span style='font-family: Liberation Serif; font-style: italic; color: #808080'>".. message_german.. "</span>\n"
        output = output.. "<span style='font-family: Liberation Mono; background-color: #dddddd;'>URL: ".. url.. "</span>\n"
     output = output.. "<span style='font-family: Liberation Mono; color: #dddddd'>URL: </span>\n"
    end
     output = output.. "<span style='font-family: Liberation Mono; color: #808080'>Location: ".. location.. "</span>\n"
     output = output.. "<span style='font-family: Liberation Mono; color: #808080;'>Location: ".. location.. "</span>\n"
     output = output.. "<span style='font-family: Liberation Sans; color: #808080'>Author: ".. author.. "</span>\n"
     output = output.. "<span style='font-family: Liberation Sans; color: #808080;'>Author: ".. author.. "</span>\n"
     output = output.. "<span style='font-family: Liberation Mono; color: #808080'>Date: ".. date.. "</span>\n"
     output = output.. "<span style='font-family: Liberation Mono; color: #808080;'>Date: ".. date.. "</span>\n"


     return output
     return output
Line 28: Line 28:


return p
return p
</noinclude>

Latest revision as of 20:40, 20 January 2025

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