From Projekt Modern kola

Pravidla formátování

<< PmWiki | Administrace | Dokumentace >>

Obsah stránky

Odstavce

Odsazení odstavců (citace)

Šipky (->) na začátku odstavce se používají pro jeho odsazení. Více pomlček na začátku (--->) způsobí větší odsazení odstavce.

->Four score and seven years ago our fathers placed upon this continent
a new nation, conceived in liberty and dedicated to the proposition that
all men are created equal.
Four score and seven years ago our fathers placed upon this continent a new nation, conceived in liberty and dedicated to the proposition that all men are created equal.

Obrácené šipky (-<) na začátku odstavce se používají pro jeho vytvoření odstavce s předsazením prvního řádku.

-<Four score and seven years ago our fathers placed upon this continent
a new nation, conceived in liberty and dedicated to the proposition that
all men are created equal. 
Four score and seven years ago our fathers placed upon this continent a new nation, conceived in liberty and dedicated to the proposition that all men are created equal.

Více pomlček na začátku (---<) způsobí větší odsazení odstavce s předsazeným řádkem.

--<Four score and seven years ago our fathers placed upon this continent
a new nation, conceived in liberty and dedicated to the proposition that
all men are created equal.  And that food would be good too.
Four score and seven years ago our fathers placed upon this continent a new nation, conceived in liberty and dedicated to the proposition that all men are created equal. And that food would be good too.

Blocks of text to which (:linebreaks:) has been applied can be indented by preceding the first line of the block with indention arrows (->) and aligning subsequent lines under the first. An unindented line stops the block indentation. See Cookbook:MarkupTricks for an example.

Odrážkové a číslované seznamy

Seznam s odrážkami vytvoříte hvězdičkou umístěnou na začátku řádky. Více hvězdiček způsobí větší zanoření odrážky :

* Položka první úrovně
** Položka druhé úrovně
** Další položka druhé úrovně
* Další položka první úrovně
  • Položka první úrovně
    • Položka druhé úrovně
    • Další položka druhé úrovně
  • Další položka první úrovně

Číslovaný seznam vytvoříte umístěním dvojkřížku (#) na začátku řádky.

# Připravte experiment
## Rozbalte pop-tart
## Vložte pop-tart do tousteru
# Začněte péct pop-tart
# Držte se stranou
  1. Připravte experiment
    1. Rozbalte pop-tart
    2. Vložte pop-tart do tousteru
  2. Začněte péct pop-tart
  3. Držte se stranou

Kombinovaný seznam

* First-level list item
** Second-level list item
### Order this
#### And this (optional)
### Then this
** Another second-level item
* A first-level item: cooking
## Prepare the experiment
### Unwrap the pop-tart
### Insert the pop-tart into the toaster
## Begin cooking the pop tart
## Stand back
  • First-level list item
    • Second-level list item
      1. Order this
        1. And this (optional)
      2. Then this
    • Another second-level item
  • A first-level item: cooking
    1. Prepare the experiment
      1. Unwrap the pop-tart
      2. Insert the pop-tart into the toaster
    2. Begin cooking the pop tart
    3. Stand back

Use list styles to control numbering of ordered lists

## Text between list items can cause numbering to restart
## %item value=3% this can be dealt with
  1. Text between list items can cause numbering to restart
  2. this can be dealt with

Also see: ListStyles, Cookbook:WikiStylesPlus

Definované seznamy

Powerful new* feature
When you define terms using this markup
PmWiki will recognize them as PageTextVariables
that you can use on any page or PageList.
* Added in PmWiki version 2.2.0

Definition lists are made by placing colons at the left margin (and between each term and definition):

:term:definition of term
::second-level item: definition of 2nd-level item
term
definition of term
second-level item
definition of 2nd-level item

Řádkování textu

Whitespace indentation in lists. Any line that begins with whitespace and aligns with a previous list item (whether bulleted, numbers or definitional) is considered to be "within" that list item. Text folds and wraps as normal, and the (:linebreaks:) directive is honored.

# First-level item\\
  Whitespace used to continue item on a new line
# Another first-level item
  # Whitespace combined with a single # to create a new item one level
deeper
  1. First-level item
    Whitespace used to continue item on a new line
  2. Another first-level item
    1. Whitespace combined with a single # to create a new item one level deeper

Otherwise, lines that begin with whitespace are treated as preformatted text, using a monospace font and not generating linebreaks except where explicitly indicated in the markup. Note to administrators: Starting with version 2.2.0-beta41, this feature can be modified using $EnableWSPre. (Another way to create preformatted text blocks is by using the [@...@] markup.)

Horizontální čáry

Four or more dashes (----) at the beginning of a line produce a horizontal line.

Zvýraznění a formátování textu

Další zvýraznění

Podívejte se na WikiStyles pro pokročilé formátovací příkazy.

Odkazy

Nadpisy

Nadpisy jsou vytvořeny umístěním vykřičníku (!) na začátku řádky. Více vykřičníků určuje úroveň nadpisu. Například,

! Nadpis 1. úrovně  
!! Nadpis 2. úrovně  
!!! Nadpis 3. úrovně  
!!!! Nadpis 4. úrovně 

Nadpis 1. úrovně

Nadpis 2. úrovně

Nadpis 3. úrovně

Nadpis 4. úrovně

Note that level 1 heading is already used as page title (at least in the PmWiki skin), so you should start with level 2 headings to create well formed, search enging optimized web pages.

See Cookbook:NumberedHeaders for numbered headings.

Řídící kódy

Cokoliv umístěné mezi [= a =] není zkoumáno PmWiki/PmWiki. To umožňuje snadno vytvářet WikiSlova, která nejsou odkazem a vypnout zpracování speciálních značkovacích pravidel. Značky [= a =] mohou obalovat více řádek. Například, mezera[= na začátku řádky způsobí, že text do následujícího =] bude zobrazen písmem pevné šířky a nebude zkoumán PmWiki/PmWiki (užitečné pro výpisy programů).

[@
Code goes here like [[PmWiki.PmWiki]]
'$CurrentTime $[by] $AuthorLink:  [=$ChangeSummary=]'; #just some code
@]
Code goes here like [[PmWiki.PmWiki]]
'$CurrentTime $[by] $AuthorLink:  [=$ChangeSummary=]'; #just some code

It is also useful to use [= =] within other wiki structures, as this enables the inclusion of new lines in text values. The example below shows how to include a multi-line value in a hidden form field.

(:input hidden message "[=Line1
Line2=]":)

Speciální znaky

Tabulky

Tabulky vytvoříte uzavřením polí mezi dvě svislé čáry '||'. Pole začínající a končící mezerou jsou vystředěna; pole začínající mezerou jsou zarovnána vpravo; v ostatních případech jsou pole jsou zarovnána vlevo. Prázdné pole (bez mezer) způsobí spojení s následujícím sloupcem (v současné době nelze spojit více řádek). Řádek začínající '||' určuje atributy následující tabulky. '!' jako první znak v poli způsobí jeho zvýraznění a může být použit pro hlavičku tabulky.

||align=center border=1 width=50%
||!Tabulka||!Hlavička||!Příklad||
||!Vlevo   || Střed || Vpravo||
||A       ||!   B   ||     C||
||        || jeden záznam ||      ||
||        || spojená pole ||||
TabulkaHlavičkaPříklad
VlevoStředVpravo
ABC
 jeden záznam 
 spojená pole

See TableDirectives? for advanced tables.

Can't find it here?

See PmWiki.MarkupMasterIndex?

Retrieved from http://projekt.spsnome.cz/PmWikiCs/TextFormattingRules - Page last modified on October 29, 2010, at 09:38 PM