Interface administrators, moderator
2,756
edits
No edit summary |
No edit summary |
||
Line 44: | Line 44: | ||
</meta>}} | </meta>}} | ||
The info element | The info element contains who made the script, the type of script and the version of the script.<br> | ||
You would have a script element for each script file you wish to load | |||
You would have a script element for each script file you wish to load, each with a "type" attribute that refers to what side the script will run on (server or client), a language attribute that tells the server/client which language the script file uses (see [[SupportedLanguages|supported scripting languages]]), and a "src" attribute with the file name as a relative path (i.e. "example.js" or "foo/bar.js". | |||
Below is a list of all accepted meta.xml nodes. | Below is a list of all accepted meta.xml nodes. |