Huiquipedia:Tools/Editing tools
External editors
xikpatlaA wikipedia-enhanced text editor can make editing much easier. There are extensions for several text editors. They provide many useful functions, e.g.:
- Syntax highlighting;
- Easy navigation between the article's sections. This makes editing big articles much easier, especially if the overall outline structure of an article needs to be improved. Especially take a look at Eclipse and Emacs;
- Direct down- and uploading of articles without using the web browser.
For details, see Wikipedia:Text editor support.
Similar tools:
- Firefox extension (Firefox version 1.5 only) which adds the Wikipedia formatting commands to context menu and toolbar. [[1]]
See also meta:WYSIWYG editor
MediaWiki Edit Toolbar
xikpatlaMediaWiki toolbar includes different buttons that can help you in editing. This is the french version, with buttons for citations.
Wikipedia editing tools
xikpatlawikEd
xikpatlawikEd, a full-featured in-browser text editor that adds enhanced text processing functions to Wikipedia and other MediaWiki edit pages (currently Mozilla, Firefox, SeaMonkey only).
Features include:
- Pasting formatted text, e.g. from MS-Word (including tables)
- Converting the formatted text to wikicode
- Wikicode syntax highlighting
- Regular expression search and replace and find-as-you-type
- Server-independent Show preview and Show changes
- Fullscreen editing mode
- Single-click fixing of common mistakes
- History for summary, search, and replace fields
Search Box
xikpatlaUser:Zocky/Search Box, a simple search/replace box. Supports regular expressions.
secEdit
xikpatlaUser:Supadawg/secedit.js, allows editing of article sections inline (without opening a separate page) - also supports previewing and showing changes inline.
Semi-auto edit bots
xikpatlaAutoWikiBrowser
xikpatlaAutoWikiBrowser - Makes repetitive, tedious edits such as spell checkings or category moves faster and easier
mwpush
xikpatlaDescription mwpush.pl is a Perl script which takes a Wikified text file or input and submits it to a target MediaWiki page.
Pywikipediabot
xikpatlaUseful for creating bots, or for interactive repair of interwiki links.
Humanbot (currently not running)
xikpatlaDescription
- A semi-automatic bot that automatically corrects mistakes in Wikipedia pages. The bot requires Mozilla Firefox, Greasemonkey 0.5-beta+, and a special script. This only works with the (default) Monobook theme. See the bot's page for more information.
Instructions (incomplete)
- If you don't have Mozilla Firefox, see the Firefox page on the Mozilla website.
- If you don't have the Greasemonkey extension, see the Greasemonkey page on the Mozilla Update website. Remember to restart your browser after installing it.
- Navigate to the script page.
- On the menu bar, go to Tools >> Install User Script.
- Click the 'Ok' button in the "Install User Script" window to add it to Greasemonkey.
- On Wikipedia, a new menu will appear on the sidebar, called "auto-edit" with the options 'on', 'off', and 'home'. Click 'on' to activate the bot.
- Note: Do not activate the bot with multiple tabs open!
- Note: The rest of the instructions are missing. If you can add to this, please do so.
Usage
- The bot will send you to the correct page, make the changes, and press the preview button. You just need to check that the changes are reasonable, and the edit will be made under your own username.
Information display
xikpatlaNavigation popups
xikpatlaWikipedia:Tools/Navigation popups gives a popup box containing the first paragraph of an article when hovering over a link; it also allows quick access to common editing operations. Installed by editing the user's [[User:Name/monobook.js]] file.
Templates
xikpatlaUser:Zondor/Toolboxes provide a list of templates as tools for one to put in pages such as their user page.
Alternative preview
xikpatla- Pilaf's Live Preview is a script that allows very fast preview in the browser window during article editing, without loading a new page, using a JavaScript parser. It does not support templates and has some other limitations. Installed by editing your [[User:Name/monobook.js]] file.
- User:Sverdrup/Wikipreview.html uses Pilaf's great Live Preview to make a downloadable stand-alone previewer for offline editing. (Download this link to save the file: wikipreview.html).
wpvfdhide
xikpatlawpvfdhide hides VfD discussions which are already closed on demand. This is useful both for finding unclosed entries in the logs and for finding things which weren't speedied in the current VfD day pages. The latest link to it is at User:R3m0t and it requires Firefox and Greasemonkey. r3m0t talk July 3, 2005 13:56 (UTC)
WikiCheck watchlist tool
xikpatlaWikiCheck is small tool to make checking your watchlist easier. Docked to the left screen edge it shows a list of changes that occurred since the last time the list was checked. Clicking on a change will open the corresponding diff in a new browser window.
vfd_NavBar
xikpatlavfd_NavBar is a modified version of the experimental navigation bars. This will hide closed discussions in the AFD & AFC pages, but not in the AFD sub pages (where there's only 1 discussion) and allows you to toggle them individually. There's no other requirements, just {{subst:User:Sanbeg/vfd_NavBar.js}} into your monobook.js -Steve Sanbeg 21:12, 17 October 2006 (UTC)
Wikisyntax conversion utilities
xikpatlaFrom tables
xikpatla- User:Cacycle/wikEd editor extension functionality, see above
- The CSV to Wikipedia converter allows you to convert tables in CSV format into the MediaWiki syntax for tables (or to HTML, if you prefer). This way you can import tables directly from spreadsheet applications like Excel or from databases. For more information, see de:Benutzer:Duesentrieb/csv2wp (en). (by de:Duesentrieb).
- The HTML::WikiConverter module (mentioned below) is also capable of table conversion.
From Microsoft Word
xikpatla- User:Cacycle/wikEd editor extension functionality, see above
- Word2MediaWikiPlus: Converts most text, tables and pictures into wiki format.
- Word to Wiki (English Google Translation of the German page)
- Wiki to Word is easy, just save the desired page and open it in Word.
- On the fly:
Add the following source to the visual basic editor incorporated in Word (tools->macro->visual basic editor) and close the VB editor. Converting the Word formatted text is now simple done running the just 'installed' macro (tools->macro->macros).
Attribute VB_Name = "Word2Wiki" Sub Word2Wiki() Application.ScreenUpdating = False ConvertH1 ConvertH2 ConvertH3 ConvertItalic ConvertBold 'ConvertUnderline ConvertLists ConvertTables ' Copy to clipboard ActiveDocument.Content.Copy Application.ScreenUpdating = True End Sub Private Sub ConvertH1() Dim normalStyle As Style Set normalStyle = ActiveDocument.Styles(wdStyleNormal) ActiveDocument.Select With Selection.Find .ClearFormatting .Style = ActiveDocument.Styles(wdStyleHeading1) .Text = "" .Format = True .MatchCase = False .MatchWholeWord = False .MatchWildcards = False .MatchSoundsLike = False .MatchAllWordForms = False .Forward = True .Wrap = wdFindContinue Do While .Execute With Selection If InStr(1, .Text, vbCr) Then ' Just process the chunk before any newline characters ' We'll pick-up the rest with the next search .Collapse .MoveEndUntil vbCr End If ' Don't bother to markup newline characters (prevents a loop, as well) If Not .Text = vbCr Then .InsertBefore "= " .InsertAfter " =" End If .Style = normalStyle End With Loop End With End Sub Private Sub ConvertH2() Dim normalStyle As Style Set normalStyle = ActiveDocument.Styles(wdStyleNormal) ActiveDocument.Select With Selection.Find .ClearFormatting .Style = ActiveDocument.Styles(wdStyleHeading2) .Text = "" .Format = True .MatchCase = False .MatchWholeWord = False .MatchWildcards = False .MatchSoundsLike = False .MatchAllWordForms = False .Forward = True .Wrap = wdFindContinue Do While .Execute With Selection If InStr(1, .Text, vbCr) Then ' Just process the chunk before any newline characters ' We'll pick-up the rest with the next search .Collapse .MoveEndUntil vbCr End If ' Don't bother to markup newline characters (prevents a loop, as well) If Not .Text = vbCr Then .InsertBefore "== " .InsertAfter " ==" End If .Style = normalStyle End With Loop End With End Sub Private Sub ConvertH3() Dim normalStyle As Style Set normalStyle = ActiveDocument.Styles(wdStyleNormal) ActiveDocument.Select With Selection.Find .ClearFormatting .Style = ActiveDocument.Styles(wdStyleHeading3) .Text = "" .Format = True .MatchCase = False .MatchWholeWord = False .MatchWildcards = False .MatchSoundsLike = False .MatchAllWordForms = False .Forward = True .Wrap = wdFindContinue Do While .Execute With Selection If InStr(1, .Text, vbCr) Then ' Just process the chunk before any newline characters ' We'll pick-up the rest with the next search .Collapse .MoveEndUntil vbCr End If ' Don't bother to markup newline characters (prevents a loop, as well) If Not .Text = vbCr Then .InsertBefore "=== " .InsertAfter " ===" End If .Style = normalStyle End With Loop End With End Sub Private Sub ConvertBold() ActiveDocument.Select With Selection.Find .ClearFormatting .Font.Bold = True .Text = "" .Format = True .MatchCase = False .MatchWholeWord = False .MatchWildcards = False .MatchSoundsLike = False .MatchAllWordForms = False .Forward = True .Wrap = wdFindContinue Do While .Execute With Selection If InStr(1, .Text, vbCr) Then ' Just process the chunk before any newline characters ' We'll pick-up the rest with the next search .Collapse .MoveEndUntil vbCr End If ' Don't bother to markup newline characters (prevents a loop, as well) If Not .Text = vbCr Then .InsertBefore "'''" .InsertAfter "'''" End If .Font.Bold = False End With Loop End With End Sub Private Sub ConvertItalic() ActiveDocument.Select With Selection.Find .ClearFormatting .Font.Italic = True .Text = "" .Format = True .MatchCase = False .MatchWholeWord = False .MatchWildcards = False .MatchSoundsLike = False .MatchAllWordForms = False .Forward = True .Wrap = wdFindContinue Do While .Execute With Selection If InStr(1, .Text, vbCr) Then ' Just process the chunk before any newline characters ' We'll pick-up the rest with the next search .Collapse .MoveEndUntil vbCr End If ' Don't bother to markup newline characters (prevents a loop, as well) If Not .Text = vbCr Then .InsertBefore "''" .InsertAfter "''" End If .Font.Italic = False End With Loop End With End Sub Private Sub ConvertUnderline() ActiveDocument.Select With Selection.Find .ClearFormatting .Font.Underline = True .Text = "" .Format = True .MatchCase = False .MatchWholeWord = False .MatchWildcards = False .MatchSoundsLike = False .MatchAllWordForms = False .Forward = True .Wrap = wdFindContinue Do While .Execute With Selection If InStr(1, .Text, vbCr) Then ' Just process the chunk before any newline characters ' We'll pick-up the rest with the next search .Collapse .MoveEndUntil vbCr End If ' Don't bother to markup newline characters (prevents a loop, as well) If Not .Text = vbCr Then .InsertBefore "=== " .InsertAfter " ===" End If .Font.Underline = False End With Loop End With End Sub Private Sub ConvertLists() Dim para As Paragraph For Each para In ActiveDocument.ListParagraphs With para.Range If .ListFormat.ListType = wdListBullet Then .InsertBefore " *" Else ' .InsertBefore "#" End If .ListFormat.RemoveNumbers End With Next para End Sub Private Sub ConvertTables() Dim thisTable As Table Dim myCol As Word.Column Dim myRow As Word.Row Dim myCell As Word.Cell Dim myFrame As Word.Frame For Each thisTable In ActiveDocument.Tables With thisTable For Each myRow In thisTable.Rows For Each myCell In myRow.Cells With myCell.Range .InsertBefore "|" End With Next myCell myRow.Range.InsertBefore "|-" & vbCrLf Next myRow .Range.InsertBefore "{| border=""1""" & vbCrLf .Range.InsertAfter vbCrLf & "|}" .ConvertToText Separator:=wdSeparateByParagraphs End With Next thisTable For Each myFrame In ActiveDocument.Frames myFrame.Delete Next myFrame End Sub
From HTML
xikpatla- User:Cacycle/wikEd editor extension functionality, see above
- An AJAX interface for the HTML::WikiConverter http://labs.seapine.com/htmltowiki.cgi
- An online interface for converting plain HTML to MediaWiki syntax is available at http://diberri.dyndns.org/html2wiki.html. It is based on the Perl module HTML::WikiConverter which performs html→wiki conversion and is available on CPAN. (by en:Diberri)
- Another HTML to Wiki converter is available online at http://www.dwheeler.com/html2wikipedia/
- A Google Web Toolkit(AJAX) based HTML to Wiki converter is available online at http://www.jtidy.de
- A browser based HTML to Wiki converter Emiliano Bruni's HTML2Wiki Converter (also using Perl module HTML::WikiConverter)
From LaTeX
xikpatla- LaTeX2wiki converts sections, math, and references using a web form.
From source codes
xikpatla- A Google Web Toolkit(AJAX) based source code to Wiki converter is available online at http://www.jtidy.de. Code snippets from the following languages are syntax highlighted: ABAP(only for keywords in uppercase form), C#, HTML, Java, JavaScript, PHP and XML.
Misc. Editing tools
xikpatlaRecentChanges tools
xikpatla- Vandal Fighter (recent changes monitor)
- VandalProof (vandalism fighting tool)
- http://vs.aka-online.de/rchiststat/ - RecentChanges statistics
Spell Checkers
xikpatla- Mozilla Firefox offers built-in spell checking since version 2.0. Link to additional languages [2]
- Google Toolbar offers spell checking in various languages for Internet Explorer and Mozilla Firefox.
- A well-designed spell checker for Internet Explorer is ieSpell.
- Post 7.5 versions of Opera: GNU Aspell can be used as spellchecker by Opera (web browser) (textboxes only.)
- Konqueror uses Aspell if it's installed and set up in your KDE Control Center.
- A good stand-alone spell checker for English Wikipedia pages is Inspyder InSite. (The free version is good enough for fixing Wikipedia articles.)
- The Mac OS X's universal spell checker is available in Wikipedia's "edit this page" mode while using Safari (web browser) and in theory any other Cocoa-based browser.
- RegExTypoFix is a large set of regular expressions meant to be loaded into AutoWikiBrowser to do automatic spellchecking.
Interwiki link checker
xikpatla- [3] to interwiki articles in different languages which ought to have a link.
Disambiguation fixer
xikpatlaDisambiguation fixer will be a program to fix the links to Disambiguation pages. (See Wikipedia:Disambiguation pages with links)
Go-to-edit-page contextual menu item
xikpatla- This script for a Firefox extension allows one to go directly to the edit page of a right-clicked wiki page link (control-clicked on a Macintosh one-button mouse).
Timeline creation tool
xikpatlaFor a tool to create nice graphical timelines, see meta:Wikipedia Project Time Charts and the Easy Timeline Homepage. (by meta:Erik Zachte)
AFD tools
xikpatlaAdd the following to your [[User:UserName/monobook.js]]:
function hidevfd(){ var divs = document.getElementsByTagName("div"); for(var x = 0; x < divs.length; ++x) if(divs[x].className.indexOf("vfd") != -1) divs[x].style.display = "none"; document.getElementById('footer').style.display = 'none'; } function showvfd(){ var divs = document.getElementsByTagName("div"); for(var x = 0; x < divs.length; ++x) if(divs[x].className.indexOf("vfd") != -1) divs[x].style.display = ""; document.getElementById('footer').style.display = ''; } function addlilink(tabs, url, name){ var na = document.createElement('a'); na.href = url; na.appendChild(document.createTextNode(name)); var li = document.createElement('li'); li.appendChild(na); tabs.appendChild(li); return li; } function vfdlinks(){ var tabs = document.getElementById('p-cactions').getElementsByTagName('ul')[0]; if(document.title.indexOf("Wikipedia:Articles for deletion") == 0){ addlilink(tabs, 'javascript:hidevfd()', 'Hide'); addlilink(tabs, 'javascript:showvfd()', 'Show'); } } if (window.addEventListener) window.addEventListener("load",vfdlinks,false); else if (window.attachEvent) window.attachEvent("onload",vfdlinks);
- This should be improved by saving a 7-day cookie as to the hidden or shown status of each VFD --jnothman talk 02:01, 2 November 2005 (UTC)
Afd helper
xikpatlaA script to speed up voting on AFDs. See afd helper. Feedback needed.
WikiDiscussion Manager
xikpatlaThis is a tool for posting your opinion on disscussions on wikipedia. Currently only AfD is supported, more are coming. WDM. This is a console app using .NET and C++.
Regex: change heading levels
xikpatlaThe following may seem trivial for Unix-experienced people, but a collection of ready to use regular expressions can help people who don't know anything or much about regular expressions. For these people: You can use regular expressions in many editors to perform complex editing tasks.
This will give the headings more (or less) equal signs ("="). I can only provide a version which is verified to work in Eclipse, but it will work in many text editors which feature Unix-style regular expressions.
Please change the expressions only if you are very, very sure that it will work correctly, say you have tested that it works.
Verified in Eclipse
- Search-string:
^=(=*?)([^=]+?)(=*?)=\s*$
- For more equal signs replace with:
==$1$2$3==
- For less equal signs replace with:
$1$2$3
- To balance right equals signs to left:
=$1$2$1=
Hints for text editors not mentioned
- In other editors the replace strings will have to be different:
For more equal signs replace with:
==\1\2\3==
For less equal signs replace with:
\1\2\3
Footnote renumbering tool
xikpatlaIf you have a page with many footnotes ({{Fn|...}} and {{Fnb|...}}), and they're all in the wrong order, this script could be useful. Written in Python, tested on a Linux system with Python 2.4.
User:Skagedal/Footnote renumbering tool
Extra edit page buttons
xikpatlaFor extra edit page buttons, put the following code in your monobook.js, replacing "monobook" with the name of your skin, in all lowercase (using "standard" for Classic skin).
{{subst:js|User:MarkS/extraeditbuttons.js}}
The buttons include: left aligned text, sub-script, super-script, insert table, insert quoted text.
More details can be found at User:MarkS/Extra_edit_buttons.
Strikeout
xikpatlaThe following simply adds a strikeout button to your editing tools:
function addStrikeoutButton() { editingTools = document.getElementById('toolbar'); if (editingTools != null) { StrikeTextButton = " <a href=\"javascript:insertTags('<s>','</s>','Insert text here');\"><img src=\"http://upload.wikimedia.org/wikipedia/en/c/c9/Button_strike.png\" alt=\"Strike\" title=\"Strike-through text\"></a>"; editingTools.innerHTML = editingTools.innerHTML + StrikeTextButton; } } window.onload = addStrikeoutButton;
Units of measure formatting tool
xikpatlaUser:Bobblewik/monobook.js/unitformatter.js is a monobook tool allows units to be formatted with one click on a 'units' tab in edit mode.
You can accept or reject the changes offered and/or do more editing before pressing 'Save'. Simply copy the entire contents of User:Bobblewik/monobook.js to your own monobook. Follow the instructions in your monobook to clear the cache (i.e. press Ctrl-Shift-R in Firefox, or Ctrl-F5 in IE) before it will work. bobblewik 20:32, 6 July 2006 (UTC)
Tool for delinking partial 'non-preference' dates
xikpatlaUser:Bobblewik/monobook.js/dates.js is a monobook tool delinks 'non-preference' dates with one click on a 'dates' tab in edit mode. If the link is to a 'preference' date (i.e. works with the date preference mechanism), it leaves it alone.
You can accept or reject the changes offered and/or do more editing before pressing 'Save'. Simply copy the entire contents of User:Bobblewik/monobook.js to your own monobook. Follow the instructions in your monobook to clear the cache (i.e. press Ctrl-Shift-R in Firefox, or Ctrl-F5 in IE) before it will work. bobblewik 20:32, 6 July 2006 (UTC)
Wiki Welcome
xikpatla// A small piece of JS writen by [[User:MatthewFenton]], This is my first piece of JS. function welcome() { if (document.title.indexOf('Editing User talk:') == 0) { document.editform.wpTextbox1.value = document.editform.wpTextbox1.value + '==' + 'Welcome' + '==\n' + '{{subst:User:' + 'MatthewFenton/Welcome}}\n~~' + '~~'; document.editform.wpSummary.value = 'Welcome a user to Wikipedia using JS WW'; } } function welcome_tab() { add_link('javascript:welcome()', 'Welcome'); } if (document.title.indexOf('Editing User talk:') == 0) { addOnloadHook(welcome_tab); }
The code adds a tab when you are on user talk pages, you can then click it to add a welcome template and then save. A little time saver for me i thought I would share. Matthew Fenton (contribs) 16:25, 12 July 2006 (UTC)
Image tagging tools
xikpatlaScript for quickly tagging images as lacking source, licensing, or fair use rationale. Also simplifies nominating images for deletion:
User talk:Howcheng/quickimgdelete.js
Commonist - upload client for Wikimedia Commons
xikpatlaA simple upload client for wikimedia commons and a number of other MediaWiki sites. Written in Java and BeanShell. [4]
Labelled Image Editor
xikpatlaZondor's Labelled Image Editor is a Java tool that creates and edits labelled links for an image. Useful for creating clickable maps like Template:United States Labelled Map. http://mujibab.googlepages.com/labelledimageeditor
CSDHelper
xikpatlaA Greasemonkey script to add a menu with common WP:CSD criteria next in the form that appears when deleting articles. It saves time and provides more meaningful deletion reasons in the logs. Can be included directly into monobook.js with basic modification. It is available at User:Chairboy/csdhelper.greasemonkey.js. Wikipedia administrator access required.
AFD Organizer
xikpatlaAn application used in AFD discussions. Loads a list of all the recent AFD's, and then pre-loads several useful pages when opening an AFD, saving valuable time and energy.
Easier article assessment
xikpatlaUser talk:Outriggr/metadatatest.js is a script that displays WikiProject article assessments on the article page rather than the talk page. The user can assess the article by selecting a WikiProject and a grade, which opens the talk page in preview mode with the template already added or modified. See the link for more details. –Outriggr § 02:36, 29 March 2007 (UTC)