Line 11: |
Line 11: |
| audio_file = "${ship}${suffix}-${line}.ogg", | | audio_file = "${ship}${suffix}-${line}.ogg", |
| audio_button = [=[<span class="audio_button">[[Media:${audio_file}|Play]]</span>]=], | | audio_button = [=[<span class="audio_button">[[Media:${audio_file}|Play]]</span>]=], |
| + | line_link = "[${link} ${line}]", |
| first_row_style = [[style=""]], | | first_row_style = [[style=""]], |
| row = [=[|- ${style} | | row = [=[|- ${style} |
Line 38: |
Line 39: |
| local ja, en, note = args[line .. remodel_string], args[line .. remodel_string .. "/En"], args[line .. remodel_string .. "/Note"] | | local ja, en, note = args[line .. remodel_string], args[line .. remodel_string .. "/En"], args[line .. remodel_string .. "/Note"] |
| local jaEn = args[line .. remodel_string .. "/Both"] | | local jaEn = args[line .. remodel_string .. "/Both"] |
| + | local link = args[line .. remodel_string .. "/Link"] |
| if remodel == 0 and not extra or jaEn or ja or en or note then | | if remodel == 0 and not extra or jaEn or ja or en or note then |
| table.insert(result, format{ | | table.insert(result, format{ |
Line 51: |
Line 53: |
| }, | | }, |
| }, | | }, |
− | line = line, | + | line = link and format{templates.line_link, link, line} or line, |
| ja = jaEn or ja or "", | | ja = jaEn or ja or "", |
| ja_colspan = jaEn and "2" or "1", | | ja_colspan = jaEn and "2" or "1", |