• 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
no edit summary
Line 31: Line 31:  
|
 
|
 
|${note}]=]
 
|${note}]=]
 +
 +
local table_row_alias = [=[|- id="${label}" class="q${letter}"
 +
|rowspan="1"|'''${label}'''
 +
|colspan="11"|See [[#${alias_of}|${alias_of}}].
 +
]=]
    
local function render(args, frame)
 
local function render(args, frame)
Line 41: Line 46:  
     for i, q in ipairs(data) do
 
     for i, q in ipairs(data) do
 
       if (not filter[1] or not filter[2]) or (string.match(q[filter[2]], filter[1])) then
 
       if (not filter[1] or not filter[2]) or (string.match(q[filter[2]], filter[1])) then
        -- table.insert(result, _.format(table_row, q))
+
        if(q.alias_of) then
        table.insert(result, _.format(table_row, {
+
            table.insert(result, _.format(table_row_alias, {
          label = q.label,
+
                label = q.label,
          title = q.title,
+
                alias_of = q.alias_of
          title_en = q.title_en,
+
            }))
          detail_en = q.detail_en,
+
        else
          reward_fuel = q.reward_fuel,
+
            -- table.insert(result, _.format(table_row, q))
          reward_ammo = q.reward_ammo,
+
            table.insert(result, _.format(table_row, {
          reward_steel = q.reward_steel,
+
              label = q.label,
          reward_bauxite = q.reward_bauxite,
+
              title = q.title,
          reward_other = q.reward_other,
+
              title_en = q.title_en,
          note = q.note,
+
              detail_en = q.detail_en,
          letter = q.letter or q.label:sub(1, 1)
+
              reward_fuel = q.reward_fuel,
        }))
+
              reward_ammo = q.reward_ammo,
 +
              reward_steel = q.reward_steel,
 +
              reward_bauxite = q.reward_bauxite,
 +
              reward_other = q.reward_other,
 +
              note = q.note,
 +
              letter = q.letter or q.label:sub(1, 1)
 +
            }))
 +
        end
 
       end  
 
       end  
 
     end
 
     end

Navigation menu