Editing Module:Sandbox/Dragoniez
Jump to navigation
Jump to search
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 25: | Line 25: | ||
--pagetitle = '利用者:' .. username | --pagetitle = '利用者:' .. username | ||
pagetitle = 'User:' .. username | pagetitle = 'User:' .. username | ||
end | end | ||
Line 41: | Line 34: | ||
else | else | ||
displayText = pagetitle | displayText = pagetitle | ||
end | |||
if mw.title.new(pagetitle).exists then | |||
displayText = '<span class="ul-page-exists">' .. displayText ..'</span>' | |||
else | |||
displayText = '<span class="ul-page-missing">' .. displayText ..'</span>' | |||
end | end | ||
Line 47: | Line 46: | ||
--local templatestyles = frame:extensionTag{name = 'templatestyles', args = {src = 'Template:UserLink/styles.css'}} | --local templatestyles = frame:extensionTag{name = 'templatestyles', args = {src = 'Template:UserLink/styles.css'}} | ||
local templatestyles = frame:extensionTag{name = 'templatestyles', args = {src = 'User:Dragoniez/Template:UserLink/styles.css'}} | local templatestyles = frame:extensionTag{name = 'templatestyles', args = {src = 'User:Dragoniez/Template:UserLink/styles.css'}} | ||
local link = templatestyles .. '<span class="plainlinks | local link = templatestyles .. '<span class="plainlinks">' .. extlink .. '</span>' | ||
return link | return link |