Tech, emailconfirmed, Administrators (Semantic MediaWiki), Curators (Semantic MediaWiki), Administrators
12,465
edits
Bongolium500 (talk | contribs) No edit summary |
Bongolium500 (talk | contribs) No edit summary |
||
Line 57: | Line 57: | ||
copyrightHolderText = frame:preprocess(copyrightHolder) | copyrightHolderText = frame:preprocess(copyrightHolder) | ||
end | end | ||
end | |||
local attributionText = attribution | |||
if attributionText == "" then | |||
attributionText = copyrightHolderText | |||
end | |||
if attributionText == "" then | |||
attributionText = trademarkOwner | |||
end | end | ||
Line 69: | Line 77: | ||
end | end | ||
licenseText = frame:preprocess(licenseData[license][11]) .. licenseText .. " " .. frame:preprocess(licenseData[license][3]) | licenseText = frame:preprocess(licenseData[license][11]) .. licenseText .. " " .. frame:preprocess(licenseData[license][3]) | ||
licenseMachinedata = '<span class="licensetpl"><span class="licensetpl_short">' .. licenseData[license][4] .. '</span><span class="licensetpl_long">' .. licenseData[license][5] .. '</span><span class="licensetpl_link">' .. frame:preprocess("<nowiki>" .. licenseData[license][6] .. "</nowiki>") .. '</span><span class="licensetpl_link_req">' .. tostring(licenseData[license][7]) .. '</span><span class="licensetpl_attr_req">' .. tostring(licenseData[license][8]) .. '</span><span class="licensetpl_attr">' .. attributionText .. '</span><span class="licensetpl_nonfree">' .. tostring(licenseData[license][9]) .. '</span></span>' | licenseMachinedata = '<span class="licensetpl"><span class="licensetpl_short">' .. licenseData[license][4] .. '</span><span class="licensetpl_long">' .. licenseData[license][5] .. '</span><span class="licensetpl_link">' .. frame:preprocess("<nowiki>" .. licenseData[license][6] .. "</nowiki>") .. '</span><span class="licensetpl_link_req">' .. tostring(licenseData[license][7]) .. '</span><span class="licensetpl_attr_req">' .. tostring(licenseData[license][8]) .. '</span><span class="licensetpl_attr">' .. attributionText .. '</span><span class="licensetpl_nonfree">' .. tostring(licenseData[license][9]) .. '</span></span>' | ||
end | end | ||
Line 107: | Line 108: | ||
local copyrightOwnedByText = "" | local copyrightOwnedByText = "" | ||
if | if licenseData[license][10] then | ||
copyrightOwnedByText = "It is not under copyright, but some parties may still have other intellectual property rights over this image." | copyrightOwnedByText = "It is not under copyright, but some parties may still have other intellectual property rights over this image." | ||
else | else | ||
Line 113: | Line 114: | ||
end | end | ||
local | local attributionNotice = "" | ||
if | if attributionText ~= "" then | ||
attributionText = "<hr/>While not required by the license, this " .. typeOfFile .. " can be attributed to " .. | if licenseData[license][8] then | ||
attributionNotice = "<hr/>When using this " .. typeOfFile .. ", it's creator/owner, " .. attributionText .. " must be attributed." | |||
else | |||
attributionNotice = "<hr/>While not required by the license, this " .. typeOfFile .. " can be attributed to " .. attributionText .. "." | |||
end | |||
end | end | ||
local finalLicense = '<div id="license">' .. imageCode .. "This file is " .. typeOfFileArticle .. " '''" .. typeOfFile .. "'''" .. sourceText .. ". " .. copyrightOwnedByText .. extraCopyrightText .. "<hr/>" .. licenseText .. trademarkText .. | local finalLicense = '<div id="license">' .. imageCode .. "This file is " .. typeOfFileArticle .. " '''" .. typeOfFile .. "'''" .. sourceText .. ". " .. copyrightOwnedByText .. extraCopyrightText .. "<hr/>" .. licenseText .. trademarkText .. attributionNotice .. '<span style="display:none;>" ' .. licenseMachinedata .. infoMachinedata .. "</span></div>" | ||
return finalLicense | return finalLicense |
edits