විකිපීඩියා:රචනාකරණ ශෛලිය පිළිබඳ මාර්ගෝපදේශ/වගු

විකිපීඩියා, නිදහස් විශ්වකෝෂය වෙතින්
වෙත පනින්න: සංචලනය, සොයන්න
This page discusses when and how tables should be used on Wikipedia. For technical guidance on how to use tables, see Help:Table.
✔ As part of the Manual of Style, this page is a guideline on Wikipedia. It is a generally accepted standard that all editors should follow. However, it is not set in stone and should be treated with common sense and the occasional exception. When editing this page, ensure that your revision reflects consensus. When in doubt, discuss first on the talk page.
කෙටි මග:
WP:TABLE
WP:TABLES

Tables are a way of presenting links, data or information in rows and columns. They can be useful for a variety of content presentations on Wikipedia, though should be used only when appropriate; sometimes the information in a table may be better presented as prose paragraphs or as an embedded list.

Avoid referring to tables as being on the left or right. Placement is different for viewers of the mobile version of Wikipedia, and is meaningless to people having pages read to them by assistive software. Instead, use captions to identify tables.

Formatting[සංස්කරණය]

It is recommended that wikitables be used in place of HTML tables, as they are easier to customize and maintain. A standard "wikitable style" is also available, by adding class="wikitable" to the top row of the table.

Tables can be made sortable by adding class="wikitable sortable" to the top row. Sortable tables cannot contain any merged cells using rowspan; extreme caution should be applied if colspan is used.

Captions and headings[සංස්කරණය]

Table captions and column/row headings should be succinct and self-explanatory. In most cases, individual words or sentence fragments should be used, and articles (a, an, the) are unnecessary. Only the first word in the caption or heading should be capitalized (except for proper nouns), in keeping with Wikipedia's conventions for capital letters.

Appearance[සංස්කරණය]

In general, styles for tables and other block-level elements should be set using CSS classes, not with inline style attributes. This is because the site-wide CSS is more carefully tested to ensure compatibility with a wide range of browsers; it also creates a greater degree of professionalism by ensuring a consistent appearance between articles. Deviations from standard conventions are acceptable where they create a semantic distinction (for instance, the infoboxes and navigational templates relating to The Simpsons use a yellow colour-scheme instead of the customary mauve, to tie in with the dominant colour in the series) but should not be used gratuitously.

See WP:Deviations and Wikipedia talk:Consensus/RfC for guidance on use of colouring or non-standard formatting, and for when MoS and WikiProjects guidance is at variance.

Consideration may be given to collapsing tables which consolidate information covered in the prose.

Accessibility[සංස්කරණය]

Screen 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.

Do not separate items by leaving blank lines between them, even when using unordered or definition lists.

Size[සංස්කරණය]

Splitting lists and tables per summary style is advised against.

Too much statistical data is against policy.

Appropriate[සංස්කරණය]

කෙටි මග:
WP:WHENTABLE

When tables are appropriate[සංස්කරණය]

Tables are a way of presenting links, data or information in rows and columns. They are a complex form of list. Tables might be used for presenting mathematical data such as multiplication tables, comparative figures, or sporting results. They might also be used for presenting equivalent words in two or more languages; for awards by type and year; complex discographies; etc.

Often a list is best left as a list. Before you format a list in table form, consider whether the information will be more clearly conveyed by virtue of having rows and columns. If so, then a table is probably a good choice. If there is no obvious benefit to having rows and columns, then a table is probably not the best choice.

Tables should not be used simply for layout, either. If the information you are editing is not tabular in nature, it probably does not belong in a table: Try not to use tables for putting a caption under a photograph, arranging a group of links, or other strictly visual features. It makes the article harder to edit for other Wikipedians. Also, when compared with tables, wikimarkup is more flexible, easier to use, and less esoteric when used for desktop publishing, page elements, and page orientation and positioning.

Examples:

When tables may not be appropriate[සංස්කරණය]

Simple lists

If a list is simple, it is generally better to use one of the standard Wikipedia list formats instead of a table. Lists are easier to maintain than tables, and are often easier to read.

Here is an example of a simple list using list formatting:

* 1980: Ultra Wave
* 1988: What's Bootsy Doin'?
* 1994: Blasters of the Universe
* 1994: Fresh Outta 'P' Uni

Which produces:

  • 1980: Ultra Wave
  • 1988: What's Bootsy Doin'?
  • 1994: Blasters of the Universe
  • 1994: Fresh Outta 'P' Uni

versus table formatting:

{|class="wikitable1"
|1980
|Ultra Wave
|-
|1988
|What's Bootsy Doin'?
|-
|1994
|Blasters of the Universe
|-
|1994
|Fresh Outta 'P' Uni
|}

Which produces:

1980 Ultra Wave
1988 What's Bootsy Doin'?
1994 Blasters of the Universe
1994 Fresh Outta 'P' Uni
Prose

Prose is preferred in articles as prose allows the presentation of detail and clarification of context, in a way that a table may not. Prose flows, like one person speaking to another, and is best suited to articles, because their purpose is to explain. Tables which are mainly links, which are most useful for browsing subject areas, should usually have their own entries: see Wikipedia:Stand-alone lists for detail. In an article, significant items should normally be mentioned naturally within the text rather than merely tabulated.

Page layout

Page layouts (using multiple columns, positioning elements, adding borders, etc.) should be done via CSS, not tables, whenever possible.

  • Images and other embedded media should be positioned using standard image syntax.
  • There are several templates available that will create preformatted multi-column layouts: see Help:Columns.
  • Other elements can be positioned or given special formatting through the use of the HTML <div> element and CSS styling.

See also[සංස්කරණය]

  1. 1.0 1.1 1.2 1.3 Turner, Chris. "World Professional Championship". cajt.pwp.blueyonder.co.uk. Chris Turner's Snooker Archive. http://www.cajt.pwp.blueyonder.co.uk/world.html. සම්ප්‍රවේශය කෙරුණු දිනය 18 March 2011. 
  2. 2.0 2.1 Turner, Chris. "International Open Goya, Matchroom Trophy". cajt.pwp.blueyonder.co.uk. Chris Turner's Snooker Archive. http://www.cajt.pwp.blueyonder.co.uk/int.html. සම්ප්‍රවේශය කෙරුණු දිනය 18 March 2011. 
  3. Turner, Chris. "Classic". cajt.pwp.blueyonder.co.uk. Chris Turner's Snooker Archive. http://www.cajt.pwp.blueyonder.co.uk/classic.html. සම්ප්‍රවේශය කෙරුණු දිනය 18 March 2011. 
  4. 4.0 4.1 Turner, Chris. "UK Championship". cajt.pwp.blueyonder.co.uk. Chris Turner's Snooker Archive. http://www.cajt.pwp.blueyonder.co.uk/uk.html. සම්ප්‍රවේශය කෙරුණු දිනය 18 March 2011. 
  5. උපන්‍යාස දෝෂය: අනීතික <ref> ටැගය; Turner_GP නමැති ආශ්‍රේයන් සඳහා කිසිදු පෙළක් සපයා නොතිබුණි
  6. උපන්‍යාස දෝෂය: අනීතික <ref> ටැගය; US නමැති ආශ්‍රේයන් සඳහා කිසිදු පෙළක් සපයා නොතිබුණි
  7. උපන්‍යාස දෝෂය: අනීතික <ref> ටැගය; AUS නමැති ආශ්‍රේයන් සඳහා කිසිදු පෙළක් සපයා නොතිබුණි
  8. උපන්‍යාස දෝෂය: අනීතික <ref> ටැගය; AUT නමැති ආශ්‍රේයන් සඳහා කිසිදු පෙළක් සපයා නොතිබුණි
  9. උපන්‍යාස දෝෂය: අනීතික <ref> ටැගය; GER නමැති ආශ්‍රේයන් සඳහා කිසිදු පෙළක් සපයා නොතිබුණි
  10. උපන්‍යාස දෝෂය: අනීතික <ref> ටැගය; NLDA නමැති ආශ්‍රේයන් සඳහා කිසිදු පෙළක් සපයා නොතිබුණි
  11. උපන්‍යාස දෝෂය: අනීතික <ref> ටැගය; NOR නමැති ආශ්‍රේයන් සඳහා කිසිදු පෙළක් සපයා නොතිබුණි
  12. උපන්‍යාස දෝෂය: අනීතික <ref> ටැගය; SWE නමැති ආශ්‍රේයන් සඳහා කිසිදු පෙළක් සපයා නොතිබුණි
  13. උපන්‍යාස දෝෂය: අනීතික <ref> ටැගය; SWIA නමැති ආශ්‍රේයන් සඳහා කිසිදු පෙළක් සපයා නොතිබුණි
  14. උපන්‍යාස දෝෂය: අනීතික <ref> ටැගය; UK නමැති ආශ්‍රේයන් සඳහා කිසිදු පෙළක් සපයා නොතිබුණි
  15. උපන්‍යාස දෝෂය: අනීතික <ref> ටැගය; CRIA නමැති ආශ්‍රේයන් සඳහා කිසිදු පෙළක් සපයා නොතිබුණි
  16. උපන්‍යාස දෝෂය: අනීතික <ref> ටැගය; RIAA නමැති ආශ්‍රේයන් සඳහා කිසිදු පෙළක් සපයා නොතිබුණි
  17. උපන්‍යාස දෝෂය: අනීතික <ref> ටැගය; SWI_C නමැති ආශ්‍රේයන් සඳහා කිසිදු පෙළක් සපයා නොතිබුණි
  18. උපන්‍යාස දෝෂය: අනීතික <ref> ටැගය; BPI නමැති ආශ්‍රේයන් සඳහා කිසිදු පෙළක් සපයා නොතිබුණි
  19. "Top Albums/CDs – Volume 58, No. 25". RPM (Library and Archives Canada). January 10, 1994. http://www.collectionscanada.gc.ca/rpm/028020-119.01-e.php?&file_num=nlc008388.2353&type=1&interval=20&PHPSESSID=1eslr84up6jai4j6cngk0p4cu2. සම්ප්‍රවේශය කෙරුණු දිනය August 15, 2010. 
  20. "IFPI Platinum Europe Awards: 2002 Awards". International Federation of the Phonographic Industry (IFPI) – Europe. http://www.ifpi.org/content/section_news/plat2002.html. සම්ප්‍රවේශය කෙරුණු දිනය August 15, 2010.