Search results
Results from the WOW.Com Content Network
Any script that does nothing other than add a link to a page to a menu, panel or toolbar belongs to § Shortcuts. Any script that makes an edit to a page (i.e. increases the user's contributions) or changes the appearance or behavior of the edit form ( action=edit/submit ) belongs to § Editing .
Starting out, it may be easier to modify an existing script to do what you want, rather than create a new script from scratch. This is called "forking". To do this, copy the script to a subpage, ending in ".js", [n. 1] of your user page. Then, install the new page like a normal user script.
First, make sure you are registered and logged in.Only logged-in users can install user scripts. to edit your common.js file.; Add the following line: {{subst:Lusc|script_path}} – replace "script_path" with the full name of the .js page that opens when a script's "(source)" link is clicked.
The script at Module:LuaCall has been written to accept any set of named parameters somename=value, for each one storing the string value in the variable with the name somename, and then allowing you to use these variables as parameters for any function available in Lua.
[[Category:Fandom (website) templates]] to the <includeonly> section at the bottom of that page. Otherwise, add <noinclude>[[Category:Fandom (website) templates]]</noinclude> to the end of the template code, making sure it starts on the same line as the code's last character.
Lua is a programming language that is available via the Scribunto MediaWiki extension on the English Wikipedia. Since February 2013, Lua code can be embedded into wiki templates by employing the "{{#invoke:}}" functionality of Scribunto.
All material on Wikipedia is by default under the CC BY-SA license (and in most cases, also the GNU Free Documentation License (GFDL)). The CC BY-SA license is designed for artistic and literary works, but not for software.
It is also possible to name your JavaScript page as the name of your preferred skin (see the section about skins) followed by .js, e.g. vector.js or monobook.js. JavaScript in such pages is only used while you are using that skin; should you change your skin, you would need to move the JavaScript page to the name of your new skin.