Přehled formátování: Porovnání verzí
(New page: == Formátování textu == {| align="center" border="1" cellpadding="20" cellspacing="0" {{Prettytable}} |- | |'''Description''' | |'''You type''' | |'''You get''' |- | colspan="3" alig...) |
|||
Řádek 1: | Řádek 1: | ||
== Formátování textu == | == Formátování textu == | ||
− | {| align="center" border="1" cellpadding="20" cellspacing="0" | + | {| align="center" border="1" cellpadding="20" cellspacing="0" |
|- | |- | ||
− | | |''' | + | | |'''Popis''' |
− | | |''' | + | | |'''Napíšeš''' |
− | | |''' | + | | |'''Dostaneš''' |
|- | |- | ||
| colspan="3" align="center" | ''applies anywhere'' | | colspan="3" align="center" | ''applies anywhere'' | ||
Řádek 108: | Řádek 108: | ||
− | == | + | == Odstavce == |
− | Mediawiki | + | Mediawiki ignoruje normální konce řádků. Pro začátek nového odstavce vynechejte prázdný řádek ve zdrojovém textu. Nový řádek také můžete začít pomocí HTML tagu <tt><nowiki><br /></nowiki></tt>. |
== HTML == | == HTML == | ||
− | + | V MediaWiki jsou dovoleny některé HTML tagy. Např.:<tt><nowiki><code></nowiki></tt>, <tt><nowiki><div></nowiki></tt>, <tt><nowiki><span></nowiki></tt> and <tt><nowiki><font></nowiki></tt>. | |
− | |||
== Odkazy == | == Odkazy == | ||
− | {| | + | {|align="center" border="1" cellpadding="20" cellspacing="0" |
|- | |- | ||
− | | | + | | |'''Popis''' |
− | | | + | | |'''Napíšeš''' |
− | | | + | | |'''Dostaneš''' |
|- | |- | ||
|Internal link | |Internal link | ||
Řádek 176: | Řádek 175: | ||
|} | |} | ||
− | == | + | == Tabulky == |
− | {{ | + | |
+ | ====align="right" border="1"==== | ||
+ | You can put attributes on individual '''cells.''' Numbers for example may look better aligned right | ||
+ | {| width="100%" | ||
+ | |width="50%"| | ||
+ | {| border="1" | ||
+ | |Orange | ||
+ | |Apple | ||
+ | |align="right"|12,333.00 | ||
+ | |- | ||
+ | |Bread | ||
+ | |Pie | ||
+ | |align="right"|500.00 | ||
+ | |- | ||
+ | |Butter | ||
+ | |Ice cream | ||
+ | |align="right"|1.00 | ||
+ | |} | ||
+ | |width="50%"| | ||
+ | <pre> | ||
+ | {| border="1" | ||
+ | |Orange | ||
+ | |Apple | ||
+ | |align="right"|12,333.00 | ||
+ | |- | ||
+ | |Bread | ||
+ | |Pie | ||
+ | |align="right"|500.00 | ||
+ | |- | ||
+ | |Butter | ||
+ | |Ice cream | ||
+ | |align="right"|1.00 | ||
+ | |} | ||
+ | </pre> | ||
+ | |} | ||
+ | |||
+ | |||
+ | You can put attributes on individual '''rows,''' too. | ||
+ | {| width="100%" | ||
+ | |width="50%"| | ||
+ | {| border="1" | ||
+ | |Orange | ||
+ | |Apple | ||
+ | |align="right"|12,333.00 | ||
+ | |- | ||
+ | |Bread | ||
+ | |Pie | ||
+ | |align="right"|500.00 | ||
+ | |- style="font-style:italic;color:green;" | ||
+ | |Butter | ||
+ | |Ice cream | ||
+ | |align="right"|1.00 | ||
+ | |} | ||
+ | |width="50%"| | ||
+ | <pre> | ||
+ | {| border="1" | ||
+ | |Orange | ||
+ | |Apple | ||
+ | |align="right"|12,333.00 | ||
+ | |- | ||
+ | |Bread | ||
+ | |Pie | ||
+ | |align="right"|500.00 | ||
+ | |- style="font-style:italic;color:green;" | ||
+ | |Butter | ||
+ | |Ice cream | ||
+ | |align="right"|1.00 | ||
+ | |} | ||
+ | </pre> | ||
+ | |} | ||
+ | |||
+ | ====cellspacing="0" border="1"==== | ||
+ | {| width="100%" | ||
+ | |width="50%"| | ||
+ | {| cellspacing="0" border="1" | ||
+ | |Orange | ||
+ | |Apple | ||
+ | |- | ||
+ | |Bread | ||
+ | |Pie | ||
+ | |- | ||
+ | |Butter | ||
+ | |Ice cream | ||
+ | |} | ||
+ | |width="50%"| | ||
+ | <pre> | ||
+ | {| cellspacing="0" border="1" | ||
+ | |Orange | ||
+ | |Apple | ||
+ | |- | ||
+ | |Bread | ||
+ | |Pie | ||
+ | |- | ||
+ | |Butter | ||
+ | |Ice cream | ||
+ | |} | ||
+ | </pre> | ||
+ | |} | ||
+ | ====cellpadding="20" cellspacing="0" border="1"==== | ||
+ | {| width="100%" | ||
+ | |width="50%"| | ||
+ | {| cellpadding="20" cellspacing="0" border="1" | ||
+ | |Orange | ||
+ | |Apple | ||
+ | |- | ||
+ | |Bread | ||
+ | |Pie | ||
+ | |- | ||
+ | |Butter | ||
+ | |Ice cream | ||
+ | |} | ||
+ | |width="50%"| | ||
+ | <pre> | ||
+ | {| cellpadding="20" cellspacing="0" border="1" | ||
+ | |Orange | ||
+ | |Apple | ||
+ | |- | ||
+ | |Bread | ||
+ | |Pie | ||
+ | |- | ||
+ | |Butter | ||
+ | |Ice cream | ||
+ | |} | ||
+ | </pre> | ||
+ | |} | ||
+ | |||
+ | ===With HTML attributes and CSS styles=== | ||
+ | CSS style attributes can be added with or without other HTML attributes | ||
+ | ====style="color:green;background-color:#ffffcc;" cellpadding="20" cellspacing="0" border="1"==== | ||
+ | {| width="100%" | ||
+ | |width="50%"| | ||
+ | {| style="color:green;background-color:#ffffcc;" cellpadding="20" cellspacing="0" border="1" | ||
+ | |Orange | ||
+ | |Apple | ||
+ | |- | ||
+ | |Bread | ||
+ | |Pie | ||
+ | |- | ||
+ | |Butter | ||
+ | |Ice cream | ||
+ | |} | ||
+ | |width="50%"| | ||
+ | <pre> | ||
+ | {| style="color:green;background-color:#ffffcc;" cellpadding="20" cellspacing="0" border="1" | ||
+ | |Orange | ||
+ | |Apple | ||
+ | |- | ||
+ | |Bread | ||
+ | |Pie | ||
+ | |- | ||
+ | |Butter | ||
+ | |Ice cream | ||
+ | |} | ||
+ | </pre> | ||
+ | |} | ||
+ | |||
+ | |||
[[Category:Nápověda]] | [[Category:Nápověda]] |
Verze z 19. 3. 2007, 13:09
Formátování textu
Popis | Napíšeš | Dostaneš |
applies anywhere | ||
Italic text | ''italic'' | italic |
Bold text | '''bold''' | bold |
Bold and italic | '''''bold & italic''''' | bold & italic |
Escape wiki markup | <nowiki>no ''markup''</nowiki> | no ''markup'' |
only at the beginning of the line | ||
Headings of different sizes |
==level 1== |
Level 1Level 2Level 3Level 4 |
Horizontal rule |
---- |
|
Bullet list |
* one |
|
Numbered list |
# one |
|
Mixture of bulleted and numbered lists |
# one |
|
Definition list |
;Definition |
|
Preformatted text |
preformatted text is done with |
preformatted text is done with a space at the beginning of the line |
Odstavce
Mediawiki ignoruje normální konce řádků. Pro začátek nového odstavce vynechejte prázdný řádek ve zdrojovém textu. Nový řádek také můžete začít pomocí HTML tagu <br />.
HTML
V MediaWiki jsou dovoleny některé HTML tagy. Např.:<code>, <div>, <span> and <font>.
Odkazy
Popis | Napíšeš | Dostaneš |
Internal link | [[Main Page]] | Main Page |
Piped link | [[Main Page|different text]] | different text |
Anchor link | [[#External links|Anchor link]] | Anchor link |
External link | http://mediawiki.org | http://mediawiki.org |
External link, different title |
[http://mediawiki.org MediaWiki] | MediaWiki |
External link, unnamed |
[http://mediawiki.org] | [1] |
External link, same host unnamed |
[http://{{SERVERNAME}}/pagename] | [2] |
Interwiki link | [[Wikipedia:MediaWiki]] | Wikipedia:MediaWiki |
mailto | mailto:info@example.org | mailto:info@example.org |
mailto unnamed | [mailto:info@example.org] | [3] |
mailto named | [mailto:info@example.org info] | info |
redirect | #REDIRECT [[Main Page]] | → Main Page |
Tabulky
align="right" border="1"
You can put attributes on individual cells. Numbers for example may look better aligned right
|
{| border="1" |Orange |Apple |align="right"|12,333.00 |- |Bread |Pie |align="right"|500.00 |- |Butter |Ice cream |align="right"|1.00 |} |
You can put attributes on individual rows, too.
|
{| border="1" |Orange |Apple |align="right"|12,333.00 |- |Bread |Pie |align="right"|500.00 |- style="font-style:italic;color:green;" |Butter |Ice cream |align="right"|1.00 |} |
cellspacing="0" border="1"
|
{| cellspacing="0" border="1" |Orange |Apple |- |Bread |Pie |- |Butter |Ice cream |} |
cellpadding="20" cellspacing="0" border="1"
|
{| cellpadding="20" cellspacing="0" border="1" |Orange |Apple |- |Bread |Pie |- |Butter |Ice cream |} |
With HTML attributes and CSS styles
CSS style attributes can be added with or without other HTML attributes
style="color:green;background-color:#ffffcc;" cellpadding="20" cellspacing="0" border="1"
|
{| style="color:green;background-color:#ffffcc;" cellpadding="20" cellspacing="0" border="1" |Orange |Apple |- |Bread |Pie |- |Butter |Ice cream |} |