Anonymous

Module:CharTree: Difference between revisions

From Elwiki
no edit summary
No edit summary
No edit summary
Line 99: Line 99:
     for k, v in ipairs(char_order) do
     for k, v in ipairs(char_order) do
         local display_name = v;
         local display_name = v;
         if str_localized(v) then v = split_lang(v)[1]; display_name = split_lang(v)[2] end
        local actual_name = v;
         if v == 'Lu/Ciel' then v = 'LuCiel (Lu)' end
         if str_localized(v) then actual_name = split_lang(v)[1]; display_name = split_lang(v)[2] end
         local base_icon = mw.html.create('div'):attr('data-base', v):attr('data-display-base', display_name):wikitext('[[File: Icon - ' .. v .. '.png]]')
         if actual_name == 'Lu/Ciel' then actual_name = 'LuCiel (Lu)' end
         local base_icon = mw.html.create('div'):attr('data-base', actual_name):attr('data-display-base', display_name):wikitext('[[File: Icon - ' .. actual_name .. '.png]]')
         select_banner:node(base_icon)
         select_banner:node(base_icon)
     end
     end