Help:Editing: Difference between revisions

From miki
Jump to navigation Jump to search
Line 84: Line 84:
|{{Hl2}} |'''You get'''
|{{Hl2}} |'''You get'''
|-
|-
|[http://www.w3schools.com/tags/tag_FONT.asp <tt>font</tt>] tag
|Font color
|<tt><nowiki>You can use <font color="red">colors</font></nowiki></tt>
|<tt><nowiki>Change the <font color="red">font color</font></nowiki></tt><br/>
|You can use <font color="red">colors</font>
<tt><nowiki>Change the <font size="3">font size</font></nowiki></tt><br/>
<tt><nowiki>Change the <font face="verdana">font face</font></nowiki></tt>
|Change the <font color="red">font color</font><br/>
Change the <font size="3">font size</font><br/>
Change the <font face="verdana">font face</font>
|}
|}



Revision as of 09:42, 1 October 2009

External Links

MediaWiki

MediaWiki - Meta

Help Contents
Editing
Advanced editing | Editing FAQ | Edit toolbar | Export | Import | Shortcuts
Style & formatting
Wikitext examples | Reference card | HTML in wikitext | List | Table | Sorting | CSS

From Wikipedia

Hint and Tips

Use <div style="padding-left:...;"> to indend easily a pre, source or blockquote block:
* Look at my indented block:
<div style="padding-left:2em;"><pre>
Some PRE text
  ... some more ...
Let's finish here
</pre></div>
  • Look at my indented block:
Some PRE text
  ... some more ...
Let's finish here

Frequently Used

Description You type You get
anywhere
Arrows entities

&rArr; &lArr; &dArr; &uArr; &hArr; &rarr; &darr; &uarr; &larr; &harr;

⇒ ⇐ ⇓ ⇑ ⇔ → ↓ ↑ ← ↔

Space

&nbsp;

 

only at the beginning of the line
Definition list

;Definition
:item 1
:item 2

Definition
item 1
item 2

HTML Tags

Description You type You get
font tag Change the <font color="red">font color</font>

Change the <font size="3">font size</font>
Change the <font face="verdana">font face</font>

Change the font color

Change the font size
Change the font face

Tables

Basic syntax for table is

{| [opt-table-attr] 
|- [opt-line-attr]
|[opt-cell-attr |]Orange
|[opt-cell-attr |]Apple
|- [opt-line-attr
|[opt-cell-attr |]
|[opt-cell-attr |]Pie
|- [opt-line-attr
|[opt-cell-attr |]Butter |[opt-cell-attr]| Ice cream 
|}
Table can be easily formatted using templates like:
{| {{Prettytable}}
|-
|{{Hl2}}|First
|Second
|-
|Third
|{{Hl2}}|Fourth
|}
First Second
Third Fourth
Or better yet, using CSS (eg. see MediaWiki:Common.css) class wikitable
{| class="wikitable"
|-
!First
|Second
|-
|Third
!Fourth
|}
First Second
Third Fourth
Cell content can be formatted for each cell individually or for all cells on a same row
{| class="wikitable"
|-
!Very long header
!Very long header
!Very long header
|-
|align="left"|left
|align="center"|center
|align="right"|right
|- align="center"
|center
|center
|center
|}
|}
Very long header Very long header Very long header
left center right
center center center