• Welcome to the Kancolle Wiki!
  • If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord

Changes

Jump to navigation Jump to search
m
no edit summary
Line 19: Line 19:  
     _empty_node_template = [[| style="text-align: center;" |${values.node}
 
     _empty_node_template = [[| style="text-align: center;" |${values.node}
 
     | colspan="3" style="text-align: center;" |Must be my imagination (battle avoided)]],
 
     | colspan="3" style="text-align: center;" |Must be my imagination (battle avoided)]],
 +
    _selection_node_template = [[|style="text-align: center;" |${values.node}
 +
    | colspan="3" style="text-align: center;" |Pick which direction you wish to go down]],
 
     _resource_node_template = [[| style="text-align: center; background-color: ${values.bg_color}; color: ${values.color};" |${values.node}
 
     _resource_node_template = [[| style="text-align: center; background-color: ${values.bg_color}; color: ${values.color};" |${values.node}
 
     | style="text-align: center; background-color: ${values.bg_color}; color: ${values.color};" |${values.node_type}
 
     | style="text-align: center; background-color: ${values.bg_color}; color: ${values.color};" |${values.node_type}
Line 142: Line 144:  
        table.insert(self._items, node .. "/empty")
 
        table.insert(self._items, node .. "/empty")
 
        mode = 1
 
        mode = 1
 +
    elseif string.lower(item_key) == "select" then
 +
        table.insert(self._items, node .. "/select")
 
    else
 
    else
 
        while mw.ustring.find(item_key, '/') do
 
        while mw.ustring.find(item_key, '/') do
Line 303: Line 307:  
            if values[2] == "empty" then
 
            if values[2] == "empty" then
 
                table.insert(self._rows, format{self._empty_node_template, values = { node = values[1] } })
 
                table.insert(self._rows, format{self._empty_node_template, values = { node = values[1] } })
 +
            elseif values[2] == "select" then
 +
                table.insert(self._rows, format{self._selection_node_template, values = { node = values[1] } })
 
             else
 
             else
 
                local resource = Formatting:format_image{values[2] .. ".png", caption = self:upcase(values[2]), size = "22x22px"}
 
                local resource = Formatting:format_image{values[2] .. ".png", caption = self:upcase(values[2]), size = "22x22px"}
48

edits

Navigation menu