Editing Module:Keys
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 20: | Line 20: | ||
local value = symbols[key:lower()] or key | local value = symbols[key:lower()] or key | ||
if (string.find(value, 'File')) then | |||
if string.find(value, 'File') then | |||
return mw.html.create('kbd') | return mw.html.create('kbd') | ||
:attr('title', key:lower()) | :attr('title', key:lower()) | ||
:wikitext(value) | :wikitext(value) | ||
else | else | ||
return mw.html.create('kbd') | return mw.html.create('kbd') | ||
:addClass('custom-key') | :addClass('custom-key nowrap') | ||
:attr('title', value) | :attr('title', value) | ||
:wikitext(value) | :wikitext(value) | ||