• 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 15: Line 15:  
     table_row_start = [[|- class="mw-collapsible mw-collapsed"  id="mw-customcollapsible-${id}"
 
     table_row_start = [[|- class="mw-collapsible mw-collapsed"  id="mw-customcollapsible-${id}"
 
|rowspan="${rowspan}" style="text-align:center;vertical-align:middle;width:10%"|${from}]],
 
|rowspan="${rowspan}" style="text-align:center;vertical-align:middle;width:10%"|${from}]],
 +
 +
    row_separator = [[|- class="mw-collapsible mw-collapsed" id="mw-customcollapsible-${id}"\n]],
    
     table_row = [[${separator}|class="mw-collapsible mw-collapsed" id="mw-customcollapsible-${id}" style="text-align:center;width:10%;"|${to}
 
     table_row = [[${separator}|class="mw-collapsible mw-collapsed" id="mw-customcollapsible-${id}" style="text-align:center;width:10%;"|${to}
Line 69: Line 71:  
         table.sort(branching[from].index)
 
         table.sort(branching[from].index)
 
     end
 
     end
 +
    local id = args.id or "mapbranchingtable"
 
     local rows = {}
 
     local rows = {}
 
     table.insert(rows, format{
 
     table.insert(rows, format{
 
         templates.table_header,
 
         templates.table_header,
 
         width = args.width or "100%",
 
         width = args.width or "100%",
         id = args.id or "mapbranchingtable",
+
         id = id,
 
     })
 
     })
 
     for _, from in ipairs(branching.index) do
 
     for _, from in ipairs(branching.index) do
Line 80: Line 83:  
             rowspan = #branching[from].index,
 
             rowspan = #branching[from].index,
 
             from = formatNodeLabel(from, branching[from].color),
 
             from = formatNodeLabel(from, branching[from].color),
             id = args.id or "mapbranchingtable",
+
             id = id,
 
         })
 
         })
 
         local first = true
 
         local first = true
Line 86: Line 89:  
             table.insert(rows, format{
 
             table.insert(rows, format{
 
                 templates.table_row,
 
                 templates.table_row,
                 separator = first and "" or "|-\n",
+
                 separator = first and "" or format{templates.row_separator, id = id},
 
                 to = formatNodeLabel(to, branching[from][to].color),
 
                 to = formatNodeLabel(to, branching[from][to].color),
 
                 rules = branching[from][to].rules,
 
                 rules = branching[from][to].rules,
                 id = args.id or "mapbranchingtable",
+
                 id = id,
 
             })
 
             })
 
             first = false
 
             first = false
cssedit, gkautomate
7,064

edits

Navigation menu