obrazek_hlavicka
Hlavní stránka| Okres Domažlice| Okres Klatovy| Okres Tachov| Okres Plzeň-jih| Praha| Německo

Uživatelské nástroje

Nástroje pro tento web


wiki:syntax

Rozdíly

Zde můžete vidět rozdíly mezi vybranou verzí a aktuální verzí dané stránky.

Odkaz na výstup diff

wiki:syntax [2024/05/29 23:29] – vytvořeno - upraveno mimo DokuWiki 127.0.0.1wiki:syntax [2025/03/02 21:31] (aktuální) admin
Řádek 1: Řádek 1:
-====== Formatting Syntax ======+====== Formátovací syntaxe ======
  
 +[[doku>DokuWiki]] podporuje jednoduchý značkovací jazyk, který se snaží, aby datové soubory byly co nejčitelnější. Tato stránka obsahuje veškerou možnou syntaxi, kterou můžete při editaci stránek použít. Stačí se podívat na zdroj této stránky stisknutím tlačítka //Edit this page// v horní či dolní části stránky. Pokud chcete něco vyzkoušet, použijte prosím stránku [[playground:playground|playground]]. Jednodušší značkování je snadno přístupné také pomocí [[doku>toolbar|quickbuttons]].
  
 +===== Základní formátování textu =====
  
-[[doku>DokuWiki]] supports some simple markup languagewhich tries to make the datafiles to be as readable as possible. This page contains all possible syntax you may use when editing the pages. Simply have a look at the source of this page by pressing the //Edit this page// button at the top or bottom of the page. If you want to try somethingjust use the [[playground:playground|playground]] pageThe simpler markup is easily accessible via [[doku>toolbar|quickbuttons]], too.+DokuWiki podporuje **tučný**, //kurzíva//, __podtržený__ a ''monospace'' textSamozřejmě je můžete **__//''kombinovat''//__**.
  
 +  DokuWiki podporuje **tučný**, //kurzíva//, __podtržený__ a ''monospace'' text.
  
 +  Samozřejmě je můžete **__//''kombinovat''//__**.
  
-===== Basic text formatting =====+Můžete také používat tagy <sub>subscript</sub> a <sup>superscript</sup>.
  
 +  Můžete také používat tagy <sub>subscript</sub> a <sup>superscript</sup>.
  
 +Můžete označit text jako <del>smazaný</del>.
  
-DokuWiki supports **bold**, //italic//, __underlined__ and ''monospaced'' texts. Of course you can **__//''combine''//__** all these.+  Můžete označit text jako <del>smazaný</del>.
  
 +**Odstavce** se vytvářejí pomocí prázdných řádků. Pokud chcete **vynutit nový řádek** bez vytvoření nového odstavce, můžete použít dvě zpětná lomítka následovaná mezerou nebo koncem řádku.
  
 +Toto je text s několika řádkovými zlomy\\ Poznamenejte si, že
  
-  DokuWiki supports **bold**, //italic//, __underlined__ and ''monospaced'' texts.+dvě zpětná lomítka jsou rozpoznána pouze na konci řádku\\
  
-  Of course you can **__//''combine''//__** all these.+nebo pokud jsou následována mezerou \\ tento efekt nastane bez ní.
  
 +  Toto je text s několika řádkovými zlomy\\ Poznamenejte si, že
  
 +  dvě zpětná lomítka jsou rozpoznána pouze na konci řádku\\
  
-You can use <sub>subscript</sub> and <sup>superscript</sup>, too.+  nebo pokud jsou následována mezerou \\ tento efekt nastane bez ní.
  
 +Používejte vynucené zlomy pouze, pokud je to opravdu potřeba.
  
 +===== Odkazy =====
  
-  You can use <sub>subscript</sub> and <sup>superscript</sup>, too.+DokuWiki podporuje několik způsobů vytváření odkazů.
  
 +==== Externí odkazy ====
  
 +Externí odkazy jsou automaticky rozpoznávány: http://www.google.com nebo jednoduše www.google.com – můžete také nastavit text odkazu: [[http://www.google.com|This Link points to google]]. Emailové adresy, jako například <andi@splitbrain.org>, jsou rovněž rozpoznávány.
  
-You can mark something as <del>deleted</delas well.+  DokuWiki podporuje několik způsobů vytváření odkazů. Externí odkazy jsou automaticky rozpoznávány: http://www.google.com nebo jednoduše www.google.com – můžete také nastavit text odkazu: [[http://www.google.com|This Link points to google]]. Emailové adresy, jako například <andi@splitbrain.org>, jsou rovněž rozpoznávány.
  
 +==== Interní odkazy ====
  
 +Interní odkazy se vytvářejí pomocí hranatých závorek. Můžete uvést pouze [[pagename]] nebo použít dodatečné [[pagename|link text]].
  
-  You can mark something as <del>deleted</del> as well.+  Interní odkazy se vytvářejí pomocí hranatých závorek. Můžete uvést pouze [[pagename]] nebo použít dodatečné [[pagename|link text]].
  
 +[[doku>pagename|Wiki pagenames]] jsou automaticky převedeny na malá písmena, speciální znaky nejsou povoleny.
  
 +Můžete také používat [[some:namespaces]] pomocí dvojtečky v názvu stránky.
  
-**Paragraphs** are created from blank lines. If you want to **force a newline** without a paragraph, you can use two backslashes followed by a whitespace or the end of line.+  Můžete používat [[some:namespaces]] pomocí dvojtečky v názvu stránky.
  
 +Pro podrobnosti o jmenných prostorech viz [[doku>namespaces]].
  
 +Odkazování na konkrétní sekci je také možné – stačí za název stránky přidat znak hash (#) následovaný názvem sekce, stejně jako v HTML. Tento odkaz vede na [[syntax#internal|tuto sekci]].
  
-This is some text with some linebreaks\\ Note that the +  Tento odkaz vede na [[syntax#internal|tuto sekci]].
- +
-two backslashes are only recognized at the end of a line\\ +
- +
-or followed by\\ a whitespace \\this happens without it. +
- +
- +
- +
-  This is some text with some linebreaks\\ Note that the +
- +
-  two backslashes are only recognized at the end of a line\\ +
- +
-  or followed by\\ a whitespace \\this happens without it. +
- +
- +
- +
-You should use forced newlines only if really needed. +
- +
- +
- +
-===== Links ===== +
- +
- +
- +
-DokuWiki supports multiple ways of creating links. +
- +
- +
- +
-==== External ==== +
- +
- +
- +
-External links are recognized automagically: http://www.google.com or simply www.google.com - You can set the link text as well: [[http://www.google.com|This Link points to google]]. Email addresses like this one: <andi@splitbrain.org> are recognized, too. +
- +
- +
- +
-  DokuWiki supports multiple ways of creating links. External links are recognized +
- +
-  automagically: http://www.google.com or simply www.google.com - You can set +
- +
-  link text as well: [[http://www.google.com|This Link points to google]]. Email +
- +
-  addresses like this one: <andi@splitbrain.org> are recognized, too. +
- +
- +
- +
-==== Internal ==== +
- +
- +
- +
-Internal links are created by using square brackets. You can either just give a [[pagename]] or use an additional [[pagename|link text]]. +
- +
- +
- +
-  Internal links are created by using square brackets. You can either just give +
- +
-  a [[pagename]] or use an additional [[pagename|link text]]. +
- +
- +
- +
-[[doku>pagename|Wiki pagenames]] are converted to lowercase automatically, special characters are not allowed.  +
- +
- +
- +
-You can use [[some:namespaces]] by using a colon in the pagename. +
- +
- +
- +
-  You can use [[some:namespaces]] by using a colon in the pagename. +
- +
- +
- +
-For details about namespaces see [[doku>namespaces]]. +
- +
- +
- +
-Linking to a specific section is possible, too. Just add the section name behind a hash character as known from HTML. This links to [[syntax#internal|this Section]]. +
- +
- +
- +
-  This links to [[syntax#internal|this Section]]. +
- +
- +
- +
-Notes: +
- +
- +
- +
-  * Links to [[syntax|existing pages]] are shown in a different style from [[nonexisting]] ones. +
- +
-  * DokuWiki does not use [[wp>CamelCase]] to automatically create links by default, but this behavior can be enabled in the [[doku>config]] file. Hint: If DokuWiki is a link, then it's enabled. +
- +
-  * When a section's heading is changed, its bookmark changes, too. So don't rely on section linking too much.+
  
 +Poznámky:
  
 +  * Odkazy na [[syntax|existující stránky]] se zobrazují odlišným stylem než [[nonexisting]] odkazy.
 +  * DokuWiki nepoužívá automaticky [[wp>CamelCase]] k vytvoření odkazů, ale toto chování lze povolit v souboru [[doku>config]].
 +  * Pokud se změní nadpis sekce, změní se i záložka – proto se na odkazování na sekce příliš nespoléhejte.
  
 ==== Interwiki ==== ==== Interwiki ====
  
 +DokuWiki podporuje [[doku>Interwiki]] odkazy, což jsou rychlé odkazy na jiné wiki. Například tento odkaz vede na Wikipedii: [[wp>Wiki]].
  
 +  DokuWiki podporuje [[doku>Interwiki]] odkazy. Například tento odkaz vede na Wikipedii: [[wp>Wiki]].
  
-DokuWiki supports [[doku>Interwiki]] links. These are quick links to other Wikis. For example this is a link to Wikipedia's page about Wikis: [[wp>Wiki]].+==== Sdílení ve Windows ====
  
 +Windows sdílení, jako například [[\\server\share|this]], jsou rovněž rozpoznávány. Všimněte si, že to má smysl jen pro homogenní skupiny uživatelů, např. firemní [[wp>Intranet]].
  
 +  Windows sdílení jako [[\\server\share|this]] jsou rovněž rozpoznávány.
  
-  DokuWiki supports [[doku>Interwiki]] links. These are quick links to other Wikis.+Poznámky:
  
-  For example this is a link to Wikipedia's page about Wikis: [[wp>Wiki]]. +  * Z bezpečnostních důvodů funguje přímé prohlížení windows sdílení pouze v Microsoft Internet Explorer ve výchozím nastavení (a pouze v "lokální zóně"). 
- +  * U Mozilly a Firefoxu lze tuto funkci povolit přes konfigurační možnost [[http://www.mozilla.org/quality/networking/docs/netprefs.html#file|security.checkloaduri]], ale to se nedoporučuje
- +  * Více informací najdete na [[dokubug>151]].
- +
- +
- +
-==== Windows Shares ==== +
- +
- +
- +
-Windows shares like [[\\server\share|this]] are recognized, too. Please note that these only make sense in a homogeneous user group like a corporate [[wp>Intranet]]. +
- +
- +
- +
-  Windows Shares like [[\\server\share|this]] are recognized, too. +
- +
- +
- +
-Notes: +
- +
- +
- +
-  For security reasons direct browsing of windows shares only works in Microsoft Internet Explorer per default (and only in the "local zone"). +
- +
-  * For Mozilla and Firefox it can be enabled through the config option [[http://www.mozilla.org/quality/networking/docs/netprefs.html#file|security.checkloaduri]] but this is not recommended. +
- +
-  * See [[dokubug>151]] for more info. +
- +
- +
- +
-==== Image Links ==== +
- +
- +
- +
-You can also use an image to link to another internal or external page by combining the syntax for links and [[#images_and_other_files|images]] (see below) like this:+
  
 +==== Odkazy na obrázky ====
  
 +Obrázek můžete použít jako odkaz na jinou interní nebo externí stránku kombinací syntaxe odkazů a obrázků (viz níže). Například:
  
   [[http://www.php.net|{{wiki:dokuwiki-128.png}}]]   [[http://www.php.net|{{wiki:dokuwiki-128.png}}]]
- 
- 
  
 [[http://www.php.net|{{wiki:dokuwiki-128.png}}]] [[http://www.php.net|{{wiki:dokuwiki-128.png}}]]
  
 +Poznámka: Formátování obrázků je jediná syntaxe formátování, která je akceptována v názvech odkazů.
  
 +Celá syntaxe pro obrázky a odkazy je podporována (včetně změny velikosti obrázku, interních i externích obrázků, URL a interwiki odkazů).
  
-Please note: The image formatting is the only formatting syntax accepted in link names.+===== Poznámky pod čarou =====
  
 +Poznámky pod čarou lze přidávat pomocí dvojitých závorek: ((Toto je poznámka pod čarou)).
  
 +  ((Toto je poznámka pod čarou)).
  
-The whole [[#images_and_other_files|image]] and [[#links|link]] syntax is supported (including image resizing, internal and external images and URLs and interwiki links).+===== Dělení sekcí =====
  
 +Můžete použít až pět různých úrovní nadpisů k uspořádání obsahu. Pokud máte více než tři nadpisy, je automaticky generována obsahová tabulka – tuto funkci můžete vypnout vložením řetězce ''<nowiki>~~NOTOC~~</nowiki>'' do dokumentu.
  
 +==== Nadpis úrovně 3 ====
  
-===== Footnotes =====+=== Nadpis úrovně 4 ===
  
 +== Nadpis úrovně 5 ==
  
 +  ==== Nadpis úrovně 3 ====
 +  
 +  === Nadpis úrovně 4 ====
 +  
 +  == Nadpis úrovně 5 ==
  
-You can add footnotes ((This is a footnote)) by using double parentheses.+Pomocí čtyř nebo více pomlček můžete vytvořit vodorovnou čáru:
  
 +----  
  
 +===== Obrázky a další soubory =====
  
-  You can add footnotes ((This is a footnote)) by using double parentheses.+Můžete vkládat externí i interní [[doku>images]] pomocí složených závorek. Volitelně můžete specifikovat jejich velikost.
  
 +Reálná velikost:                        {{wiki:dokuwiki-128.png}}
  
 +Změna velikosti na zadanou šířku:            {{wiki:dokuwiki-128.png?50}}
  
-===== Sectioning =====+Změna velikosti na zadanou šířku a výšku (pokud poměr stran neodpovídá, obrázek bude oříznut): {{wiki:dokuwiki-128.png?200x50}}
  
 +Externí obrázek ve změněné velikosti:           {{http://de3.php.net/images/php.gif?200x50}}
  
- +  Reálná velikost:                        {{wiki:dokuwiki-128.png}}
-You can use up to five different levels of headlines to structure your content. If you have more than three headlines, a table of contents is generated automatically -- this can be disabled by including the string ''<nowiki>~~NOTOC~~</nowiki>'' in the document. +
- +
- +
- +
-==== Headline Level 3 ==== +
- +
-=== Headline Level 4 === +
- +
-== Headline Level 5 == +
- +
- +
- +
-  ==== Headline Level 3 ==== +
- +
-  === Headline Level 4 === +
- +
-  == Headline Level 5 == +
- +
- +
- +
-By using four or more dashes, you can make a horizontal line: +
- +
- +
- +
----- +
- +
- +
- +
-===== Images and other files ===== +
- +
- +
- +
-You can include external and internal [[doku>images]] with curly brackets. Optionally you can specify the size of them. +
- +
- +
- +
-Real size:                        {{wiki:dokuwiki-128.png}} +
- +
- +
- +
-Resize to given width:            {{wiki:dokuwiki-128.png?50}} +
- +
- +
- +
-Resize to given width and height((when the aspect ratio of the given width and height doesn't match that of the image, it will be cropped to the new ratio before resizing)): {{wiki:dokuwiki-128.png?200x50}} +
- +
- +
- +
-Resized external image:           {{http://de3.php.net/images/php.gif?200x50}} +
- +
- +
- +
-  Real size:                        {{wiki:dokuwiki-128.png}} +
- +
-  Resize to given width:            {{wiki:dokuwiki-128.png?50}} +
- +
-  Resize to given width and height: {{wiki:dokuwiki-128.png?200x50}} +
- +
-  Resized external image:           {{http://de3.php.net/images/php.gif?200x50}} +
- +
- +
- +
- +
- +
-By using left or right whitespaces you can choose the alignment. +
- +
- +
- +
-{{ wiki:dokuwiki-128.png}} +
- +
- +
- +
-{{wiki:dokuwiki-128.png }} +
- +
- +
- +
-{{ wiki:dokuwiki-128.png }} +
- +
- +
- +
-  {{ wiki:dokuwiki-128.png}} +
- +
-  {{wiki:dokuwiki-128.png }} +
- +
-  {{ wiki:dokuwiki-128.png }} +
- +
- +
- +
-Of course, you can add a title (displayed as a tooltip by most browsers), too. +
- +
- +
- +
-{{ wiki:dokuwiki-128.png |This is the caption}} +
- +
- +
- +
-  {{ wiki:dokuwiki-128.png |This is the caption}} +
- +
- +
- +
-If you specify a filename (external or internal) that is not an image (''gif, jpeg, png''), then it will be displayed as a link instead. +
- +
- +
- +
-For linking an image to another page see [[#Image Links]] above. +
- +
- +
- +
-===== Lists ===== +
- +
- +
- +
-Dokuwiki supports ordered and unordered lists. To create a list item, indent your text by two spaces and use a ''*'' for unordered lists or a ''-'' for ordered ones. +
- +
- +
- +
-  * This is a list +
- +
-  * The second item +
- +
-    * You may have different levels +
- +
-  * Another item +
- +
- +
- +
-  - The same list but ordered +
- +
-  - Another item +
- +
-    - Just use indention for deeper levels +
- +
-  - That's it +
- +
- +
- +
-<code> +
- +
-  * This is a list +
- +
-  * The second item +
- +
-    * You may have different levels +
- +
-  * Another item +
- +
- +
- +
-  - The same list but ordered +
- +
-  - Another item +
- +
-    - Just use indention for deeper levels +
- +
-  - That's it +
- +
-</code> +
- +
- +
- +
-===== Smileys ===== +
- +
- +
- +
-DokuWiki converts commonly used [[wp>emoticon]]s to their graphical equivalents. More smileys can be placed in the ''smiley'' directory and configured in the ''conf/smileys.conf'' file. Here is an overview of Smileys included in DokuWiki. +
- +
- +
- +
-  * 8-) %%  8-)  %% +
- +
-  * 8-O %%  8-O  %% +
- +
-  * :-( %%  :-(  %% +
- +
-  * :-) %%  :-)  %% +
- +
- +
- +
-  * =)  %%  =)   %% +
- +
-  * :-/ %%  :-/  %% +
- +
-  * :-\ %%  :-\  %% +
- +
-  * :-? %%  :-?  %% +
- +
-  * :-D %%  :-D  %% +
- +
-  * :-P %%  :-P  %% +
- +
-  * :-O %%  :-O  %% +
- +
-  * :-X %%  :-X  %% +
- +
-  * :-| %%  :-|  %% +
- +
-  * ;-) %%  ;-)  %% +
- +
-  * ^_^ %%  ^_^  %% +
- +
-  * :?: %%  :?:  %% +
- +
-  * :!: %%  :!:  %% +
- +
-  * LOL %%  LOL  %% +
- +
-  * FIXME %%  FIXME %% +
- +
-  * DELETEME %% DELETEME %% +
- +
- +
- +
-===== Typography ===== +
- +
- +
- +
-[[DokuWiki]] can convert simple text characters to their typographically correct entities. Here is an example of recognized characters. +
- +
- +
- +
--> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) +
- +
-"He thought 'It's a man's world'..." +
- +
- +
- +
-<code> +
- +
--> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) +
- +
-"He thought 'It's a man's world'..." +
- +
-</code> +
- +
- +
- +
-Please note: These conversions can be turned off through a [[doku>config:typography|config option]] and a [[doku>entities|pattern file]]. +
- +
- +
- +
-===== Quoting ===== +
- +
- +
- +
-Some times you want to mark some text to show it's a reply or comment. You can use the following syntax: +
- +
- +
- +
-  I think we should do it +
      
- +  Změna velikosti na zadanou šířku:            {{wiki:dokuwiki-128.png?50}}
-  > No we shouldn'+
      
- +  Změna velikosti na zadanou šířku a výšku: {{wiki:dokuwiki-128.png?200x50}}
-  >> Well, I say we should +
      
 +  Externí obrázek ve změněné velikosti:           {{http://de3.php.net/images/php.gif?200x50}}
  
-  > Really?+Pro zarovnání použijte mezery vlevo nebo vpravo.
  
-  +{{wiki:dokuwiki-128.png}}
  
-  >> Yes!+{{wiki:dokuwiki-128.png }}
  
-  +{{wiki:dokuwiki-128.png }}
  
-  >>> Then lets do it!+Samozřejmě můžete přidat titulek (zobrazený jako tooltip ve většině prohlížečů):
  
 +{{wiki:dokuwiki-128.png |This is the caption}}
  
 +Pokud zadáte název souboru, který není obrázek (gif, jpeg, png), bude zobrazen jako odkaz.
  
-I think we should do it+Pro odkazování obrázku na jinou stránku viz [[#Image Links]] výše.
  
 +===== Poznámky =====
  
 +DokuWiki podporuje vytváření poznámek pod čarou ((Toto je poznámka pod čarou)) pomocí dvojitých závorek.
  
-> No we shouldn'+  ((Toto je poznámka pod čarou)).
- +
- +
- +
->> Well, I say we should +
- +
- +
- +
-> Really? +
- +
- +
- +
->> Yes! +
- +
- +
- +
->>> Then lets do it! +
- +
- +
- +
-===== Tables ===== +
- +
- +
- +
-DokuWiki supports a simple syntax to create tables.  +
- +
- +
- +
-^ Heading 1      ^ Heading 2       ^ Heading 3          ^ +
- +
-| Row 1 Col 1    | Row 1 Col 2     | Row 1 Col 3        | +
- +
-| Row 2 Col 1    | some colspan (note the double pipe) || +
- +
-| Row 3 Col 1    | Row 2 Col 2     | Row 2 Col 3        | +
- +
- +
- +
-Table rows have to start and end with a ''|'' for normal rows or a ''^'' for headers. +
- +
- +
- +
-  ^ Heading 1      ^ Heading 2       ^ Heading 3          ^ +
- +
-  | Row 1 Col 1    | Row 1 Col 2     | Row 1 Col 3        | +
- +
-  | Row 2 Col 1    | some colspan (note the double pipe|| +
- +
-  | Row 3 Col 1    | Row 2 Col 2     | Row 2 Col 3        | +
- +
- +
- +
-To connect cells horizontally, just make the next cell completely empty as shown above. Be sure to have always the same amount of cell separators! +
- +
- +
- +
-Vertical tableheaders are possible, too. +
- +
- +
- +
-|              ^ Heading 1            ^ Heading 2          ^ +
- +
-^ Heading 3    | Row 1 Col 2          | Row 1 Col 3        | +
- +
-^ Heading 4    | no colspan this time |                    | +
- +
-^ Heading 5    | Row 2 Col 2          | Row 2 Col 3        | +
- +
- +
- +
-As you can see, it's the cell separator before a cell which decides about the formatting: +
- +
- +
- +
-  |              ^ Heading 1            ^ Heading 2          ^ +
- +
-  ^ Heading 3    | Row 1 Col 2          | Row 1 Col 3        | +
- +
-  ^ Heading 4    | no colspan this time |                    | +
- +
-  ^ Heading 5    | Row 2 Col 2          | Row 2 Col 3        | +
- +
- +
- +
-Note: Vertical spans (rowspan) are not possible. +
- +
- +
- +
-You can align the table contents, too. Just add at least two whitespaces at the opposite end of your text: Add two spaces on the left to align right, two spaces on the right to align left and two spaces at least at both ends for centered text. +
- +
- +
- +
-^           Table with alignment           ^^^ +
- +
-|         right|    center    |left          | +
- +
-|left          |         right|    center    | +
- +
-| xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | +
- +
- +
- +
-This is how it looks in the source: +
- +
- +
- +
-  ^           Table with alignment           ^^^ +
- +
-  |         right|    center    |left          | +
- +
-  |left          |         right|    center    | +
- +
-  | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | +
- +
- +
- +
-===== Non-parsed Blocks ===== +
- +
- +
- +
-You can include non-parsed blocks into your documents by either indenting them by at least two spaces (like used for the previous examplesor by using the tags ''code'' or ''file''.+
  
 +===== Doplňkové bloky =====
  
 +Můžete do dokumentu vložit bloky, které nebudou formátovány. To lze provést buď odsazením alespoň o dvě mezery (jako v předchozích příkladech), nebo použitím tagů ''code'' či ''file''.
  
 <code> <code>
- +Toto je formátovaný kód – všechny mezery jsou zachoványnapříklad              <-to
-This is preformatted code all spaces are preservedlike              <-this +
 </code> </code>
- 
- 
  
 <file> <file>
- +Toto je prakticky totéžale můžete jej použít k zobrazení textu ze souboru.
-This is pretty much the samebut you could use it to show that you quoted a file  +
 </file> </file>
  
- +Aby parser úplně ignoroval část textu (tjneprováděl žádné formátování), obalte text buď tagy ''nowiki'' nebo jednoduše dvojitými procenty: ''<nowiki>%%</nowiki>''.
- +
-To let the parser ignore an area completely (iedo no formatting on it), enclose the area either with ''nowiki'' tags or even simpler, with double percent signs ''<nowiki>%%</nowiki>''. +
- +
  
 <nowiki> <nowiki>
- +Toto je text, který obsahuje adresy jako http://www.splitbrain.org **formátování**, ale nebude nijak formátován.
-This is some text which contains addresses like this: http://www.splitbrain.org and **formatting**, but nothing is done with it. +
 </nowiki> </nowiki>
  
 +Viz zdroj této stránky, abyste viděli, jak používat tyto bloky.
  
 +===== Zvýraznění syntaxe =====
  
-See the source of this page to see how to use these blocks. +[[DokuWiki]] dokáže zvýraznit zdrojový kódcož usnadňuje jeho čteníPoužívá se k tomu Generic Syntax Highlighter [[http://qbnz.com/highlighter/|GeSHi]], takže je podporován kód jakéhokoli jazyka, který GeSHi umíSyntaxe je stejná jako u kódových bloků v předchozí sekciavšak tentokrát se uvádí název použitého jazyka uvnitř taguNapříklad: ''<nowiki><code java></nowiki>''.
- +
- +
- +
-===== Syntax Highlighting ===== +
- +
- +
- +
-[[wiki:DokuWiki]] can highlight sourcecodewhich makes it easier to readIt uses the [[http://qbnz.com/highlighter/|GeSHi]] Generic Syntax Highlighter -- so any language supported by GeSHi is supportedThe syntax is the same like in the code block in the previous sectionbut this time the name of the used language is inserted inside the tag. Eg. ''<nowiki><code java></nowiki>''. +
- +
  
 <code java> <code java>
- 
 /**  /** 
- + Třída HelloWorldApp implementuje aplikaci, která 
- The HelloWorldApp class implements an application that + jednoduše vypíše "Hello World!" na standardní výstup.
- +
- simply displays "Hello World!" to the standard output. +
  */  */
- 
 class HelloWorldApp { class HelloWorldApp {
- 
     public static void main(String[] args) {     public static void main(String[] args) {
- +        System.out.println("Hello World!"); // Vypíše řetězec.
-        System.out.println("Hello World!"); //Display the string. +
     }     }
- 
 } }
- 
 </code> </code>
  
 +Aktuálně jsou rozpoznány následující jazykové řetězce: //abap, actionscript-french, actionscript, actionscript3, ada, apache, applescript, asm, asp, autoit, bash, basic4gl, blitzbasic, bnf, boo, c, c_mac, caddcl, cadlisp, cfdg, cfm, cil, cobol, cpp, cpp-qt, csharp, css, delphi, diff, div, dos, dot, d, eiffel, fortran, freebasic, genero, glsl, gml, gnuplot, groovy, gettext, haskell, html, idl, ini, inno, io, java5, java, javascript, kixtart, klonec, klonecpp, latex, lisp, lotusformulas, lotusscript, lua, m68k, matlab, mirc, mpasm, mxml, mysql, nsis, objc, ocaml-brief, ocaml, oobas, oracle8, pascal, perl, per, php-brief, php, pic16, plsql, povray, powershell, progress, python, qbasic, rails, reg, robots, ruby, sas, scala, scheme, sdlbasic, smalltalk, smarty, sql, tcl, text, thinbasic, tsql, typoscript, vbnet, vb, verilog, vhdl, visualfoxpro, winbatch, xml, xorg_conf, xpp, z80//
  
 +===== RSS/ATOM agregace kanálů =====
  
-The following language strings are currently recognized: //abapactionscript-frenchactionscriptactionscript3, ada, apache, applescript, asm, asp, autoit, bash, basic4gl, blitzbasic, bnf, boo, c, c_mac, caddcl, cadlisp, cfdg, cfm, cil, cobol, cpp, cpp-qt, csharp, css, delphi, diff, div, dos, dot, d, eiffel, fortran, freebasic, genero, glsl, gml, gnuplot, groovy, gettext, haskell, html, idl, ini, inno, io, java5, java, javascript, kixtart, klonec, klonecpp, latex, lisp, lotusformulas, lotusscript, lua, m68k, matlab, mirc, mpasm, mxml, mysql, nsis, objc, ocaml-brief, ocaml, oobas, oracle8, pascal, perl, per, php-brief, php, pic16, plsql, povray, powershell, progress, python, qbasic, rails, reg, robots, ruby, sas, scala, scheme, sdlbasic, smalltalk, smarty, sql, tcl, text, thinbasic, tsql, typoscript, vbnet, vb, verilog, vhdl, visualfoxpro, winbatch, xml, xorg_conf, xpp, z80//+[[DokuWiki]] může integrovat data z externích XML kanálů. K jejich parsování se používá [[http://simplepie.org/|SimplePie]]. Všechny formátykteré SimplePie podporujelze použít i v DokuWiki. Rendering můžete ovlivnit pomocí dalších parametrůoddělených mezerami:
  
 +^ Parametr  ^ Popis ^
 +| libovolné číslo | bude použito jako maximální počet položek, výchozí hodnota je 8 |
 +| reverse         | zobrazí poslední položky kanálu jako první |
 +| author          | zobrazí jména autorů položek |
 +| date            | zobrazí datum položek |
 +| description     | zobrazí popis položky; pokud je HTML vypnuto, budou všechny tagy odstraněny |
 +| //n//[dhm]     | doba obnovení, kde d=dny, h=hodiny, m=minuty (např. 12h = 12 hodin) |
  
 +Doba obnovení je výchozí 4 hodiny. Jakákoliv hodnota pod 10 minut bude považována za 10 minut. [[DokuWiki]] se obvykle snaží dodat ke stránce cachovanou verzi, což není vhodné, pokud stránka obsahuje dynamický externí obsah. Parametr říká, že stránka se má znovu renderovat, pokud uplynula //doba obnovení// od posledního renderování.
  
- +**Příklad:**
- +
-===== RSS/ATOM Feed Aggregation ===== +
- +
-[[DokuWiki]] can integrate data from external XML feeds. For parsing the XML feeds, [[http://simplepie.org/|SimplePie]] is used. All formats understood by SimplePie can be used in DokuWiki as well. You can influence the rendering by multiple additional space separated parameters: +
- +
- +
- +
-^ Parameter  ^ Description ^ +
- +
-| any number | will be used as maximum number items to show, defaults to 8 | +
- +
-| reverse    | display the last items in the feed first | +
- +
-| author     | show item authors names | +
- +
-| date       | show item dates | +
- +
-| description| show the item description. If [[doku>config:htmlok|HTML]] is disabled all tags will be stripped | +
- +
-| //n//[dhm] | refresh period, where d=days, h=hours, m=minutes. (e.g. 12h = 12 hours). | +
- +
- +
- +
-The refresh period defaults to 4 hours. Any value below 10 minutes will be treated as 10 minutes. [[wiki:DokuWiki]] will generally try to supply a cached version of a page, obviously this is inappropriate when the page contains dynamic external content. The parameter tells [[wiki:DokuWiki]] to re-render the page if it is more than //refresh period// since the page was last rendered. +
- +
- +
- +
-**Example:** +
- +
  
   {{rss>http://slashdot.org/index.rss 5 author date 1h }}   {{rss>http://slashdot.org/index.rss 5 author date 1h }}
- 
- 
  
 {{rss>http://slashdot.org/index.rss 5 author date 1h }} {{rss>http://slashdot.org/index.rss 5 author date 1h }}
  
 +===== Vkládání HTML a PHP =====
  
- +Můžete vložit čistý HTML nebo PHP kód do dokumentů pomocí tagů ''html'' nebo ''php'', například:
- +
- +
-===== Embedding HTML and PHP ===== +
- +
- +
- +
-You can embed raw HTML or PHP code into your documents by using the ''html'' or ''php'' tags like this:+
  
 <code> <code>
- 
 <html> <html>
- +Toto je nějaké <span style="color:red;font-size:150%;">inline HTML</span>
-This is some <span style="color:red;font-size:150%;">inline HTML</span> +
 </html> </html>
- 
 <HTML> <HTML>
- +<p style="border:2px dashed red;">A toto je blokový HTML kód</p>
-<p style="border:2px dashed red;">And this is some block HTML</p> +
 </HTML> </HTML>
- 
 </code> </code>
- 
- 
  
 <html> <html>
- +Toto je nějaké <span style="color:red;font-size:150%;">inline HTML</span>
-This is some <span style="color:red;font-size:150%;">inline HTML</span> +
 </html> </html>
- 
 <HTML> <HTML>
- +<p style="border:2px dashed red;">A toto je blokový HTML kód</p>
-<p style="border:2px dashed red;">And this is some block HTML</p> +
 </HTML> </HTML>
- 
- 
  
 <code> <code>
- 
 <php> <php>
- +echo 'Logo generované PHP:';
-echo 'A logo generated by PHP:'; +
 echo '<img src="' . $_SERVER['PHP_SELF'] . '?=' . php_logo_guid() . '" alt="PHP Logo !" />'; echo '<img src="' . $_SERVER['PHP_SELF'] . '?=' . php_logo_guid() . '" alt="PHP Logo !" />';
- +echo '(generovaný inline HTML)';
-echo '(generated inline HTML)'; +
 </php> </php>
- 
 <PHP> <PHP>
- +echo '<table class="inline"><tr><td>Stejnéale uvnitř blokového elementu:</td>';
-echo '<table class="inline"><tr><td>The samebut inside a block level element:</td>'; +
 echo '<td><img src="' . $_SERVER['PHP_SELF'] . '?=' . php_logo_guid() . '" alt="PHP Logo !" /></td>'; echo '<td><img src="' . $_SERVER['PHP_SELF'] . '?=' . php_logo_guid() . '" alt="PHP Logo !" /></td>';
- 
 echo '</tr></table>'; echo '</tr></table>';
- 
 </PHP> </PHP>
- 
 </code> </code>
- 
- 
  
 <php> <php>
- +echo 'Logo generované PHP:';
-echo 'A logo generated by PHP:'; +
 echo '<img src="' . $_SERVER['PHP_SELF'] . '?=' . php_logo_guid() . '" alt="PHP Logo !" />'; echo '<img src="' . $_SERVER['PHP_SELF'] . '?=' . php_logo_guid() . '" alt="PHP Logo !" />';
- 
 echo '(inline HTML)'; echo '(inline HTML)';
- 
 </php> </php>
- 
 <PHP> <PHP>
- +echo '<table class="inline"><tr><td>Stejnéale uvnitř blokového elementu:</td>';
-echo '<table class="inline"><tr><td>The samebut inside a block level element:</td>'; +
 echo '<td><img src="' . $_SERVER['PHP_SELF'] . '?=' . php_logo_guid() . '" alt="PHP Logo !" /></td>'; echo '<td><img src="' . $_SERVER['PHP_SELF'] . '?=' . php_logo_guid() . '" alt="PHP Logo !" /></td>';
- 
 echo '</tr></table>'; echo '</tr></table>';
- 
 </PHP> </PHP>
  
 +**Poznámka:** Vkládání HTML a PHP je ve výchozím nastavení zakázáno. Pokud je zakázáno, kód se zobrazí místo toho, aby byl spuštěn.
  
 +===== Řídicí makra =====
  
-**Please Note**: HTML and PHP embedding is disabled by default in the configuration. If disabled, the code is displayed instead of executed.+Některé syntaktické prvky ovlivňují, jak DokuWiki vykresluje stránku, aniž by sám generovaly výstupNásledující řídicí makra jsou dostupná:
  
 +^ Makro           ^ Popis ^
 +| %%~~NOTOC~~%%   | Pokud je toto makro nalezeno na stránce, nebude vytvořena obsahová tabulka |
 +| %%~~NOCACHE~~%% | DokuWiki cachuje veškerý výstup standardně. Pokud to nechcete (např. při použití %%<php>%%), přidáním tohoto makra donutíte DokuWiki, aby stránku renderoval znovu při každém volání |
  
 +===== Syntaxe pluginů =====
  
-===== Control Macros ===== +Syntaxe DokuWiki může být rozšířena pomocí [[doku>plugins|pluginů]]. Jak jsou nainstalované pluginy používány, je popsáno na jejich příslušných stránkáchNásledující syntaxe pluginů je dostupná v této instalaci DokuWiki:
- +
- +
- +
-Some syntax influences how DokuWiki renders a page without creating any output it self. The following control macros are availble: +
- +
- +
- +
-^ Macro           ^ Description | +
- +
-| %%~~NOTOC~~%%   | If this macro is found on the page, no table of contents will be created | +
- +
-| %%~~NOCACHE~~%% | DokuWiki caches all output by default. Sometimes this might not be wanted (eg. when the %%<php>%% syntax above is used), adding this macro will force DokuWiki to rerender a page on every call | +
- +
- +
- +
-===== Syntax Plugins ===== +
- +
- +
- +
-DokuWiki's syntax can be extended by [[doku>plugins|Plugins]]. How the installed plugins are used is described on their appropriate description pagesThe following syntax plugins are available in this particular DokuWiki installation: +
- +
  
 ~~INFO:syntaxplugins~~ ~~INFO:syntaxplugins~~
- 
  
  
wiki/syntax.1717018146.txt.gz · Poslední úprava: 2024/05/29 23:29 autor: 127.0.0.1