Editing Module:Feedback
Appearance
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
| Latest revision | Your text | ||
| Line 126: | Line 126: | ||
:addClass('feedback-attachments') | :addClass('feedback-attachments') | ||
-------------------------------------------------------- | |||
-- Link | |||
-------------------------------------------------------- | |||
if link ~= '' then | if trim(entry.link) ~= '' then | ||
local | local url = | ||
trim(entry.link) | |||
:addClass('feedback | |||
local link = | |||
mw.html.create('a') | |||
:addClass('feedback-link') | |||
:attr( | |||
'href', | |||
url | |||
) | ) | ||
:attr( | |||
'target', | |||
'_blank' | |||
) | |||
:attr( | |||
'rel', | |||
'noopener noreferrer' | |||
) | |||
:wikitext( | |||
mw.text.nowiki(url) | |||
) | |||
wrapper:node(link) | |||
end | end | ||
local | -------------------------------------------------------- | ||
-- Image | |||
-------------------------------------------------------- | |||
if trim(entry.image) ~= '' then | |||
local imageName = | |||
trim(entry.image) | |||
imageName = | |||
mw.ustring.gsub( | |||
imageName, | |||
'^File:', | |||
'' | |||
) | |||
local title = | local title = | ||
mw.title.new('File:' .. | mw.title.new( | ||
'File:' .. imageName | |||
) | |||
if title then | if title then | ||
local | local imageLink = | ||
mw.html.create('a') | |||
:addClass('feedback- | :addClass( | ||
'feedback-image-link' | |||
) | |||
:attr( | |||
'href', | |||
title:fullUrl() | |||
) | |||
:attr( | |||
'target', | |||
'_blank' | |||
) | |||
) | :attr( | ||
'rel', | |||
'noopener noreferrer' | |||
) | |||
:wikitext( | |||
mw.text.nowiki(imageName) | |||
) | |||
wrapper:node(imageLink) | |||
end | end | ||
end | end | ||
| Line 191: | Line 222: | ||
:addClass('feedback-resolution') | :addClass('feedback-resolution') | ||
resolution:wikitext('Resolved by ') | resolution:wikitext('↳ Resolved by ') | ||
if resolvedBy ~= '' then | if resolvedBy ~= '' then | ||