Wikipedia:AutoEd/complete.js: Difference between revisions
Appearance
Content deleted Content added
Just going to test this... |
FullWidth has false positives |
||
Line 12: | Line 12: | ||
importScript('Wikipedia:AutoEd/tablestowikitext.js'); // autoEdTablestoWikitext() replaces HTML tables with wikitables |
importScript('Wikipedia:AutoEd/tablestowikitext.js'); // autoEdTablestoWikitext() replaces HTML tables with wikitables |
||
importScript('Wikipedia:AutoEd/extrabreaks.js'); // autoEdExtraBreaks() removes extra BR tags |
importScript('Wikipedia:AutoEd/extrabreaks.js'); // autoEdExtraBreaks() removes extra BR tags |
||
importScript('Wikipedia:AutoEd/fullwidth.js'); // autoEdFullwidth() replaces fullwidth characters with standard characters. |
|||
importScript('Wikipedia:AutoEd/links.js'); // autoEdLinks() cleans up common link errors |
importScript('Wikipedia:AutoEd/links.js'); // autoEdLinks() cleans up common link errors |
||
Line 27: | Line 26: | ||
txt.value = autoEdTablestoWikitext(txt.value); |
txt.value = autoEdTablestoWikitext(txt.value); |
||
txt.value = autoEdExtraBreaks(txt.value); |
txt.value = autoEdExtraBreaks(txt.value); |
||
txt.value = autoEdFullwidth(txt.value); |
|||
txt.value = autoEdLinks(txt.value); |
txt.value = autoEdLinks(txt.value); |
||
} |
} |
Revision as of 03:07, 16 May 2009
//
//Import individual modules for use
importScript('Wikipedia:AutoEd/unicodify.js'); // autoEdUnicodify() converts HTML entities to WikiText
importScript('Wikipedia:AutoEd/isbn.js'); // autoEdISBN() fixes ISBN syntax so that WikiMagic can work
importScript('Wikipedia:AutoEd/whitespace.js'); // autoEdWhitespace() cleans up whitespace
importScript('Wikipedia:AutoEd/wikilinks.js'); // autoEdWikilinks() simplifies and shortens wikilinks where appropriate
importScript('Wikipedia:AutoEd/htmltowikitext.js'); // autoEdHTMLtoWikitext() converts HTML to wikitext
importScript('Wikipedia:AutoEd/headlines.js'); // autoEdHeadlines() fixes common headline errors and renames some headers
importScript('Wikipedia:AutoEd/unicodecontrolchars.js'); // autoEdUnicodeControlChars() converts HTML to wikitext
importScript('Wikipedia:AutoEd/templates.js'); // autoEdTemplates() cleans up templates
importScript('Wikipedia:AutoEd/tablestowikitext.js'); // autoEdTablestoWikitext() replaces HTML tables with wikitables
importScript('Wikipedia:AutoEd/extrabreaks.js'); // autoEdExtraBreaks() removes extra BR tags
importScript('Wikipedia:AutoEd/links.js'); // autoEdLinks() cleans up common link errors
function autoEdFunctions() { //Activates individual modules when "auto ed" tab is clicked
var txt = document.editform.wpTextbox1;
txt.value = autoEdUnicodify(txt.value);
txt.value = autoEdISBN(txt.value);
txt.value = autoEdWhitespace(txt.value);
txt.value = autoEdWikilinks(txt.value);
txt.value = autoEdHTMLtoWikitext(txt.value);
txt.value = autoEdHeadlines(txt.value);
txt.value = autoEdUnicodeControlChars(txt.value);
txt.value = autoEdTemplates(txt.value);
txt.value = autoEdTablestoWikitext(txt.value);
txt.value = autoEdExtraBreaks(txt.value);
txt.value = autoEdLinks(txt.value);
}
importScript('Wikipedia:AutoEd/core.js'); //Imports the "framework" script needed to make this function
//