Module:CRTModel: Difference between revisions
Tag: Undo |
No edit summary |
||
| Line 273: | Line 273: | ||
td:node(ul) | td:node(ul) | ||
-- Add upload link as a button - | -- Add upload link as a button - outline style with blue border | ||
local uploadDiv = mw.html.create('div') | local uploadDiv = mw.html.create('div') | ||
uploadDiv:css('margin-top', '0.5em'):css('text-align', 'center') | uploadDiv:css('margin-top', '0.5em'):css('text-align', 'center') | ||
uploadDiv:wikitext('[' .. tostring(uploadUrl) .. ' <span style="display:inline-block;padding:0.5em 1em;background-color:# | uploadDiv:wikitext('[' .. tostring(uploadUrl) .. ' <span style="display:inline-block;padding:0.5em 1em;background-color:#ffffff;color:#3366cc;text-decoration:none;border:2px solid #3366cc;border-radius:2px;font-size:90%;font-weight:bold;">Upload a document</span>]') | ||
td:node(uploadDiv) | td:node(uploadDiv) | ||
else | else | ||
-- Just show the upload link as a button | -- Just show the upload link as a button - outline style with blue border | ||
local uploadDiv = mw.html.create('div') | local uploadDiv = mw.html.create('div') | ||
uploadDiv:css('text-align', 'center') | uploadDiv:css('text-align', 'center') | ||
uploadDiv:wikitext('[' .. tostring(uploadUrl) .. ' <span style="display:inline-block;padding:0.5em 1em;background-color:# | uploadDiv:wikitext('[' .. tostring(uploadUrl) .. ' <span style="display:inline-block;padding:0.5em 1em;background-color:#ffffff;color:#3366cc;text-decoration:none;border:2px solid #3366cc;border-radius:2px;font-size:90%;font-weight:bold;">Upload a document</span>]') | ||
td:node(uploadDiv) | td:node(uploadDiv) | ||