Difference between revisions of "Template:SoundInfoLine"
BrianFreud (talk | contribs) m |
BrianFreud (talk | contribs) m |
||
Line 1: | Line 1: | ||
− | {{#vardefine: soundFileInfo|{{#if: {{{soundId|}}}| | + | {{#vardefine: soundFileInfo|{{#if: {{{soundId|}}}| [[:Category:UO:Items that make sound {{{soundId}}}|{{{soundId}}}]]| {{#if: {{{soundFile|}}}| sound file |}} }} }}{{#vardefine: soundFileName|{{#if: {{#var: soundFileInfo}}| {{UOGetSoundFileName|{{{soundId|}}}|1|{{{soundFile|}}}}}| }} }}{{#vardefine: soundExist|{{#if: {{#var: soundFileName}}| 1| {{#if: {{{param}}}| {{Boolean|{{{param}}}}}|}} }} }} |
|- | |- | ||
− | | <span class="translatable">{{#if: {{{tip|}}} | {{#tip-text:{{{field|}}}|{{{tip|}}} }} | {{{field}}} }}</span> || <span class="translatable">{{#if: {{#var: soundExist}}| {{#ifeq: {{#var: soundExist}}| 1| {{{displayText|{{{yesText|Yes}}} }}}{{#if: {{#var: soundFileName}}|{{#ifexist:{{#var: soundFileName}}|[[:{{#var: soundFileName}}|({{#var: soundFileInfo}})]]|[https://stratics.com | + | | <span class="translatable">{{#if: {{{tip|}}} | {{#tip-text:{{{field|}}}|{{{tip|}}} }} | {{{field}}} }}</span> || <span class="translatable">{{#if: {{#var: soundExist}}| {{#ifeq: {{#var: soundExist}}| 1| {{{displayText|{{{yesText|Yes}}} }}}{{#if: {{#var: soundFileName}}|{{#ifexist:{{#var: soundFileName}}|[[:{{#var: soundFileName}}|({{#var: soundFileInfo}})]]|[https://wiki.stratics.com/index.php?title=Special:Upload&wpDestFile={{#var: soundFileName}} ({{#var: soundFileInfo}} upload it)]|}}{{#if: {{{category|}}}|[[Category:UO:{{{category}}}]]|}}{{#if: {{{soundId|}}} |[[Category:UO:Items that make sound {{{soundId}}}]]|}} }} | No }} | unknown[[Category:UO:{{{unknownCat}}}]] }}</span> |
Revision as of 06:24, 27 January 2020
|- | {{{field}}} || No