Ajuda:Editor visual/Guia d'usuari

From MediaWiki.org
Jump to: navigation, search
This page is a translated version of the page Help:VisualEditor/User guide and the translation is 17% complete.

Other languages:
العربية • ‎অসমীয়া • ‎asturianu • ‎azərbaycanca • ‎Bikol Central • ‎беларуская (тарашкевіца)‎ • ‎български • ‎বাংলা • ‎bosanski • ‎català • ‎Cebuano • ‎čeština • ‎Cymraeg • ‎dansk • ‎Deutsch • ‎Zazaki • ‎Emiliàn • ‎Ελληνικά • ‎emiliàn e rumagnòl • ‎English • ‎British English • ‎Esperanto • ‎español • ‎eesti • ‎euskara • ‎فارسی • ‎suomi • ‎føroyskt • ‎français • ‎Frysk • ‎galego • ‎עברית • ‎हिन्दी • ‎Fiji Hindi • ‎hrvatski • ‎magyar • ‎Հայերեն • ‎Bahasa Indonesia • ‎Interlingue • ‎Ilokano • ‎italiano • ‎日本語 • ‎Basa Jawa • ‎ქართული • ‎ភាសាខ្មែរ • ‎ಕನ್ನಡ • ‎한국어 • ‎Lëtzebuergesch • ‎lietuvių • ‎latviešu • ‎मैथिली • ‎Malagasy • ‎македонски • ‎മലയാളം • ‎मराठी • ‎Bahasa Melayu • ‎Napulitano • ‎norsk bokmål • ‎Nederlands • ‎Oromoo • ‎ଓଡ଼ିଆ • ‎ਪੰਜਾਬੀ • ‎Picard • ‎polski • ‎پښتو • ‎português • ‎português do Brasil • ‎română • ‎русский • ‎саха тыла • ‎Scots • ‎slovenčina • ‎slovenščina • ‎српски / srpski • ‎Basa Sunda • ‎svenska • ‎தமிழ் • ‎ไทย • ‎Tagalog • ‎Türkçe • ‎татарча/tatarça • ‎українська • ‎Tiếng Việt • ‎isiXhosa • ‎ייִדיש • ‎中文
PD Nota: Si editeu aquesta pàgina, esteu acceptant que la vostra actualització contribueixi en el marc de les CC0. Mireu Pàgines d'Ajuda de Domini Públic per a més informació.
Si voleu provar l'editor visual sense modificar un article, aquí hi ha una pàgina on podeu provar-lo lliurement. No cal tenir un compte per usar l'editor visual en aquella pàgina.

== Obrint l'editor visual ==

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

Obrir la pàgina per a editar-la pot trigar uns quants segons, o més si la pàgina és molt llarga.

Clicking on the "Modifica el codi" tab will open the classic wikitext source editor.

VisualEditor edit tab-ca.png

You can also open VisualEditor by clicking on the "modifica" link on each section.
VisualEditor - Section edit links-en.png

Getting started: the VisualEditor toolbar

Captura de pantalla de la barra d'eines de l'editor visual
La barra d'eines de l'editor visual es situa a dalt de la pantalla quan comences a editar amb l'editor visual. Conté unes icones familiars:

VisualEditor - Toolbar - Undo-redo.png
Desfés and Refés the changes you have made.

VisualEditor Toolbar Headings-ca.png
Headings pull-down menu: allows you to change how the paragraph is formatted. To change the style of a paragraph, put your caret in the paragraph and select an item in this menu (you don't have to highlight any text). Section titles are formatted "Encapçalament", and subsections are "Encapçalament 2", "Encapçalament 3", and so on. The normal format for text is "Paràgraf".

VisualEditor Toolbar Formatting-ca.png

Formatting: Clicking the "A" opens a menu. For any item to have an effect, you must have first selected (highlighted) some text.

  • The "Negreta" item (B) bolds the selected text.
  • The "Cursiva" item (I) italicizes the selected text.
  • The "Superíndex" item (x2) causes the selected text to appear smaller than surrounding text and to be slightly higher than the surrounding text.
  • The "Subíndex" item (x2) causes the selected text to appear smaller than surrounding text and slightly lower than the surrounding text.
  • The "Ratllat" item (S) adds a solid bar through the selected text.
  • The "Codi d'ordinador" 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 "Subratllat" item (U) adds a solid line beneath the selected text.
  • The "Idioma" item (Aあ) allows you to label the language (for example, Japanese) and direction (for example, right-to-left) of the selected text.
  • The final item (VisualEditor MediaWiki theme clear icon bitmap.png), called "Neteja l'estil", removes all character formatting from the selected text, including links

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

VisualEditor - Cite Pulldown.png
Referència menu: The "Referència" menu is used to add inline citations (also called "footnotes" or "references"). All projects have access to "Bàsic" reference formatting and the ability to "Reutilitza" citations, using this menu. This menu also gives you quick access to local citation templates, if these are enabled on your wiki.

(Instructions for adding local citation templates to the Referència menu at a specific wiki are available at VisualEditor/Citation tool.)

VisualEditor citoid Cite button.png
Referència</> button: If the citoid service is enabled on your wiki, then you will see a "Referència" button instead of a Referència menu.

The citoid service tries to fill out citation templates automatically.

VisualEditor Toolbar Lists and indentation-ca.png
Llistes i sagnia: Les dues primeres icones us permeten crear llistes numerades o puntades, respectivament. Les últimes dues augmenten o redueixen el nivell de sagnat del contingut.

VisualEditor Insert Menu-ca.png
Insereix: The "Insereix" menu may be different on some projects. Below is a list of all options that may appear.
  • The "Fitxer multimèdia" icon (a picture of mountains) opens the media dialog.
  • The "Galeria" icon (a set of photos) allows you to insert a gallery to the page.
  • The "Plantilla" icon (a puzzle piece) allows you to edit templates.
  • The "Comentari" item (a speech balloon) allows you to insert comments that are not visible to readers; these comments can be seen only when in edit mode and are then indicated by an exclamation mark icon.
  • The "Fórmula" icon (Σ) opens the formula inserter dialog.
  • The "Llista de referències" icon (three books) opens a dialog in which you can specify where will references be displayed to the reader. Usually this only needs to be done once on every page.
  • The "Jeroglífics" icon (an ankh symbol - ☥) allows you to enter the hieroglyphics inserter. (See below.)

Special character insertion: The "Caràcter especial" (Ω) icon on the "Insereix" menu, when clicked, 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, accents, and mathematical symbols. (This list may be customized locally. See VisualEditor/Special characters for instructions.)
VisualEditor Toolbar SpecialCharacters-ca.png

VisualEditor More Settings-ca.png
The Opcions de la pàgina menu is to the left of the Desa la pàgina button. On this menu there are options to adjust page settings, such as whether the page is a redirect, or how it is indexed; to add, edit, or delete categories; and to see, using the "Idioma" item, the list of articles on the same subject that are in other languages. You can also switch (one-way only) from VisualEditor to the classic wikitext source editor without losing the editing work you've done.

Saving changes

When you're done editing, click the blue "Desa la pàgina" button in the toolbar. If you have made no changes, the button will be disabled (grayed out). Per cancelar tots els teus canvis editant, simplement tanca la finestra del teu navegador
VisualEditor toolbar actions-ca.png

Pressing the green "Desa la pàgina" 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 Llista de seguiment. The box for the summary is the equivalent of the Resum: field in the wikitext editor.

You can also review your changes using the "Revisa els canvis" button to be sure they will work as intended before saving your changes. This is similar to the "Mostra els canvis" button in the wikitext editor.

The "Canceŀla" button returns you to the page you were editing. You can save all of your changes later.

VisualEditor save dialog-ca.png

Editing links

VisualEditor - Toolbar - Linking.png
Links can be added through the "Enllaç" icon (links in a chain) in the toolbar, or by using the shortcut  Ctrl+K (or  Command+K on a Mac).

If you select (highlight) text and then press the "Enllaç" button, a link will be inserted using that text. For single-word links it's enough to just do it while the caret is on that word.

VisualEditor-link tool-search results.png
Emprar tant el botó com la drecera obrirà un diàleg en el qual pots escriure l'enllaç. L'editor visual t'ajudarà amb els enllaços interns (enllaços a d'altres pàgines de la Viquipèdia), ja que cercarà noms similars quan comencis a escriure.

VisualEditor will try to help with internal links by looking for likely matches as you begin to type.

VisualEditor link tool 2015.png
Once you have entered or selected the link, you complete the linking process by pressing  Enter, pressing the "Fet" button, or just clicking outside of the box. Your link will immediately appear on the VisualEditor page, but it will not be saved until you save the entire page.

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

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). Obre l'enllaç clicant al botó o prement la tecla d'accés directe Type the URL in the box, and click the "Fet" button to insert the link.

VisualEditor-context menu-link tool.png
To change or remove an existing link, click within the text for that link, then press the "Enllaç" icon that appears near it. The dialog will appear, for editing. (You can also get to the dialog with the  Ctrl+K keyboard shortcut.)

In the dialog, you can then change where the link goes. You can also remove the link altogether by pressing the "Elimina" button in the lower left corner of the dialog. You can also open the link's target in another window by clicking on the "Obre" button. (You might want do this to check if an external link is valid.)

Editing references

For further information, see Help using citation templates or Help using citoid's Cite button

Editar una referència existent

VisualEditor - Editing references 1.png
To edit an existing reference, click on it where it appears in the text (usually as a bracketed number). You will see either a "Bàsic" icon (bookmark) or an icon (and name) for the template that was used to create this reference. Clicking on this icon will open a dialog where you can edit the reference.

VisualEditor - Editing references 6.png
If what appears is the "Bàsic" icon, clicking on it opens the Reference dialog, where you can edit the reference's contents.

Many wikis use templates to format references. If a template is used in your reference, then all the text in the template will be highlighted when you click on the reference information.

If a template was used and you've clicked on information in that template, then the Plantilla icon (puzzle piece) will appear. Click on that icon to edit the content of the template in the template mini-editor dialog.

VisualEditor - Editing References - Cite Web.png
If, instead of the "Bàsic" icon (bookmark), what appears when you click on a reference is an icon for a standard template for citations, then clicking on that icon will take you directly to the template mini-editor dialog.

VisualEditor - Editing references 5.png
Inside the template mini-editor, you can add or remove types of information or change current content. Only fields (template parameters) that have content are supposed to be shown initially. To add fields, click on "Afegeix més informació" at the bottom of the mini-editor.

VisualEditor Apply Changes-ca.png
Click on "Desa els canvis" when you're done.

Re-using an existing reference

VisualEditor Cite menu re-use.png
Si la pàgina ja conté referències, pots reutilitzar una de ja existent, si serveix per documentar el text.

Per reutilitzar una referència existent, col·loca el cursor on vols afegir-la en el text, i fes clic a la icona "Referència" de la barra d'eines.

VisualEditor - Editing references 18.png
In the Referència 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 (labeled "Cerca a les referències actuals") to list only those references that include certain text.

Adding a new reference

VisualEditor references more.png
To add a citation using the "Referència" menu, place your cursor where you want to add it in the text. Then select the appropriate citation type in the menu.

Using the "Basic" citation

VisualEditor - Editing references 20.png
En l'editor de referències, pots afegir, editar i donar format a la teva citació.

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 "Llista de referències" tool.)

VisualEditor Template Insert Menu-ca.png
Si estàs afegint una nova referència i hi vols incloure una plantilla, fes clic a la icona Inclusió (la peça de trencaclosques) de la barra d'eines de l'editor de referències.

VisualEditor - Editing references 9.png
Then, look for the template you want to use, add it and edit it as you would any other template. (See the Editing templates section, below, if you need more information about templates.)

After you're done editing your new template, click on "Desa els canvis" to return to the Reference editor, and "Desa els canvis" again to return to the page you're editing.

VisualEditor References List Insert Menu-ca.png
Si encara no hi ha una llista de referències a la pàgina (per exemple, si has afegit la primera referència de la pàgina), has d'afegir aquesta llista per tal que aparegui el text de la teva referència.

Place the cursor where you want to display the references list (usually at the bottom of the page), open the "Insereix" menu and click the "Llista de referències" icon (three books).

VisualEditor references list-en.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 here.

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

Using standard cite templates

VisualEditor - Editing References - Cite Pulldown.png
Your local wiki may have added extra citation templates to this menu. This offers quick access to the most-used citation templates. (Instructions for adding extra citation templates to your local wiki are available at VisualEditor/Citation tool.)

VisualEditor - Editing references - Cite book required fields.png
Clicking on a template icon such as "Cite book" will take you into the template mini-editor for that template. Important information fields may be marked with an asterisk. While the most common fields will be shown, not all of them are required.

VisualEditor - Editing references - Add parameter.png
To add more parameters, scroll down in the template mini-editor and click on the "Afegeix més informació" option.

Click on "Insereix" when you're done.

Editing images and other media files

Editing images

Per afegir una nova imatge (o un altre arxiu de mitjans) a la pàgina, pitja a la icona "Mitjans" (una imatge de muntanyes) a la barra d'eines.
VisualEditor Media Insert Menu-ca.png

Clicking the "Fitxer multimèdia" icon opens a dialog that automatically searches Wikimedia Commons and your local wiki for media files related to the title of the page you're editing.

Podeu buscar altres fitxers multimèdia canviant el text al diàleg de cerca.

Cliqueu una miniatura per a escollir un fitxer.

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.
VisualEditor - Media editing 6.png

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

You can also set various parameters for the image in the "Configuració avançada" window. These include the alignment, the type, and size of the image.
VisualEditor - Media editing 8.png

Quan hàgiu acabat, cliqueu "Aplica els canvis" per a tancar el diàleg i tornar a la pàgina d'edició.
VisualEditor Apply Changes-ca.png

For an existing image, you can add or edit a caption or other settings by clicking on the image, then clicking on the "Fitxer multimèdia" icon 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 the bottom left).

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

VisualEditor - Media editing 3.png

Editing media galleries

To edit an existing gallery in VisualEditor, click that gallery. Then, near the bottom of the gallery, click the gallery icon (a set of photos). This brings up the gallery editor, with the full list of images included in the gallery.
VisualEditor - Gallery2.png
The gallery editor is currently a simple box that allows you to edit existing galleries using wikitext markup. To add a new image to an existing gallery, type the file name, followed by a bar (|) and the caption for that image. You must put each image in the gallery on its own line. You can also edit this list to remove or rearrange images or to change captions.

When you click the "Fet" 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.

VisualEditor - Gallery3.png

Editing templates

To add a new template to the page, place your cursor where you want the template to be inserted, and click on the "Plantilla" icon (puzzle piece) in the "Insereix" menu.
VisualEditor Template Insert Menu-ca.png

Type the name of the template you want to insert. When you see it on the list, click on its name. Then click "Afegeix la plantilla".
VisualEditor - Template editing 4.png

You can also edit templates that are already on the page by selecting them (they turn blue), and clicking on the "Plantilla" icon (puzzle piece) that appears.
VisualEditor - Template editing 1.png

Adding a new template or opening an existing one opens the "Inclusió" dialog. If the template has been updated to contain TemplateData information, then the dialog will show a list of individual parameters; otherwise, a link to the documentation will be available in the dialog.

If the template does not use named parameters, then use numbers as the name for each nameless parameter. The first un-named parameter is named 1, the second is named 2, and so forth.

VisualEditor - Template editing 2.png

For an existing template, you edit the parameters already listed, and you can add additional parameters by clicking "Afegeix més informació", at the very bottom of the dialog.
VisualEditor - Template editing 3.png

Quan una plantilla inclou altres plantilles, aquestes sub-plantilles apareixen com a paràmetres. Es poden editar o eliminar fent clic al nom de la sub-plantilla.

Per afegir noves sub-plantilles, has de seguir els mateixos passos que per afegir un paràmetre. Si us plau, consulta la documentació de les plantilles per estar segur que la funcionalitat de les sub-plantilles està suportada.

VisualEditor - Template editing 5.png

Quan hàgiu acabat, cliqueu "Aplica els canvis" per a tancar el diàleg i tornar a la pàgina d'edició.
VisualEditor Apply Changes-ca.png

Substituting templates

Quan s'hagi de substituir una plantilla, escriu subst: (inclosos els dos punts) abans del nom de la plantilla.

La funcionalitat d'autocompletar no funciona amb subst:; si necessites usar la funcionalitat d'autocompletar, afegeix subst: només després de trobar la plantilla que estaves buscant.

Then, click the green "Afegeix la plantilla" button.

VisualEditor - Template editing 7.png

Add any parameters as usual and "Desa els canvis".
VisualEditor - Template editing 6.png

En aquesta fase inicial, encara no veuràs el contingut de la plantilla inclòs a la pàgina.
VisualEditor - Template editing 8.png

Editing lists

VisualEditor Toolbar Lists and indentation-ca.png
You can use 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.

VisualEditor lists 1 unordered bullet.png
VisualEditor lists 2 ordered numbered.png
Shown here are examples of the two types of lists: unordered (bullet) and ordered (numbered).

VisualEditor lists 3 select to indent.png
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.

VisualEditor lists 4 indentation menu.png
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)

VisualEditor lists after indenting.png
Here is the result of increased indentation.

VisualEditor lists mixed.png
You can even mix ordered (numbered) and unordered (bullet) lists, if the list items have different indentations.

Editing tables

You can use VisualEditor to insert and change tables.

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

VisualEditor table editing add and remove columns.png
You can add or delete a column or a row.

To add contents to an empty cell, or to change existing contents, double-click inside that cell.

Editing categories

VisualEditor category item-ca.png
To edit categories, on the "Opcions de la pàgina" menu, click the "Categories" item.

VisualEditor category editing-ca.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 "George Washington" is "Washington, George". In the category "Presidents of the United States", the article is listed under the letter "W", not the letter "G".

VisualEditor - Category editing 3.png
To add a category for a page, type the name of the category into the field "Afegeix una categoria". As you type, 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 save all your editing changes.)

VisualEditor - Category editing 2.png
To remove an existing category, click on it and click on the "Elimina" 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 Apply Changes-ca.png
Click "Desa els canvis" when you're done editing categories to return to the page editor.

Editing page settings

VisualEditor page settings item-ca.png
To edit a page's settings, click to open the "Opcions de la pàgina" menu, in the toolbar, and select the "Configuració de la pàgina" button.

VisualEditor Page Settings-ca.png
The "Configuració de la pàgina" button opens a dialog that shows several options.

VisualEditor Page Settings Redirects-ca.png
You can make a page a redirect to another page by checking the "Redirigeix aquesta pàgina" 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're editing.

At the bottom is the option to prevent page renames from updating this redirect. This is very rarely used.

VisualEditor Page Settings TOC-ca.png
You can change whether the page shows a Table of Contents by selecting one of these three buttons. The default option is "Quan sigui necessari", which shows a Table of Contents if there are three or more headings.

VisualEditor Page Settings Edit Links-ca.png
You can make a page not show edit links next to each section header by checking this checkbox.

VisualEditor Apply Changes-ca.png
Click "Desa els canvis" when you're done editing the Opcions de la pàgina to return to the page editor.

Editing mathematical formulae

To add a new mathematical formula to the page, place your cursor where you want it to be inserted, and click on the "Fórmula" icon ("Σ") in the "Insereix" menu on the toolbar.
VisualEditor Formula Insert Menu-ca.png

A window will open in which you can type the formula, using LaTeX syntax. 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 "Fet" button.
VisualEditor formula-ca.png

To edit an existing mathematical formula on the page, click on it and then click on the "Σ" icon that appears. This will open up the formula window, where you make changes.
VisualEditor - editing existing mathematical formula.png

Editing poems and other special items

Some items, such as association lists, poems, and musical scores, are not yet fully supported by VisualEditor. In most cases, the existing items can be edited, but new ones cannot be inserted in VisualEditor. Until they are fully supported, you can copy an existing one from another page, or edit the source wikitext directly.

You can not add an automatic signature or datestamp to a page in VisualEditor.

Keyboard shortcuts

Many editors are used to entering wikitext directly, especially bold, italics and wikilinks. Keyboard shortcuts allow to quickly insert similar formatting without having to use toolbar items. Here are the common general shortcuts in VisualEditor:

Drecera de PC Acció Drecera de Mac

 Ctrl+B Negreta  Cmd+B

 Ctrl+I Cursiva  Cmd+I

 Ctrl+K Afegeix enllaç  Cmd+K

 Ctrl+X Retalla  Cmd+X

 Ctrl+C Copia  Cmd+C

 Ctrl+V Enganxa  Cmd+V

 Ctrl+Z Desfés  Cmd+Z