Module:File license: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
no edit summary
No edit summary
No edit summary
Line 169: Line 169:
end
end
local finalLicense = '<div id="license fileinfotpl_perm">' .. imageCode .. "This file is " .. typeOfFileArticle .. " '''" .. typeOfFile .. "'''" .. sourceText .. ". " .. copyrightOwnedByText .. extraCopyrightText .. endorsementNotice .. "<hr/>" .. licenseText .. trademarkText .. attributionNotice .. '<span style="display:none;>" ' .. licenseMachinedata .. infoMachinedata .. "</span></div>"
local finalLicense = '<div id="license">' .. imageCode .. "This file is " .. typeOfFileArticle .. " '''" .. typeOfFile .. "'''" .. sourceText .. ". " .. copyrightOwnedByText .. extraCopyrightText .. endorsementNotice .. "<hr/>" .. licenseText .. trademarkText .. attributionNotice .. "</div>"
local infoMachinedata = '<span class="fileinfotpl"><span class="fileinfotpl_desc">' .. string.sub(typeOfFileArticle, 1, 1):upper() .. string.sub(typeOfFileArticle, 2, -1) .. ' ' .. typeOfFile .. sourceText .. '.</span><span class="fileinfotpl_src">' .. source .. '</span><span class="fileinfotpl_aut">' .. copyrightHolderText .. '</span><span class="fileinfotpl_perm">' .. finalLicense .. '</span></span>'
finalLicense = finalLicense .. '<span style="display:none;>" ' .. licenseMachinedata .. infoMachinedata .. "</span>"


return finalLicense
return finalLicense
Cookies help us deliver our services. By using our services, you agree to our use of cookies.