| Line 132: |
Line 132: |
| | end | | end |
| | else | | else |
| − | return obj.icon and ([[<span data-sort-value="]] .. (obj._type or '0') .. [=[">[[File:]=] .. Formatting:format_equipment_icon(obj:icon()) .. "]]</span>") or '' | + | return obj.icon and ([=[[[File:]=] .. Formatting:format_equipment_icon(obj:icon()) .. "]]") or '' |
| | + | -- return obj.icon and ([[<span data-sort-value="]] .. (obj._type or '0') .. [=[">[[File:]=] .. Formatting:format_equipment_icon(obj:icon()) .. "]]</span>") or '' |
| | end | | end |
| | end, | | end, |
| Line 449: |
Line 450: |
| | sequence_length = #sequence | | sequence_length = #sequence |
| | end | | end |
| | + | elseif prefix == '!' then |
| | + | local name = string.sub(arg, 2) |
| | + | local obj = Ship(name) |
| | + | if not obj:hp() then |
| | + | equipment = true |
| | + | obj = Equipment(name) |
| | + | end |
| | + | sequence = {} |
| | + | table.insert(sequence, obj) |
| | + | sequence_position = 1 |
| | + | sequence_length = 1 |
| | elseif arg == "#" or prefix == "?" then | | elseif arg == "#" or prefix == "?" then |
| | table.insert(actions, string.sub(arg, 2)) | | table.insert(actions, string.sub(arg, 2)) |
| Line 490: |
Line 502: |
| | mw.log(interpret({"@base_names", "~is_battleship~true", "?link", sort = "type,id"})) | | mw.log(interpret({"@base_names", "~is_battleship~true", "?link", sort = "type,id"})) |
| | mw.log(interpret({"@base_names", "~class.name~Kagerou Class", "?link", sort = "type,id"})) | | mw.log(interpret({"@base_names", "~class.name~Kagerou Class", "?link", sort = "type,id"})) |
| | + | mw.log(interpret({"!Saiun", "?icon"})) |
| | end | | end |
| | | | |