Line 4: |
Line 4: |
| local templates = { | | local templates = { |
| header = [[{| class="wikitable typography-xl-optout" style="width:100%;" | | header = [[{| class="wikitable typography-xl-optout" style="width:100%;" |
− | !Event | + | | style="width:10%;" !Event |
| !Japanese | | !Japanese |
| !English | | !English |
Line 10: |
Line 10: |
| footer = "|}", | | footer = "|}", |
| audio_file = "${ship}${suffix}-${line}.ogg", | | audio_file = "${ship}${suffix}-${line}.ogg", |
| + | audio_button = [=[<span class="audio_button">[[Media:${audio_file}|Play]]</span>]=], |
| first_row_style = [[style="border-top: 2px solid #aaa;"]], | | first_row_style = [[style="border-top: 2px solid #aaa;"]], |
| row = [=[|- ${style} | | row = [=[|- ${style} |
− | | nowrap="nowrap" |<span class="audio_button">[[Media:${audio_file}|Play]]</span> ${line} | + | | nowrap="nowrap" |${audio_button}${line} |
| | colspan="${ja_colspan}" | <span lang="ja" style="font-family: sans-serif;">${ja}</span> | | | colspan="${ja_colspan}" | <span lang="ja" style="font-family: sans-serif;">${ja}</span> |
| ${en_cell}| ${note}]=], | | ${en_cell}| ${note}]=], |
Line 32: |
Line 33: |
| templates.row, | | templates.row, |
| style = remodel == 0 and templates.first_row_style or "", | | style = remodel == 0 and templates.first_row_style or "", |
− | audio_file = format{templates.audio_file, ship = args.ship, suffix = ({[0] = "", [1] = "Kai", [2] = "Kai2"})[remodel], line = line}, | + | audio_button = args.no_audio and "" or format{ |
| + | templates.audio_button, |
| + | audio_file = format{ |
| + | templates.audio_file, |
| + | ship = args.ship, |
| + | suffix = ({[0] = "", [1] = "Kai", [2] = "Kai2"})[remodel], |
| + | line = line |
| + | }, |
| + | }, |
| line = line, | | line = line, |
| ja = ja or "", | | ja = ja or "", |