User:Espyo/Pikan: Difference between revisions

Jump to navigation Jump to search
No edit summary
No edit summary
Line 40: Line 40:
* Finds ''Pikmin'' area names without the "The" (and capitalized as such).
* Finds ''Pikmin'' area names without the "The" (and capitalized as such).
* Finds references that aren't using {{tem|refs}}.
* Finds references that aren't using {{tem|refs}}.
* Finds links to Wikipedia that aren't using {{tem|w}}.
* Finds missing "see also" sections.
* Finds missing "see also" sections.
* Finds "strategy" and "external links" sections with bad names.
* Finds "strategy" and "external links" sections with bad names.
Line 104: Line 105:
*1.2.0 ({{date|23|November|2015}}):
*1.2.0 ({{date|23|November|2015}}):
**Corrected the help URL, and specified the module's version and name.
**Corrected the help URL, and specified the module's version and name.
*1.3.0 ({{date|28|January|2016}}):
**Made it find Wikipedia links that aren't using {{tem|w}}.


===Future===
===Future===
Line 117: Line 120:


* Create your own copy of [[User:Espyo/pikan-pikipedia.js|pikan-pikipedia.js]] (naming it whatever you want).
* Create your own copy of [[User:Espyo/pikan-pikipedia.js|pikan-pikipedia.js]] (naming it whatever you want).
* Change <code>pikan.url</code> to point to your wiki. This is used for the "[More info]" links.
* 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.
** To find a simple problem with regex, do it like this:
** To find a simple problem with regex, do it like this:
Line 124: Line 127:
::* You can add one more parameter to regex_check. This is a function that takes one regex match, and returns false if this match doesn't apply to match the problem with.
::* You can add one more parameter to regex_check. This is a function that takes one regex match, and returns false if this match doesn't apply to match the problem with.
:* 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. At the end, you'll find code that's more or less Pikipedia-specific, so you can probably delete that.
:* 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=User:Espyo/pikan-core.js&action=raw&ctype=text/javascript');</code>
* On your wiki's MediaWiki:Common.js, import Pikan like so: <code>importScriptURI('//www.pikminwiki.com/index.php?title=User:Espyo/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).