5,879
edits
m (Text replacement - "User:Espyo/pikan-" to "MediaWiki:Pikan-") |
|||
Line 7: | Line 7: | ||
==Source== | ==Source== | ||
{{see| | {{see|MediaWiki:Pikan-core.js}} | ||
{{see| | {{see|MediaWiki:Pikan-pikipedia.js}} | ||
==Analyzing== | ==Analyzing== | ||
Line 129: | Line 129: | ||
I also made Pikan with flexibility in mind. If you want to add the script to your wiki, follow these steps: | I also made Pikan with flexibility in mind. If you want to add the script to your wiki, follow these steps: | ||
* Create your own copy of [[ | * Create your own copy of [[MediaWiki:Pikan-pikipedia.js|pikan-pikipedia.js]] (naming it whatever you want). | ||
* Change the first few parameters to match your wiki (e.g. wiki_url, module_name, etc.). | * Change the first few parameters to match your wiki (e.g. wiki_url, module_name, etc.). | ||
* Edit pikan.find_problems to your suiting. | * Edit pikan.find_problems to your suiting. | ||
Line 138: | Line 138: | ||
:* To create your own code to find a problem, you can add the problem to the list with pikan.save_problem. Check the function in the code for a documentation comment explaining it. | :* To create your own code to find a problem, you can add the problem to the list with pikan.save_problem. Check the function in the code for a documentation comment explaining it. | ||
:* There are more helper functions in the code. I documented all of them. Use those as well, if needed. | :* There are more helper functions in the code. I documented all of them. Use those as well, if needed. | ||
* On your wiki's MediaWiki:Common.js, import Pikan like so: <code>importScriptURI('//www.pikminwiki.com/index.php?title= | * On your wiki's MediaWiki:Common.js, import Pikan like so: <code>importScriptURI('//www.pikminwiki.com/index.php?title=MediaWiki:Pikan-core.js&action=raw&ctype=text/javascript');</code> | ||
* After that line, add a similar import, but pointing to your own version of pikan-pikipedia.js (again, named whatever it is you wanted). | * After that line, add a similar import, but pointing to your own version of pikan-pikipedia.js (again, named whatever it is you wanted). | ||