User:Liou/Module:Sign: Difference between revisions
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..." |
No edit summary |
||
Line 1: | Line 1: | ||
<noinclude> | |||
local p = {} | local p = {} | ||
function p.render(frame) | function p.render(frame) | ||
local title = frame.args | local title = frame.args.title | ||
local | local titleIcon = frame.args.titleIcon | ||
local | local englishText = frame.args.englishText | ||
local | local germanText = frame.args.germanText | ||
local | local url = frame.args.url | ||
local | local location = frame.args.location | ||
local author = frame.args | local author = frame.args.author | ||
local date = frame.args.date | |||
local date = frame.args | |||
local output = "" | local output = "" | ||
output = output.. "= ".. title.. " | output = output.. "<span style='font-size: 120%; font-weight: bold; font-family: Liberation Sans;'>".. title.. "</span>\n" | ||
output = output.. | output = output.. titleIcon.. "\n" | ||
output = output.. "<span style='font-family: Liberation Sans;'>".. englishText.. "</span>\n" | |||
output = output.. "<span style='font-family: Liberation | output = output.. "<span style='font-family: Liberation Serif; font-style: italic; color: #808080;'>".. germanText.. "</span>\n" | ||
if url then | |||
output = output.. "<span style='font-family: Liberation Serif; font-style: italic; color: #808080'>".. | 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> |
Revision as of 15:36, 18 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