Editing Module:AbilityHints

Jump to navigation Jump to search
Warning: You are not logged in. Once you make an edit, a temporary account will be created for you. Learn more. Log in or create an account to continue receiving notifications after this account expires, and to access other features.
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 22: Line 22:
-- Tooltip wording for a manually placed icon, keyed by its iconbox state. Each entry
-- Tooltip wording for a manually placed icon, keyed by its iconbox state. Each entry
-- takes the item title as {{{1}}}, so translations can put the object where their
-- takes the item title as {{{1}}}, so translations can put the object where their
-- grammar wants it rather than always after the verb. The enhanced state has no entry
-- grammar wants it rather than always after the verb.
-- of its own: the glow already marks it, so it falls through to the normal wording.
local STATE_DICT_KEYS = {
local STATE_DICT_KEYS = {
     normal  = "AbilityHintsInteracts",
     normal  = "AbilityHintsInteracts",
     disabled = "AbilityHintsInteractsNot",
     disabled = "AbilityHintsInteractsNot",
     partial  = "AbilityHintsInteractsPartial",
     partial  = "AbilityHintsInteractsPartial",
    enhanced = "AbilityHintsInteractsEnhanced",
}
}


Line 91: Line 91:
     elseif m.state == 'enhanced' then
     elseif m.state == 'enhanced' then
         cls = cls .. ' ability-hint--enhanced'
         cls = cls .. ' ability-hint--enhanced'
        dict_key = STATE_DICT_KEYS.enhanced
     end
     end
     local tip = dictionary.translate(dict_key, nil, nil, { m.title })
     local tip = dictionary.translate(dict_key, nil, nil, { m.title })
Please note that all contributions to The Deadlock Wiki are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see Deadlock:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)
Preview page with this template

Pages included on this page: