WikiEditHelp

Facebook Twitter

Cascading Style Sheets. CSS is designed primarily to enable the separation of document content from document presentation, including elements such as the layout, colors, and fonts.[1] This separation can improve content accessibility, provide more flexibility and control in the specification of presentation characteristics, enable multiple pages to share formatting, and reduce complexity and repetition in the structural content (such as by allowing for tableless web design).

Cascading Style Sheets

CSS can also allow the same markup page to be presented in different styles for different rendering methods, such as on-screen, in print, by voice (when read out by a speech-based browser or screen reader) and on Braille-based, tactile devices. It can also be used to allow the web page to display differently depending on the screen size or device on which it is being viewed. CSS specifies a priority scheme to determine which style rules apply if more than one rule matches against a particular element. HTML element. HTML element. In the HTML syntax, most elements are written with a start tag and an end tag, with the content in between.

HTML element

An HTML tag is composed of the name of the element, surrounded by angle brackets. An end tag also has a slash after the opening angle bracket, to distinguish it from the start tag. For example, a paragraph, which is represented by the p element, would be written as. Manual of Style (infoboxes) An infobox template is a panel, usually in the top right of an article, next to the lead section, (in the desktop view) or at the very top of an article (in mobile view), that summarizes key features of the page's subject.

Manual of Style (infoboxes)

Infoboxes may also include an image, and/ or a map. Infoboxes generally use the template software feature. (It is possible to hand-code an infobox using table markup, but this loses the advantages of standardisation and reusability.) The templates have parameters; to work properly, the parameter values have to be specified when the template is inserted in the page. This allows each infobox to show information relevant to the article subject, while requiring only a minimal amount of coding within each article. Design principles[edit] Help:HTML in wikitext. The MediaWiki software allows use of a subset of HTML5 markup elements or tags and their attributes for presentation formatting.[1] Many HTML tags may also be included by equivalent wiki markup or templates which are simpler for most editors and less intrusive in the editing window.

Help:HTML in wikitext

In normal practice, wiki markup or templates are preferred within articles, but HTML is quite useful for formatting within templates. Tutorials[edit] This help page gives only an overview of allowed markup. For further assistance and detailed specifications: HTML5 Introduction at w3schools.com Attributes[edit] HTML attributes provide additional information about an element and are always specified in the start tag. Global attributes apply to all tags. Class: one or more classifications to which the element belongs.

HTML5 microdata attributes apply to all tags:[2] Any attribute beginning with data-itemiditempropitemrefitemscopeitemtype The MediaWiki Sanitizer.php does some cleanup on attributes. Help:Cascading style sheets. Cascading Style Sheets allow for flexible formatting of a page.

Help:Cascading style sheets

They should be used instead of tables for non-tabular content whenever possible, because they can be manipulated by the reader or overridden by an author if your CSS is embedded in another page via a template. Levels of CSS settings[edit] Style may be specified specifically for a piece of content, see e.g. color; scope of parameters Alternatively, style is specified for CSS selectors, expressed in terms of elements, classes and id's. This is done on various levels: Advanced editing. For the basics see Help:Editing.

Advanced editing

Wikitext markup — making your page look the way you want[edit] If you want to try out things without danger of doing any harm, you can do so in the Meta:Sandbox.More information on HTML tags in wikitext. Organizing your writing — sections, paragraphs, lists and lines[edit] Links, URL[edit] Wiki color formatting help. Cheatsheet. From Wikipedia, the free encyclopedia See also Wiki markup quick reference (PDF download)

Cheatsheet

Manual of Style. The Manual of Style (often abbreviated MoS or MOS) is a style guide for all Wikipedia articles.

Manual of Style

This is its main page, covering certain topics (such as punctuation) in full, and presenting the key points of others. Subpages, linked via this page's menu and listed at Wikipedia:Manual of Style/Contents, provide detailed guidance on some topics. The Manual of Style documents Wikipedia's house style. It helps editors write articles with consistent, clear, and precise language, layout, and formatting. The goal is to make using Wikipedia easier and more intuitive. Table. This page gives you information about syntax to build wiki-tables in MediaWiki.

Table

Spreadsheet to wiki table format[edit] To convert from spreadsheets such as Gnumeric, MS Excel or OpenOffice.org Calc, see (Obsolete?) Using the toolbar[edit] You can use the Mediawiki edit toolbar to create tables on Wikipedia, and some Wikimedia projects. It is helpful to generate the necessary codings. Use the first button on the right of the toolbar to insert a table when editing a page.