ElEditors, Interface administrators, Administrators
70,866
edits
No edit summary |
No edit summary |
||
Line 142: | Line 142: | ||
alias = args['alias' .. passive_index] or (passive_index == OPTIONS.append_index and OPTIONS.append_name), | alias = args['alias' .. passive_index] or (passive_index == OPTIONS.append_index and OPTIONS.append_name), | ||
suffix = args['suffix' .. passive_index] and (' ' .. args['suffix' .. passive_index]) or '', | suffix = args['suffix' .. passive_index] and (' ' .. args['suffix' .. passive_index]) or '', | ||
suffix = args['prefix' .. passive_index] and (' ' .. args['prefix' .. passive_index]) or '', | |||
exist = frame:preprocess('{{#ifexist:' .. passive_name .. '|true|false}}') == 'true' | exist = frame:preprocess('{{#ifexist:' .. passive_name .. '|true|false}}') == 'true' | ||
} | } | ||
Line 572: | Line 573: | ||
for _, passive_key in ipairs(OPTIONS.combine) do | for _, passive_key in ipairs(OPTIONS.combine) do | ||
passive = PASSIVES[passive_key] | passive = PASSIVES[passive_key] | ||
table.insert(combo, link(passive.name, passive.alias, passive.suffix, passive.exist)) | table.insert(combo, | ||
link(passive.name, passive.alias, passive.prefix, passive.suffix, passive.exist)) | |||
end | end | ||
table.insert(output, table.concat(combo, '/') .. OPTIONS.combine_suffix) | table.insert(output, table.concat(combo, '/') .. OPTIONS.combine_suffix) | ||
else | else | ||
table.insert(output, link(passive.name, passive.alias, passive.suffix, passive.exist)) | table.insert(output, | ||
link(passive.name, passive.alias, passive.prefix, passive.suffix, passive.exist)) | |||
end | end | ||
end | end | ||
Line 594: | Line 597: | ||
{ | { | ||
type = 'passive_appended', | type = 'passive_appended', | ||
text = { 'Normal', | text = { | ||
'Normal', | |||
OPTIONS.is_append and | OPTIONS.is_append and | ||
link(PASSIVES[OPTIONS.append_index].name, | link(PASSIVES[OPTIONS.append_index].name, | ||
PASSIVES[OPTIONS.append_index].alias or OPTIONS.append_name or nil, | PASSIVES[OPTIONS.append_index].alias or OPTIONS.append_name or nil, | ||
PASSIVES[OPTIONS.append_index].suffix, PASSIVES[OPTIONS.append_index].exist) }, | PASSIVES[OPTIONS.append_index].prefix, | ||
PASSIVES[OPTIONS.append_index].suffix, | |||
PASSIVES[OPTIONS.append_index].exist | |||
) | |||
}, | |||
keywords = { OPTIONS.is_append and ('passive' .. OPTIONS.append_index) or nil }, | keywords = { OPTIONS.is_append and ('passive' .. OPTIONS.append_index) or nil }, | ||
is_visible = OPTIONS.is_append or false | is_visible = OPTIONS.is_append or false | ||
Line 606: | Line 614: | ||
text = { 'Regular', (function() | text = { 'Regular', (function() | ||
if OPTIONS.dmp then | if OPTIONS.dmp then | ||
return link('Dynamo Point System', 'Dynamo Configuration', | return link('Dynamo Point System', 'Dynamo Configuration', nil, | ||
OPTIONS.dmp ~= 'false' and ('(' .. OPTIONS.dmp .. ' DMP)')) | OPTIONS.dmp ~= 'false' and ('(' .. OPTIONS.dmp .. ' DMP)')) | ||
elseif args.awk_alias then | elseif args.awk_alias then |