i found how to do audio files but how can it play automatic when going onto the page?
That's possible, but please don't do it. Autoplay is poor netiquette.
Refer to this blog - it can autoplay YouTube audio. Note you or someone on the wiki in question requires admin rights to add the MediaWiki pages.
What do you think?