Help:VisualEditor

From Bulbapedia, the community-driven Pokémon encyclopedia.
(Redirected from H:VE)
Jump to navigationJump to search
VisualEditor logo.png

Shortcut
H:VE

VisualEditor gives you the ability to edit without needing to learn simple wikicode markup, as is required by the default Source Editor. The VisualEditor is distinct in that it displays the text being edited almost as if it were already published. This guide gives illustrated, step-by-step instructions on the editor's features.

Opening the VisualEditor

To edit a page using the VisualEditor, click on the "edit" tab at the top of the page.

It may take a few seconds for the page to open for editing, and longer if the page is very long.

Clicking on the "edit source" tab will open the classic wikicode Source Editor.

VisualEditor Tabs.png

You can also open the VisualEditor by clicking on the "edit" link on each section.
VisualEditor section edit.png

Currently, VisualEditor is only available in the "Main", "User" and "Category" namespaces (along with the "File" namespace on the Bulbagarden Archives). In other namespaces, only the Source Editor can be used.

Getting started: the VisualEditor's toolbar

Screenshot of the VisualEditor's toolbar
The VisualEditor's toolbar appears at the top of the screen when you begin editing. It includes some familiar icons:

VisualEditor Undo Redo.png
Undo and redo the changes you have made.

VisualEditor Toolbar Headings.png
Headings pull-down menu: allows you to change how the paragraph is formatted. To change the style of a paragraph, put your cursor in the paragraph and select an item in this menu (you don't have to highlight any text). Section titles are formatted "Heading", and subsections are "Sub-heading 1", "Sub-heading 2", and so on. The normal format for text is "Paragraph".

VisualEditor Toolbar Formatting.png
Formatting: clicking the "A" opens a menu.
  • The "Bold" item (B) bolds the selected text.
  • The "Italic" item (I) italicizes the selected text.
  • The "Superscript" item (xI) causes the selected text to appear smaller than surrounding text and to be slightly higher than the surrounding text.
  • The "Subscript" item (xI) causes the selected text to appear smaller than surrounding text and to be slightly lower than the surrounding text.
  • The "Strikethrough" item (S) adds a solid bar through the selected text.
  • The "Computer code" item (a set of curly brackets: {}) changes the font of the selected text to a monospaced font, which sets it apart from surrounding (proportionally spaced) text.
  • The "Underline" item (U) adds a solid line beneath the selected text.
  • The "Language" item (文A) allows you to label the language (for example, Japanese) and direction (for example, right-to-left) of the selected text.
  • The "Big" item (A) causes the selected text to appear bigger than surrounding text.
  • The "Small" item (A) causes the selected text to appear smaller than surrounding text.
  • The final item, called "Remove", removes all character formatting from the selected text, including links.

If you have not selected any text, then when you click the "A" to open the menu, and then select an item, that formatting will apply to the text that you start typing, from wherever your cursor is located.


VisualEditor Link Button.png
Linking tool: The chain icon is the linking tool. Clicking on it (usually after selecting some text) opens the link dialog.

VisualEditor Toolbar Cite.png
Cite menu: The "cite" menu is used to add inline citations (also called "references").

VisualEditor Toolbar Lists.png
Lists and indentation: The first two items allow you to format text as either a "Bullet list" or a "Numbered list". The last two items allow you to decrease or increase the indentation level of list items.

VisualEditor Toolbar Insert.png
Insert: The "Insert" menu allows you to insert different objects into the page:
  • The "Images and media" icon (a picture of mountains) opens the media dialog.
  • The "Template" icon (a puzzle piece) allows you to edit templates.
  • The "Table" item allows you to insert a table.
  • The "Comment" item (a !) allows you to insert comments that are not visible to readers; these comments can be seen only when in edit mode, where they are indicated by an exclamation mark icon. In edit mode, clicking on the exclamation mark icon allows you to edit or delete the comment.
  • The "Chemical formula" icon (a flask) opens the formula inserter dialog.
  • The "Math formula" icon (Σ) opens the formula inserter dialog.
  • The "Gallery" icon (a set of photos) allows you to insert a gallery to the page.
  • The "Your signature" item allows you to insert a signature that you use on the project. It will be greyed out (not selectable) when you are editing a type of page (a "namespace"), such as an article, where signatures should not be inserted.
  • The "References list" icon (three books) opens a dialog in which you can specify where references will be displayed to the reader. Usually this needs to be done only once on a page.

Special character insertion: The "Special character" (Ω) icon is next to the "Insert" menu. When clicked, it displays a dialog showing many special characters. By clicking on a specific character, you place it into the text. These special characters include some standard symbols, diacritics, and mathematical symbols.
VisualEditor Toolbar Special Characters.png

VisualEditor Toolbar Edit Notice.png
The Edit notices button displays any notices for the page (and will not appear if there are none).

VisualEditor Toolbar Settings.png
The Page options menu is to the left of the Save changes button and the Switch editor menu. On this menu there is a button to open an Options dialog with the following (left side) tabs:
  • Categories allows you to add categories to this page and to adjust how the page is sorted, when displayed within a category by setting a different index to sort with.
  • Page settings allows you to make the page a redirect and adjust options of this redirect, to adjust settings regarding the displaying of the Table of Contents, to disable the edit links next to each heading, and to define the page as a disambiguation page.
  • Advanced settings allows you to adjust the settings regarding indexation of the page by search engines, showing a tab to add a new section, and the displayed title.
  • Languages shows a list of pages in other languages that are linked to that page.
  • Templates used shows a list of links to each template used on this page.

The tabs of the Options dialog are also displayed in the Page options menu and can be opened by clicking on them. Furthermore the Page options menu contains the items Syntax highlighting (which is only available when using the VisualEditor in "wikitext mode"), View as right-to-left, and the item Find and replace, which opens a bar, where you can insert words or regular expressions you are searching for and those to replace them with, together with several buttons for options.


VisualEditor editor selector.png
The Switch editor button is next to the Save changes… button. It allows you to switch to the wikicode Source Editor.

Publishing changes

When you are finished editing, click the "Save changes…" button in the toolbar. If you have made no changes, the button will be disabled (grayed out). To cancel all your editing changes, close your browser tab, or click the "article" tab above the edit toolbar.
VisualEditor Toolbar Save changes.png

Clicking the blue "Save changes…" button opens a dialog. You can then enter a brief summary of your actions, mark your edit as minor, and add the page to your watchlist. The box for the summary is the equivalent of the Summary: field in the wikicode Source Editor.

You can also review your changes using the "Review your changes" button to confirm that they will function as intended before saving your changes. This is similar to the "Show changes" button in the wikicode Source Editor.

The "Resume editing" button (×) returns you to the page you were editing. You can publish all of your changes later.

VisualEditor Save Dialog.png

Editing links

VisualEditor Link Button.png
Links can be added through the "Link" icon (links in a chain) in the toolbar, or by using the shortcut "Ctrl+K" (or "⌘+K" on a Mac).

If you select (highlight) text and then click the "Link" button, that text will be used in creating the link. For a link that involves only one word, you can either select that word or just put the cursor within that word.


VisualEditor Link Tool Search.png
When you use either the button or the shortcut, a dialog will open in which you may type the link.

The link tool will try to help with internal links by searching for likely matches. Once you have entered or selected the link, you complete the linking process by pressing Enter on your keyboard or by clicking the "Done" button. Your link will immediately appear on the page, but as with other changes to the page, it will not be published until you publish the entire page.


VisualEditor Link Tool External.png
To link to a web page on another website, the process is similar: Choose the "External site" tab, and enter a URL in the box.

VisualEditor Link Tool Simple.png
External links without labels look like this: [1]. You can add these by placing your cursor away from any word (e.g., after a space). Open the link tool by clicking on the button or clicking the shortcut keys. Type the URL in the box, and click the "Done" button to insert the link.

VisualEditor Link Context Menu.png
To change or remove an existing link, click within the text for that link, then click the "Link" icon that appears near it. The dialog will appear, for editing. You can also get to the dialog with the "Ctrl+K" keyboard shortcut. When a link is selected, it appears as blue framed.

In the link editing dialog, you can then change where the link goes. You can also remove the link entirely by clicking the "Remove" button in the upper right corner of the dialog. You can also open the link's target in another window by clicking on the copy of the link in the dialog box. (You might want do this to check if an external link is valid.)

If you want to exit the link label (the text displayed as a link) or continue to write after this link, you can press "→" on your keyboard:

  • Clicking it once will escape the link editing dialog and put your cursor at the end of the element linked (blue framed, to edit this element)
  • Clicking it twice will put the cursor after the element linked, ready to type the rest of your text.

To edit the link label of an existing link, click within the link label and type the new one. But if you want to replace the entire label, please note:

  • If you have selected (highlighted) the entire link label, the link will be deleted by typing any key.
  • To edit the link label directly without deleting it, put the cursor within that link label, use the backspace and delete keys (no more than necessary), and a narrow blue link area will remain there. Now you may type in the new label for the kept link.
  • You can also link to categories, files and more.

Editing references

Editing an existing reference

To edit an existing reference, click on it where it appears in the text (usually as a bracketed number). clicking on the "Edit" button will open a dialog where you can edit the reference.
VisualEditor Reference Editing 1.png

Clicking "Edit" opens the reference dialog. Here you can create the reference. See Help:References for more information.

Click on "Apply changes" when you are done.

VisualEditor Reference Editing 2.png

Re-using an existing reference

If the page already contains a citation that applies to the text you want to source, then you can choose to re-use that existing citation.

To re-use an existing reference, place your cursor in the body of the text where you want to add a new reference (number) for that citation. Then click on the "Re-use" item from the "Cite" menu.

VisualEditor Toolbar Cite Menu.png

In the Reference dialog, look at the list for the reference you want to reuse, and select it. If there are many references, you can use the search box (labelled "Search within current citations") to list only those references that include certain text.
VisualEditor Reference Editing 3.png

Adding a new reference

To add a citation using the "Cite" menu, place your cursor where you want to add it in the text. Then click "Basic".
VisualEditor Toolbar Cite Menu.png

Shown here is what you will see if you select the basic references item. In the Reference editor, you can add your citation, including formatting.

You can make the reference belong to a given group, although normally this is left blank. (This option is used to display groups of references with the "References list" tool.)

VisualEditor Reference Editing 4.png

If there isn't already a list of references on the page (for example, if you are adding the first reference for the page), you need to specify where the list of references, and their text, will be displayed to the reader.

Place the cursor where you want to display the references list (usually at the bottom of the page), open the "Insert" menu and click the "References list" icon (three books).

VisualEditor Toolbar Insert References list.png

If you are using several groups of references, which is relatively rare, you can specify the group in this dialog. Only the references that belong to that group will be displayed on the page at the location where you are placing the group.

The final step in the References list dialog is to click "Apply changes".

VisualEditor References list.png

Editing images and other media files

Editing images

VisualEditor Insert Images.png
To add a new image (or another type of media file) to the page, click the "Images and media" icon (a picture of mountains) in the "Insert" menu. The image will be added wherever your cursor is.

VisualEditor Media Editing 1.png
Clicking the "Images and media" icon opens a dialog that automatically searches the Archives for media files related to the title of the page you are editing.

You can change the search by changing the text in the dialog's search box.

To choose a file, click on its thumbnail image.

This places the image onto the page you are editing.


VisualEditor Media Editing 2.png
After the image you selected is inserted into the page, another dialog will open. This dialog allows you to add and edit the caption of the image. The caption can contain formatting and links.

The media dialog also allows you to add alternative text captions, to help users who use screen readers, or who have disabled image display.


VisualEditor Media Editing 3.png
You can also set various parameters for the image in the "Advanced" tab. These include the alignment, the type, and size of the image.

VisualEditor Media Editing 4.png
When you are done, click "Insert" to close the dialog and return to editing the page.

VisualEditor Media Editing 5.png
For an existing image, you can add or edit a caption or other settings by clicking on the image, then clicking on the "Edit" button that appears below the picture.

You can resize an existing image by clicking on it, then moving the resize icon (the two-headed arrow on one or both bottom corners).

You can also drag and drop an image to a place higher or lower on the page.


Uploading images

See: a:Help:Uploading images

Editing media galleries

VisualEditor Insert Gallery.png
To add a new gallery, click the "Gallery" icon (a set of photos) on the "Insert" menu.

VisualEditor Galleries 1.png
To edit an existing gallery in the VisualEditor, click that gallery. Then, near the top of the gallery, click the "Edit" button. This brings up the gallery editor, with the full list of images included in the gallery.

VisualEditor Galleries 2.png
The gallery editor has two tabs, one to add images and their captions, the other controls display options.

The order of images can be rearranged by dragging the images on the left, and can be added using the "Add new image" button at the bottom of the list. The options tab allows size and layout to be edited. The default display options are preferred in most cases.

When you click the "Apply changes" button, you will exit the gallery editor. You should then see your changes, with the gallery as it will now appear to readers.

Remember that exiting the gallery editor does not save your changes. As with other changes made using VisualEditor, you must "Save" the entire page in order to save your work and make it viewable online.

Editing templates

The powerful MediaWiki template system lets you insert dynamic content, text from other pages, and much more. For a detailed explanation and examples, see Help:Templates.

In the VisualEditor you can search for a relevant template, add a transclusion on the page you’re editing and, if needed, add custom content using parameters.

Insert new template

To add a template to a page, place your cursor at the position on the page where you want the template to be inserted. Then open the Insert menu and select "Template". Alternatively, type two curly brackets ({{) to open the same dialog.
VisualEditor Insert Template.png

Find the template you want to insert by typing either its name or a relevant keyword. Results containing the search term in either the name or description will display in a dropdown. This should help you find a relevant template, even if you don’t know its exact name.

If you’re having trouble finding the kind of template you want by using keywords, you can look on other wiki pages with similar content and view or edit the page source to see which templates are in use. When you find the desired template’s name, you can type it into this field to insert it here.

VisualEditor Template Search.png

You can also edit a template that’s already on a page. When you select the template you want to edit, it turns blue, and a box appears displaying "Template". Then select the "Edit" link or double click on the template itself to open the template editor.
VisualEditor Template Context Menu.png

Some templates are not visible to someone reading a page. In the VisualEditor, such hidden templates are still shown so that you can click and edit or delete them. The name of the template will be shown next to the puzzle icon and both will be grayed out.
VisualEditor Hidden Template.png

Template parameters

You’ll see this dialog box when you’re adding a new template or editing one already in place. Click the link to the "template's page". There you can learn how to correctly employ and work with all of the template’s parameters. This includes learning the exact names of the parameters as written by the template author.

If you find in the documentation that the template expects parameters without names, fill in numbers as placeholders for the parameter names using the undocumented parameter input, then add text to the values you want to provide as you normally would.

Example:

  • first unnamed parameter: “1”
  • first unnamed parameter’s value: “en_US”
  • second unnamed parameter: “2”
  • second unnamed parameter’s value: “yes”

If you accidentally include nonexistent, misspelled or erroneous parameters, the values you enter for those parameters won’t show up on the page you’re editing.

VisualEditor Template Editor 1.png

Editing multi-part template content

During editing, you may open template content consisting of multiple templates or a single template linked to some wikitext. This differs from the nested templates described below. In this case, the templates are better visualized as being stacked or connected.

This content often contains “unbalanced templates,” templates which are incomplete on their own and need to be paired with some wikicode or another template in order to function.

These related pieces of template content must be created in wikicode, but can be edited in the VisualEditor. In these cases you will see a notice at the top of the dialog to signal the situation and a specialized toolbar will be visible at the bottom of the sidebar. There you can use the icon buttons to add additional templates, additional wikicode, delete elements or change their order.

VisualEditor Template Editor 2.png

Nested templates

Templates can include other templates as the value for parameters. You’ll recognize it when you see a parameter whose value contains the double curly braces ({{ }}) denoting a template.

The VisualEditor can’t present this template within a template (a nested template) using the editor’s easy-to-use interface, so if you want to nest a template yourself, you’ll need to understand how to add the template by hand in wikicode into the appropriate parameter field.

VisualEditor Template Editor 3.png

Completing your edit

When you have finished editing a template, you can click "Apply changes". Then you can preview your edit and make sure it looks the way you want and expect.

You may also see an error message; you may need to consult the template’s own documentation to get to the bottom of some errors. If you’re still having trouble, consider posting about your problem on the template’s talk page.

VisualEditor Apply changes.png

Removing a template

To remove a template in the VisualEditor, click the template. Press the "Delete" or "Backspace" key on your keyboard. The template will disappear from the page.
VisualEditor Template Context Menu.png

Editing lists

VisualEditor Toolbar Lists.png
You can use the VisualEditor to create lists, or to change the format of an existing list. There are two types of lists: unordered (bullet) and ordered (numbered).

To start a new list, just click on one of the two menu items shown here. Or, if you already have typed the list (on separate lines), select (highlight) the list you have typed, then click on one of the menu items.

If you want to change the indentation level of part of an existing list, select the part of the list that you want to change. Then use the menu, or press the Tab key. (The Tab key increases indentation; use the shift key plus the Tab key to decrease indentation). You can even mix ordered (numbered) and unordered (bullet) lists, if the list items have different indentations.

Editing tables

VisualEditor Insert Table.png
You can use the VisualEditor to insert and change tables.

You can even import a table by dragging a comma-separated value (.csv) file from your computer into the main editing window.


VisualEditor Tables 1.png
When you click on "Table", in the "Insert" menu, the VisualEditor inserts a blank four-by-four table.

Clicking "Properties" allows you to choose whether the table has a caption, is sortable or collapsible, or if it has "wikitable" styling. For more information about these properties, see Help:Tables.


VisualEditor Tables 2.png
To select a cell, click it once.

VisualEditor Tables 3.png
To edit the contents of the cell (for example, to add content or to correct a spelling error), double click in the cell. Or you can select the cell and then press Enter on your keyboard.

To end your editing of a cell, just click elsewhere.


VisualEditor Tables 4.png
You can add, move or delete a column or a row.

VisualEditor Tables 5.png
You can merge cells: Select them, then from the Table menu, click on "Merge".

VisualEditor Tables 6.png
If you merge cells, only the text in one cell is kept; any text in the other cells is deleted when you merge the cells. If you decide that you wanted some or all of the text that was deleted, use the Undo button, move or copy the text you want, then merge the cells again.

VisualEditor Tables 7.png
You can also split cells that were previously merged. All the content that was in the merged cell will remain in the first cell when you do the split. You can then cut and paste text to other cells, if you want.

Editing categories

To edit categories, on the "Page options" menu, click the "Categories" item.
VisualEditor Toolbar Settings Categories.png

Clicking on "Categories" opens a dialog that lists existing categories and allows you to add new ones, and to delete existing categories.

You also have the option of setting or changing the general (default) sorting key, which determines where the page appears when listed with other pages in the same category.

For example, the default sorting key for the article "Satoshi Tajiri" is "Tajiri, Satoshi". In the category "People", the article is listed under the letter "T", not the letter "S".

VisualEditor Categories 1.png

To add a category for a page, type the name of the category into the field "Add a category". As you type, the VisualEditor will search for possible matching, existing categories. You can either select an existing category, or you can add a category that doesn't yet have its own category page. (Until that category page is created, your new category will show as a red link after you publish all your editing changes.)
VisualEditor Categories 2.png

To remove an existing category, click on it and click on the "Remove" icon (trash can) in the dialog that opens.

Clicking on a category also allows you to specify a sorting key for that specific category. Such a sorting key overrides the default sorting key.

VisualEditor Categories 3.png

Click "Apply changes" when you are done editing categories to return to the page editor.
VisualEditor Apply changes.png

Editing page settings

VisualEditor Toolbar Page Settings.png
To edit a page's settings, click to open the "Page options" menu, in the toolbar, and select the "Page settings" button.

VisualEditor Page Settings.png
The "Page settings" button opens a dialog that shows several options.

You can make a page a redirect to another page by checking the "Redirect this page to" checkbox, and then typing the name of the page to which you want to send the reader who tries to go to the page that you are editing. There is also an option to prevent page renames from updating this redirect. This is very rarely used.

You can change whether the page shows a Table of Contents by selecting one of these three buttons. The default option is "If needed", which shows a Table of Contents if there are three or more headings.

You can make a page not show edit links next to each section header. There is also an option to designate a page as a disambiguation page.


VisualEditor Apply changes.png
Click "Apply changes" when you are done editing the Page options to return to the page editor.

Editing formulae

To add a new formula to the page, place your cursor where you want it to be inserted, and click on "Math formula" (Σ icon) in the "Insert" menu on the toolbar, or "Chemical formula" (flask icon).
VisualEditor Insert Formula.png

A window will open in which you can type the formula, using LaTeX syntax. the VisualEditor will update the formula as you type it, so you can see how it will look as you make changes. Once you are happy with the formula, click the "Insert" button.
VisualEditor Formula 1.png

To edit an existing formula on the page, click on it and then click on the "Edit" button. This will open up the formula dialog, where you make changes.
VisualEditor Formula 2.png

Formulae can be placed inline or centered as a block.
VisualEditor Formula 3.png

Disabling VisualEditor

To disable the VisualEditor, go to the "Editing" tab in Special:Preferences, tick the option "Temporarily disable the visual editor while it is in beta", and click "Save". Doing this will mean that "edit" links will always open the Source Editor.

See also