Unlike alt text, a caption can contain Wiki markup like '']''. If additional alt text is added, it should be a succinct description that complies with the content policies see WP:ALT for more information. Often the caption or article will describe the image adequately, and where this is the case you can write alt=caption or alt=see adjacent text. Some parts of the image syntax, such as the alt=, do not allow spaces or line breaks, and the easiest way to get it right is to omit unnecessary spaces and line breaks.Īlt text is intended for visually impaired readers. The [[ and the first | must be on the same line other spaces and line breaks are ignored if they are next to | characters or just inside the brackets. The above text gives the image file name "Wikipedesketch.png", the image type "thumb" and alignment "left", the alt text "A cartoon centipede reads books and types on a laptop.", and the caption "The Wikipede edits Myriapoda." A Wikipedia reader can click on the thumbnail, or on the small double-rectangle icon below it, to see the corresponding file page which will let the user see the image in its original size.Īlthough the above text may appear in multiple lines for formatting purposes, the actual image text is on one line, as it uses spaces without any line breaks. Just below the example you can see what the resulting picture looks like: However, our first example specifies left. Several options can affect a thumbnail's placement and size, described below.īy default a thumbnail is floated to the right of the page, with the text flowing around it. For guidance on the caption text to associate with images, see Wikipedia:Manual of Style/Captions. ( Image: can be substituted for File: with no change in effect the choice between the two is purely a matter of editorial preference.) Using thumb generates a thumbnail picture, typically sized differently from the original image. For instructions on editing with VisualEditor, see Wikipedia:VisualEditor/User guide.Īn existing English Wikipedia or Wikimedia Commons image can be inserted into a page with the basic wikitext: ]. The directions on this page, especially about what codes to type to produce formatting effects, are predominantly geared toward wikitext editing. If you have opted in, you can use either VisualEditor or classic editing through wiki markup (wikitext) to edit most pages. Instructions on this page may not work with VisualEditor. Thus, and for example, if File:Name.jpg does not work, try just Name.jpg. Also, be aware that some infoboxes require that the file's name be placed without the file/image namespace prefix. Adding such extraneous code will cause many infoboxes to break. Accordingly, you do not usually add the brackets, number of pixels, and other code details you will learn about below, when placing an image in infoboxes – just the file name next to a field labeled | image =. In very brief summary, one hurdle that trips up many people when attempting to add an image to an infobox template is that most internally provide the wiki code that "wraps" the image. For guidance on the syntax for doing this, see Help:Infobox picture. If an article already has an infobox at the top right, then the usual place for the article's first picture is within the infobox.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |