background preloader

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). 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. Syntax[edit] Selector[edit] Use[edit] HTML element. In the HTML syntax, most elements are written with a start tag and an end tag, with the content in between. 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 <p>In the HTML syntax, most elements are written ...

</p> However, not all of these elements require the end tag, or even the start tag, to be present. Some elements, the so-called void elements, do not have an end tag. <p>P. When using an XHTML DTD, it is required to open and close the element with a single tag. <p>P. HTML attributes are specified inside the start tag. <abbr title="abbreviation">abbr. Concepts[edit] Document vs. HTML documents are delivered as "documents".

Presentation by the web browser, such as screen rendering or access by JavaScript, is then performed on this internal model, not the original document. HTML element. In the HTML syntax, most elements are written with a start tag and an end tag, with the content in between. 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 <p>In the HTML syntax, most elements are written ... </p> However, not all of these elements require the end tag, or even the start tag, to be present. <p>P. When using an XHTML DTD, it is required to open and close the element with a single tag. <p>P. HTML attributes are specified inside the start tag. <abbr title="abbreviation">abbr. Concepts[edit] Document vs. HTML documents are delivered as "documents". Presentation by the web browser, such as screen rendering or access by JavaScript, is then performed on this internal model, not the original document.

Elements vs. tags[edit] <p>Para 1 <p>Para 2 <p>Para 3 SGML vs. <html>... 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. 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] Purpose of an infobox[edit] When considering any aspect of infobox design, keep in mind the purpose of an infobox: to summarize key facts that appear in the article. Overall approach[edit] Style, color and formatting[edit] See MOS:FLAG. [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. 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. Elements[edit] <! Help:Cascading style sheets. Cascading Style Sheets allow for flexible formatting of a page. 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: Author style sheets, in this order: Note: See WP:CLASS for a list of all the style sheets loaded. User style sheet: Web-wide, user-specific: local file, referred to in the browser settings, or directly set in the browser A HTML element may be just taken from the wikitext (see HTML in wikitext), e.g. span, or the result of translating wikitext, e.g. the ''' code is changed into <b>, or part of the code for the skin. Supported elements[edit] CSS in wikitext[edit] etc. Advanced editing. For the basics see Help: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] More information at Help:Link. Internal links[edit] General notes: Enclose the target name in double square brackets — "[[" and "]]".First letter of target name is automatically capitalized.Spaces are represented as underscores (but don't do underscores yourself).Links to nonexistent pages are shown in red — Help:Starting a new page tells about creating the page.When the mouse cursor "hovers" over the link, you see a "hover box" containing... hover over links hereafter to see. External links[edit] By default, external links do not open in a new browser window. Special characters[edit] Help contents Reading. Wiki color formatting help. Set text color by using <span style="color:#FF0000"> This text will be red </span> Set background color by using <span style="background:#00C000"> This text will be on a green background </span> Set both by using <span style="color:#FFFF00; background:#00C000"> This text will be yellow and on a green background </span> Related Links[edit] RGBHexCode ColourPicker See also[edit]

Cheatsheet. From Wikipedia, the free encyclopedia See also Wiki markup quick reference (PDF download) For a full list of editing commands, see Wiki markupTo experiment with editing, use the sandboxFor a guide to editing, see How to edit a pageFor a PDF, printable cheatsheet, see m:WMDOC/CheatsheetFor a pre-formatted collapsible cheatsheet with the most commonly used templates, see Template:QuicktemplatesFor more quick introductions, see Category:Wikipedia quick introductionsFor a guide to editing and displaying mathematical equations and formulas, see Displaying a formula.

Manual of Style. The Manual of Style (often abbreviated MoS or MOS) is a style guide for all Wikipedia articles. 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. Style and formatting should be consistent within an article, though not necessarily throughout Wikipedia. Discuss style issues on the MoS talk page. Article titles, headings, and sections[edit] Article titles[edit] When determining the title of an article, refer to the Article titles policy. For guidance on formatting titles, see the Article title format section of the policy. Section organization[edit] Section headings [edit] ==Evolutionary implications<! ==Evolutionary implications==<! <!

Table. This page gives you information about syntax to build wiki-tables in MediaWiki. 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. By default, it includes the following text: Pipe syntax tutorial[edit] Although HTML table syntax also works, special MediaWiki code can be used as a shortcut to create a table. The entire table is encased with curly brackets and a vertical bar character (a pipe). {| table code goes here|} An optional table caption is included with a line starting with a vertical bar and plus sign "|+" and the caption after it: {| |+ caption table code goes here |} which is probably not what you want: Examples[edit]