Difference between revisions of "Template:SoundInfoLine"
(Created page with "{{#vardefine: soundFileInfo|{{#if: {{{soundId|}}}| sound id:{{{soundId|}}}| {{#if: {{{soundFile|}}}| sound file |}} }} }}{{#vardefine: soundFileName|{{#if: {{#var: soundFileIn...") |
|||
Line 1: | Line 1: | ||
{{#vardefine: soundFileInfo|{{#if: {{{soundId|}}}| sound id:{{{soundId|}}}| {{#if: {{{soundFile|}}}| sound file |}} }} }}{{#vardefine: soundFileName|{{#if: {{#var: soundFileInfo}}| {{UOGetSoundFileName|{{{soundId|}}}|1|{{{soundFile|}}}}}| }} }}{{#vardefine: soundExist|{{#if: {{#var: soundFileName}}| 1| {{Boolean|{{{param}}}}} }} }} | {{#vardefine: soundFileInfo|{{#if: {{{soundId|}}}| sound id:{{{soundId|}}}| {{#if: {{{soundFile|}}}| sound file |}} }} }}{{#vardefine: soundFileName|{{#if: {{#var: soundFileInfo}}| {{UOGetSoundFileName|{{{soundId|}}}|1|{{{soundFile|}}}}}| }} }}{{#vardefine: soundExist|{{#if: {{#var: soundFileName}}| 1| {{Boolean|{{{param}}}}} }} }} | ||
|- | |- | ||
− | | <span class="translatable">{{#if: {{{tip|}}} | + | | <span class="translatable">{{#if: {{{tip|}}} | {{#tip-text:{{{field|}}}|{{{tip|}}} }} | {{{field}}} }}</span> || <span class="translatable">{{#ifeq: {{#var: soundExist}}| 1| {{{displayText|{{{yesText|Yes}}} }}}{{#if: {{#var: soundFileName}}|{{#ifexist:{{#var: soundFileName}}|[[{{#var: soundFileName}}|({{#var: soundFileInfo}})]]|[https://stratics.com/w/index.php?title=Special:Upload&wpDestFile={{#var: soundFileName}}|{{#var: soundFileInfo}} upload it]|}}{{#if: {{{category|}}}|[[Category:UO:{{{category}}}]]|}}{{#if: {{{soundId|}}} |[[Category:UO:Items makes sound {{{soundId}}}]]|}} | No}}</span> |
− | {{#if: {{#var: soundFileName}}|{{#ifexist:{{#var: soundFileName}}|[[{{#var: soundFileName}}|({{#var: soundFileInfo}})]]|[https://stratics.com/w/index.php?title=Special:Upload&wpDestFile={{#var: soundFileName}}|{{#var: soundFileInfo}} upload it]|}}{{#if: {{{category|}}}|[[Category:UO:{{{category}}}]]|}}{{#if: {{{soundId|}}} |[[Category:UO:Items makes sound {{{soundId}}}]]|}} | No}}</span> |
Revision as of 10:15, 30 October 2018
|- | {{{field}}} || {{#ifeq: 0| 1| Yes No