Editing Module:SkillList
From Eco - English Wiki
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 1: | Line 1: | ||
local p = {} | local p = {} | ||
Line 32: | Line 30: | ||
-- load lists | -- load lists | ||
local skillData = require( "Module: | local skillData = require( "Module:Skills" ) | ||
local skillList = '' | local skillList = '' | ||
Line 73: | Line 71: | ||
end | end | ||
--Skill List (exclude Profession and Specialty) | |||
if list == 'skill' then | |||
skillList = skillList .. '=== Skill List ===\n' | |||
skillList = skillList .. '<div style=\"column-count:3;-moz-column-count:3;-webkit-column-count:3\">\n' | |||
for k,v in pairs(skillData.skills) do | |||
if skillData.skills[k].specialty == false and skillData.skills[k].root == false then | |||
table.insert(a,k) | |||
end | |||
end | |||
table.sort(a) | |||
for i,n in ipairs(a) do | |||
skillList = skillList .. '* [[' .. n .. ']]\n' | |||
end | |||
skillList = skillList .. '</div>' | |||
end | |||