ਵਿਕੀਪੀਡੀਆ:Manual of Style/Accessibility
ਵਿਕੀਪੀਡੀਆ:WikiProject Accessibility/Navigation menu Web accessibility is the goal of making web pages easier to navigate and read. While this is primarily intended to assist those with disabilities, it can be helpful to all readers. We aim to adhere to WCAG guidelines 2.0 (a.k.a. ISO/IEC 40500:2012) on which the following suggestions are based. Articles adhering to them are easier to read and edit for everyone. The WMF's Non discrimination policy... "is approved by the Wikimedia Foundation Board of Trustees to apply to all Wikimedia projects. It may not be circumvented, eroded, or ignored by local policies". and says: "The Wikimedia Foundation prohibits discrimination against current or prospective users... on the basis of... disability". Article structureA standardized structure of articles improves accessibility, because it enables users to expect contents to be in a specific part of the page. For example, a blind user is searching for disambiguation links. If he doesn't find any at the top of the page, he will know that there aren't any and he doesn't have to read the whole page to find that out. Standardization is already a habit on Wikipedia, thus the guidelines to follow are simply Wikipedia:Manual of Style/Layout and Wikipedia:Lead section#Elements of the lead. HeadingsHeadings should be descriptive and in a consistent order (See also—References—Further reading—External links). Headings should be nested sequentially, starting with level 2 ( Do not make pseudo-headings using semicolon markup and try to avoid using bold markup. Screen readers and other machines can only use correctly formatted headings for navigation. If you want to reduce the size of the table of contents (TOC), use {{TOC limit}} instead. In cases where {{TOC limit}} cannot be used because of lower-level headings elsewhere in the article, then using bold for the headings causes the least annoyance for screen reader users.
Floating elementsIn the wikicode, floating elements should be placed inside the section they belong to. For example, an image may be displayed under a header due to other floating elements pushing it down, while in the wikisyntax it is placed at the top of the page. Images should be inserted inside the section they belong to. ResolutionWikipedia articles should be accessible to readers using devices with small screens, or to readers using monitors with a low resolution. The lowest resolution that it is considered possible to support without adversely affecting other users is 1024×768; all articles should look acceptable at this resolution without excessive horizontal scrolling. This is sometimes an issue in articles with multiple images on both sides of the screen; although lower resolutions will tend to stretch paragraphs vertically, moving images apart in that direction, be careful not to add images or other floating content on both sides of the screen simultaneously. Large tables and images can also create problems; sometimes horizontal scrolling is unavoidable, but consider restructuring wide tables to extend vertically rather than horizontally. TextIn articles, do not use strikethrough to remove objectionable text. Either comment it out with "<!--" and "-->" or remove it entirely. By default, most screen readers do not indicate presentational text attributes (bold, italic, underline) or even semantic text attributes (emphasis, importance, text deletion), so struck-out text is read normally along with any other text. (Editors who participate in Wikipedia policy and deletion debates are advised to turn on the sounding of text attributes when doing so, as struck text is very common in Wikipedia-internal discussions.) Screen readers without Unicode support will generally read a character outside Latin-1 and Windows-1252 as a question mark, and even in JAWS, the most popular screen reader, Unicode characters are very difficult to read.
Do not use techniques that require interaction to provide information, such as tooltips or any other "hover" text. Abbreviations are exempt from these requirements, so the {{abbr}} template may be used to indicate the long form of a word. Do not insert line breaks within a sentence, since this makes it harder to edit with a screen reader. A single line break may follow a sentence, which may help some editors. The use of reduced font sizes should be used sparingly. Avoid using smaller font sizes in elements that already use a smaller font size, such as infoboxes, navboxes and reference sections. In no case should the resulting font size drop below 85% of the page fontsize (or 11px). Other languagesNon-English words or phrases should be encased in {{lang}}, which uses ISO 639 language codes, thus:
which renders as Assemblée nationale. Rationale: Links
ColorScript error: The function "seealso" does not exist. ![]() Colors are most commonly found in Wikipedia articles within templates and tables. For technical assistance on how colors are used, see Help:Using colours. Articles (and other pages) that use color should keep accessibility in mind, as follows:
Block elementsListsDo not separate list items, including items in a description list (a list made with leading semicolons and colons) or an unordered list, by leaving blank lines or tabular column breaks between them, since this causes MediaWiki to end one list and start a new one. This results in screen readers announcing multiple lists when only one was intended. Lists are meant to group elements that belong together, and breaking these groups will mislead and confuse a screen-reader user. Improper formatting can also more than triple the length of time it takes to read the list. Likewise, do not switch between list marker types (e.g. asterisks and colons), unless embedding lists starting at the highest level. IndentationColons at the start of a line indent the line. This is used, for example, to indicate replies in a threaded discussion on Talk pages. This indentation is achieved by using HTML definition lists. This is not ideal for accessibility nor semantics, but is currently in wide practice. Blank lines should not be used between indented lines as they are currently rendered as the end of a list and the start of a new one. If a space is needed, insert an extra line consisting of the same number of colons. Vertical listsBulleted vertical listsFor bulleted vertical lists, do not separate items by leaving blank lines between them. If list items are separated by more than one line break, the HTML list will be ended before the line break, and another HTML list will be opened after the line break. This effectively breaks what is seen as one list into several smaller lists for those using screen readers. For example, for the coding: * White rose * Yellow rose * Pink rose * Red rose the software partially suppresses line spaces and therefore it looks like this:
but will be read by a screen reader as: "List of 2 items: (bullet) White rose, (bullet) Yellow rose, list end. List of 1 items: (bullet) Pink rose, list end. List of 1 items: (bullet) Red rose, list end." Do not separate list items with line breaks ( Unbulleted vertical listsFor unbulleted lists running down the page, the templates {{plainlist}} and {{unbulleted list}} are available, to improve accessibility and semantic meaningfulness by marking up what is clearly a list rather than including
In infoboxes:
may be used. See also Manual of Style: Lists § Unbulleted lists. See WP:NAV for more details on Navigation templates. Horizontal listsFor lists running across the page, and in single rows in infoboxes and other tables, the templates {{flatlist}} and {{hlist}} ("h[orizontal]list") are available to improve accessibility and semantic meaningfulness. This feature makes use of the correct HTML markup for each list item, rather than including bullet characters which, for example, are read out (e.g., "dot cat dot dog dot horse dot...") by the assistive software used by people who are blind. Alternatively, in templates such as Navboxes and the like, or any suitable container, such lists may be styled with the class "
In infoboxes:
may be used. See WP:NAV for more details on Navigation templates. TablesScreen readers and other web browsing tools make use of specific table tags to help users navigate the data contained within them. Use the correct wikitable pipe syntax to take advantage of all the features available. See meta:Help:Tables for more information on the special syntax used for tables. Do not solely use formatting, either from CSS or hard-coded styles, to create semantic meaning (e.g., changing background colour). Many navboxes, series templates, and infoboxes are made using tables. Avoid using Data tables{| |+ [caption text] |- ! scope="col" | [column header 1] ! scope="col" | [column header 2] ! scope="col" | [column header 3] |- ! scope="row" | [row header 1] | [normal cell 1,2] || [normal cell 1,3] |- ! scope="row" | [row header 2] | [normal cell 2,2] || [normal cell 2,3] ... |}
Wikipedia:Manual of Style/Accessibility/Data tables tutorial provides detailed requirements about:
Layout tablesAvoid using tables for layout purposes only. The best option is to use HTML's For simple layouts tables can be an option. Especially if the only point of the table is to get a floating effect, then However, to avoid accessibility barriers, when using tables for layout purposes do not use any caption, row, or column headers, and also no {| class="toccolours" style="width:94%" | style="text-align: center; background-color: #ccf;" | '''Title''' |- | [normal cell] || [normal cell] |- | [normal cell] || [normal cell] |} Images
Animations, videos and audioAnimationsTo be accessible, an animation (GIF – Graphics Interchange Format) should either:
This requires GIFs with animations longer than five seconds to be converted to video (to learn how, see the tutorial converting animated GIFs to Theora OGG). In addition, animations must not produce more than three flashes in any one-second period. Content that flashes more than that limit is known to cause seizures.[8] VideoSubtitles can be added to video, in Timed Text format. There is a corresponding help page at commons:Commons:Video#Subtitles and closed captioning. Subtitles are meant for the transcription of speech. There is a need for closed captions for the hearing impaired. As of November 2012 this is not possible, but this feature could be easily added and has been requested in bugzilla:41694. Closed captions are meant to be viewed instead of subtitles. Closed captions provide a text version of all important information provided through the sound. It can include dialogue, sounds (natural and artificial), the setting and background, the actions and expressions of people and animals, text or graphics.[9] Off-Wikipedia guides should be consulted for how to create closed captions.[10] A text version of the video would also be needed for the blind, but as of November 2012 there is no convenient way to provide alt text for videos. AudioSubtitles for speech, lyrics, dialogue, etc.[11] can easily be added to audio files. The method is similar to that of the video: commons:Commons:Video#Subtitles and closed captioning. Styles and markup optionsBest practice: Use Wikimarkup and CSS classes in preference to alternativesIn general, styles for tables and other block-level elements should be set using CSS classes, not with inline style attributes. The site-wide CSS in MediaWiki:Common.css is more carefully tested to ensure accessibility (e.g. sufficient color contrast) and compatibility with a wide range of browsers. Moreover, it allows users with very specific needs to change the color schemes in their own style sheet (Special:MyPage/skin.css, or their browser's style sheet). For example, a style sheet at Wikipedia:Style sheets for visually impaired users provides higher contrast backgrounds for navboxes. The problem is that when the default site-wide classes are overridden, it makes it far more difficult for an individual to choose his/her own theme. It also creates a greater degree of professionalism by ensuring a consistent appearance between articles and conformance to a style guide. Regarding accessibility, deviations from standard conventions may be tolerated so long as they are accessible. Members of the accessibility project have ensured that the default style is accessible. If some template or specific color scheme deviates from the standard, its authors should make sure that it meets accessibility requirements such as providing enough color contrast. For instance, the infoboxes and navigational templates relating to The Simpsons use a yellow colour-scheme, to tie in with the dominant colour in the series. In this case, blue links on yellow provides enough color contrast, thus it is accessible. In general, articles should use wikimarkup in preference to the limited set of allowed HTML elements. In particular, do not use the HTML style tags Users with limited CSS or JavaScript support
Wikipedia articles should be accessible to readers using browsers and devices that have limited or no support for JavaScript or Cascading Style Sheets. At the same time, it is recognised that it is impossible to provide the same quality of appearance to such users without unnecessarily avoiding features that would benefit users with more capable browsers. As such, features that would cause content to be hidden or corrupted when CSS or JavaScript is unavailable must not be used. This includes techniques such as the hiddenStructure method for hiding table content—which produces incomprehensible output without CSS—and some implementations of the NavFrame collapsing code—which can make content inaccessible without JavaScript support. However, consideration for users without CSS or JavaScript should extend mainly to making sure that their reading experience is possible; it is recognised that it will inevitably be inferior. To accommodate these considerations, test any potentially disruptive changes with JavaScript or CSS disabled. In Firefox or Chrome, this can be done easily with the Web Developer extension; JavaScript can be disabled in IE in the "Options" screen. Be particularly careful with inline CSS effects, which are not supported by several browsers, media, and XHTML versions. See also
ReferencesSpecific
General
Technical
External links |
Portal di Ensiklopedia Dunia