Narzędzia użytkownika

Narzędzia witryny


wiki:syntax

Różnice

Różnice między wybraną wersją a wersją aktualną.

Odnośnik do tego porównania

Poprzednia rewizja po obu stronachPoprzednia wersja
wiki:syntax [2016/04/04 21:36] xrogerswiki:syntax [2025/09/09 19:14] (aktualna) – edycja zewnętrzna 127.0.0.1
Linia 1: Linia 1:
-====== Składnia formatowania ======+====== Formatting Syntax ======
  
-[[DokuWiki]] używa **prostego** języka znaczników, który umożliwia pozostawienie tekstu tak czytelnegojak to możliwePoniższa strona zawiera całą dostępną składnię, którą można zastosować edytując treśćZobacz po prostu na treść tej strony wciskając guzik //Edytuj stronę// na górze lub na dole stronyJeżeli chcesz coś wypróbować, to zrób to na stronie [[playground:playground|"piaskownicy"]]. Szybkie formatowanie jest dostępne także za pomocą [[doku>pl:toolbar|szybkich przycisków]].+[[doku>DokuWiki]] supports some simple markup languagewhich tries to make the datafiles to be as readable as possibleThis page contains all possible syntax you may use when editing the pagesSimply have a look at the source of this page by pressing "Edit this page"If you want to try something, just use the [[playground:playground|playground]] pageThe simpler markup is easily accessible via [[doku>toolbar|quickbuttons]], too.
  
-===== Proste formatowanie tekstu =====+===== Basic Text Formatting =====
  
-DokuWiki umożliwia **pogrubienie**, //pochylenie//, __podkreślenie__ i ''stałą szerokość'' tekstuOczywiście można zastosować ich **__//''kombinację''//__**.+DokuWiki supports **bold**, //italic//, __underlined__ and ''monospaced'' textsOf course you can **__//''combine''//__** all these.
  
-  DokuWiki umożliwia **pogrubienie**, //pochylenie//, __podkreślenie__ i ''stałą szerokość'' tekstu.  +  DokuWiki supports **bold**, //italic//, __underlined__ and ''monospaced'' texts
-  Oczywiście można zastosować ich **__//''kombinację''//__**.+  Of course you can **__//''combine''//__** all these.
  
-Można też zastosować <sub>indeks dolny</sub> lub <sup>indeks górny</sup>.+You can use <sub>subscript</sub> and <sup>superscript</sup>, too.
  
-  Można też zastosować <sub>indeks dolny</sub> lub <sup>indeks górny</sup>.+  You can use <sub>subscript</sub> and <sup>superscript</sup>, too.
  
-Można oznaczyć coś jako <del>usunięte</del>.+You can mark something as <del>deleted</del> as well.
  
-  Można oznaczyć coś jako <del>usunięte</del>.+  You can mark something as <del>deleted</del> as well.
  
-**Akapity** są tworzone przez puste linieJeżeli chcesz **wymusić nowy wiersz** bez akapitumożesz wpisać dwukrotny znak odwrotnego ukośnika i spację w środku linii lub dwukrotny znak odwrotnego ukośnika na końcu linii.+**Paragraphs** are created from blank linesIf you want to **force a newline** without a paragraphyou can use two backslashes followed by a whitespace or the end of line.
  
-To jest fragment tekstu z nowymi wierszami\\ Zwróć uwagę że +This is some text with some linebreaks\\ Note that the 
-dwa odwrotne ukośniki są rozpoznawane jedynie na końcu linii\\ +two backslashes are only recognized at the end of a line\\ 
-lub gdy jest za nimi\\ spacja \\a to dzieje się gdy jej nie ma.+or followed by\\ a whitespace \\this happens without it.
  
-  To jest fragment tekstu z nowymi wierszami\\ Zwróć uwagę że +  This is some text with some linebreaks\\ Note that the 
-  dwa odwrotne ukośniki są rozpoznawane jedynie na końcu linii\\ +  two backslashes are only recognized at the end of a line\\ 
-  lub gdy jest za nimi\\ spacja \\a to dzieje się gdy jej nie ma.+  or followed by\\ a whitespace \\this happens without it.
  
-Nie powinno się wymuszać nowego wiersza jeżeli nie jest to naprawdę potrzebne.+You should use forced newlines only if really needed.
  
-===== Linki =====+===== Links =====
  
-DokuWiki udostępnia wiele sposobów tworzenia linków.+DokuWiki supports multiple ways of creating links.
  
-==== Wewnętrzne ====+==== External ====
  
-Wewnętrzne linki są tworzone przy użyciu podwójnych nawiasów prostokątnychMożna podać tylko [[nazwę strony]] lub dodatkowo użyć [[nazwę strony|opisu]].+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.
  
-  Wewnętrzne linki są tworzone przy użyciu nawiasów prostokątnych.  +  DokuWiki supports multiple ways of creating linksExternal links are recognized 
-  Można podać tylko [[nazwę strony]] lub dodatkowo użyć [[nazwę strony|opisu]].+  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. [[doku>pagename|Wiki pagenames]] are converted to lowercase automatically, special characters are not allowed.
Linia 47: Linia 56:
   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>pl:namespaces]].+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]]. 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]].
Linia 56: Linia 65:
  
   * Links to [[syntax|existing pages]] are shown in a different style from [[nonexisting]] ones.   * Links to [[syntax|existing pages]] are shown in a different style from [[nonexisting]] ones.
-  * DokuWiki does not use [[wppl>CamelCase]] to automatically create links by default, but this behavior can be enabled in the [[doku>pl:config]] file. Hint: If DokuWiki is a link, then it's enabled.+  * 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.   * When a section's heading is changed, its bookmark changes, too. So don't rely on section linking too much.
  
-==== Zewnętrzne ====+==== Interwiki ====
  
-Linki zewnętrzne są rozpoznawane automatycznie: http://www.google.com lub po prostu www.google.com. Można też zmienić nazwę linka: [[http://www.google.com|To link który prowadzi do Google]]. Adresy e-mail są wyświetlane tak<andi@splitbrain.org>.+DokuWiki supports [[doku>Interwiki]] linksThese are quick links to other WikisFor example this is a link to Wikipedia'page about Wikis[[wp>Wiki]].
  
-  Linki zewnętrzne są rozpoznawane automatycznie: http://www.google.com lub po prostu www.google.com. +  DokuWiki supports [[doku>Interwiki]] links. These are quick links to other Wikis
-  Można też zmienić nazwę linka: [[http://www.google.com|To link który prowadzi do Google]].  +  For example this is a link to Wikipedia'page about Wikis[[wp>Wiki]].
-  Adresy e-mail są wyświetlane tak<andi@splitbrain.org>.+
  
 +==== 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]].
  
-==== Interwiki ====+  Windows Shares like [[\\server\share|this]] are recognized, too.
  
-DokuWiki umożliwia tworzenie linków [[doku>pl:interwiki|Interwiki]]. Są to szybkie linki do innych systemów Wiki. Na przykład to jest link do strony w Wikipedii na temat [[wp>Wiki]].+Notes:
  
-  DokuWiki umożliwia tworzenie linków [[doku>interwiki|Interwiki]]. Są to szybkie linki  +  * For security reasons direct browsing of windows shares only works in Microsoft Internet Explorer per default (and only in the "local zone"). 
-  do innych systemów WikiNa przykład to jest link do strony w Wikipedii na temat [[wp>Wiki]].+  * For Mozilla and Firefox it can be enabled through different workaround mentioned in the [[http://kb.mozillazine.org/Links_to_local_pages_do_not_work|Mozilla Knowledge Base]]. However, there will still be a JavaScript warning about trying to open a Windows ShareTo remove this warning (for all users), put the following line in ''conf/lang/en/lang.php'' (more details at [[doku>localization#changing_some_localized_texts_and_strings_in_your_installation|localization]]): <code - conf/lang/en/lang.php> 
 +<?php 
 +/** 
 + * Customization of the english language file 
 + * Copy only the strings that needs to be modified 
 + */ 
 +$lang['js']['nosmblinks'] = ''; 
 +</code>
  
 +==== Image Links ====
  
-==== Udziały sieciowe Windows ====+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:
  
-Udziały sieciowe Windows, takie jak [[\\server\share|ten]], są także rozpoznawaneProszę zauważyć że takie linki mają sens tylko w homogenicznych grupach użytkowników jak w korporacyjnym [[wppl>Intranet|intranecie]].+  [[http://php.net|{{wiki:dokuwiki-128.png}}]]
  
-  Udziały sieciowe Windows takie jak [[\\server\share|ten]] są także rozpoznawane.+[[http://php.net|{{wiki:dokuwiki-128.png}}]]
  
-Uwagi:+Please noteThe image formatting is the only formatting syntax accepted in link names.
  
-  * Ze względów bezpieczeństwa bezpośrednie przeglądanie udziałów sieciowych działa domyślnie tylko w Microsoft Internet Explorer (i tylko w "strefie lokalnej"). +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).
-  * W Mozilli i Firefox można tę funkcję uaktywnić za pomocą opcji [[http://www.mozilla.org/quality/networking/docs/netprefs.html#file|security.checkloaduri]], lecz nie jest to zalecane. +
-  * Zobacz więcej szczegółów w [[bug>151]].+
  
 +===== Footnotes =====
  
-==== Linki w grafice ====+You can add footnotes ((This is a footnote)) by using double parentheses.
  
-Możesz utworzyć link wewnętrzny lub zewnętrzny w grafice wklejonej na stronie poprzez złączenie składni linku i [[#zdjęcia i inne pliki|grafiki]] (zobacz poniżejw ten sposób:+  You can add footnotes ((This is a footnote)by using double parentheses.
  
-  [[https://www.php.net|{{wiki:dokuwiki-128.png}}]]+===== Sectioning =====
  
-[[https://www.php.net|{{wiki:dokuwiki-128.png}}]]+You can use up to five different levels of headlines to structure your contentIf 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.
  
-Uwaga: Formatowanie grafiki jest jedynym elementem składni, który można użyć w linkach.+==== Headline Level 3 ==== 
 +=== Headline Level 4 === 
 +== Headline Level 5 ==
  
-Jest tu dozwolona całość składni [[#zdjęcia i inne pliki|grafiki]] i [[#linki|linków]] (w tym skalowanie grafiki, grafika wewnętrzna i zewnętrzna oraz łącza URL i interwiki.+  ==== Headline Level 3 ==== 
 +  === Headline Level 4 === 
 +  == Headline Level 5 ==
  
 +By using four or more dashes, you can make a horizontal line:
  
-===== Przypisy =====+----
  
-Można dodawać przypisy ((To jest przypis)) używając podwójnych nawiasów.+===== Media Files =====
  
-  Można dodawać przypisy ((To jest przypis)) używając podwójnych nawiasów.+You can include external and internal [[doku>images|images, videos and audio files]] with curly brackets. Optionally you can specify the size of them.
  
-===== Podział na sekcje (tytuły) =====+Real size:                        {{wiki:dokuwiki-128.png}}
  
-Można używać do pięciu poziomów tytułów by nadać treści strony strukturę hierarchiczną. Jeżeli w dokumencie będzie więcej niż trzy tytuły, spis treści zostanie wygenerowany automatycznie -- można to zablokować poprzez dodanie napisu ''<nowiki>~~NOTOC~~</nowiki>'' w treści dokumentu.+Resize to given width:            {{wiki:dokuwiki-128.png?50}}
  
-==== Tytuł poziomu 3 ==== +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}}
-=== Tytuł poziomu 4 === +
-== Tytuł poziomu 5 ==+
  
-  ==== Tytuł poziomu 3 ==== +Resized external image:           {{https://www.php.net/images/php.gif?200x50}}
-  === Tytuł poziomu 4 === +
-  == Tytuł poziomu 5 ==+
  
-Używając czterech lub więcej kresek (znak minus), można uzyskać poziomą linię:+  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:           {{https://www.php.net/images/php.gif?200x50}}
  
----- 
  
 +By using left or right whitespaces you can choose the alignment.
  
 +{{ wiki:dokuwiki-128.png}}
  
-===== Zdjęcia i inne pliki =====+{{wiki:dokuwiki-128.png }}
  
-Możesz wstawić wewnętrzne lub zewnętrzne [[doku>images|zdjęcie]] za pomocą nawiasów klamrowych. Opcjonalnie można ustalić jego wielkość.+{{ wiki:dokuwiki-128.png }}
  
-Normalny rozmiar                {{wiki:dokuwiki-128.png}}+  {{ wiki:dokuwiki-128.png}} 
 +  {{wiki:dokuwiki-128.png }} 
 +  {{ wiki:dokuwiki-128.png }}
  
-Skalowane do podanej szerokości:  {{wiki:dokuwiki-128.png?50}}+Of course, you can add a title (displayed as a tooltip by most browsers), too.
  
-Podana szerokość i wysokość:      {{wiki:dokuwiki-128.png?200x50}}+{{ wiki:dokuwiki-128.png |This is the caption}}
  
-Przeskalowana grafika zewnętrzna: {{https://php.net/images/php.gif?200x50}}+  {{ wiki:dokuwiki-128.png |This is the caption}}
  
-  Normalny rozmiar:                 {{wiki:dokuwiki-128.png}} +For linking an image to another page see [[#Image Links]] above.
-  Skalowane do podanej szerokości:  {{wiki:dokuwiki-128.png?50}} +
-  Podana szerokość i wysokość:      {{wiki:dokuwiki-128.png?200x50}} +
-  Przeskalowana grafika zewnętrzna: {{https://php.net/images/php.gif?200x50}}+
  
-Dodając spacji z lewej lub prawej możesz odpowiednio wyrównać grafikę.+==== Supported Media Formats ====
  
-{{ wiki:dokuwiki-128.png}}+DokuWiki can embed the following media formats directly.
  
-{{wiki:dokuwiki-128.png }}+| Image | ''gif'', ''jpg'', ''png'' 
 +| Video | ''webm'', ''ogv'', ''mp4''
 +| Audio | ''ogg'', ''mp3'', ''wav'' 
 +| Flash | ''swf''                    |
  
-{{ wiki:dokuwiki-128.png }}+If you specify a filename that is not a supported media format, then it will be displayed as a link instead.
  
-  {{ wiki:dokuwiki-128.png}} +By adding ''?linkonly'' you provide a link to the media without displaying it inline
-  {{wiki:dokuwiki-128.png }} +
-  {{ wiki:dokuwiki-128.png }}+
  
-Oczywiście można też dodać podpis (wyświetlany jako podpowiedź przez większość przeglądarek).+  {{wiki:dokuwiki-128.png?linkonly}}
  
-{{ wiki:dokuwiki-128.png |To jest podpis}}+{{wiki:dokuwiki-128.png?linkonly}} This is just a link to the image.
  
-  {{ wiki:dokuwiki-128.png |To jest podpis}}+==== Fallback Formats ====
  
-Jeżeli podasz nazwę pliku (wewnętrznego lub zewnętrznego) który nie jest zdjęciem (''gifjpeg, png''), to w zamian pojawi się link do niego.+Unfortunately not all browsers understand all video and audio formats. To mitigate the problemyou can upload your file in different formats for maximum browser compatibility.
  
-Składnia dla linków do [[#Linki w grafice|grafiki z innych stron]] opisana powyżej.+For example consider this embedded mp4 video:
  
-===== Listy =====+  {{video.mp4|A funny video}}
  
-Dokuwiki wspiera tworzenie numerowanych i nienumerowanych listBy utworzyć punkt listy, zrób wcięcie tekstu wstawiając na początku wiersza dwie spacje i wpisz ''*'' dla podpunktu nienumerowanego lub ''-'' dla numerowanego.+When you upload a ''video.webm'' and ''video.ogv'' next to the referenced ''video.mp4'', DokuWiki will automatically add them as alternatives so that one of the three files is understood by your browser.
  
 +Additionally DokuWiki supports a "poster" image which will be shown before the video has started. That image needs to have the same filename as the video and be either a jpg or png file. In the example above a ''video.jpg'' file would work.
  
-  * To jest lista +===== Lists =====
-  * To druga pozycja +
-    * Może być wiele poziomów wypunktowań +
-  * Jeszcze jeden podpunkt+
  
-  - Ta sama listalecz numerowana +Dokuwiki supports ordered and unordered lists. To create a list itemindent your text by two spaces and use a ''*'' for unordered lists or a ''-'' for ordered ones. 
-  - Kolejny podpunkt + 
-    - Po prostu użyj wcięcia tekstu, by zaznaczyć poziom +  * This is a list 
-  - To jest to+  * 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> <code>
-  * To jest lista +  * This is a list 
-  * To druga pozycja +  * The second item 
-    * Może być wiele poziomów wypunktowań +    * You may have different levels 
-  * Jeszcze jeden podpunkt+  * Another item
  
-  - Ta sama lista, lecz numerowana +  - The same list but ordered 
-  - Kolejny podpunkt +  - Another item 
-    - Po prostu użyj wcięcia tekstu, by zaznaczyć poziom +    - Just use indention for deeper levels 
-  - To jest to+  - That's it
 </code> </code>
  
 +Also take a look at the [[doku>faq:lists|FAQ on list items]].
  
-===== Konwersja tekstu =====+===== Text Conversions =====
  
-DokuWiki może zamieniać określone, predefiniowane znaki lub ciągi znaków na grafikę lub inny tekst lub HTML.+DokuWiki can convert certain pre-defined characters or strings into images or other text or HTML.
  
-Zamiana na grafikę dotyczy przede wszystkim emotikonZamianę na tekst lub HTML stosuje się zaś głównie do poprawek typograficznychmoże być jednak równie dobrze skonfigurowana do innych czynności.+The text to image conversion is mainly done for smileysAnd the text to HTML conversion is used for typography replacementsbut can be configured to use other HTML as well.
  
-==== Emotikony ====+==== Text to Image Conversions ====
  
-DokuWiki przekształca często używane [[http://pl.wikipedia.org/wiki/emotikony|emotikony]] do ich graficznego odpowiednikaDodatkowe znaki można umieścić w katalogu ''smiley'' i skonfigurować w pliku ''conf/smileys.conf''. Poniżej przegląd emotikon zawartych w DokuWiki.+DokuWiki converts commonly used [[wp>emoticon]]s to their graphical equivalentsThose [[doku>Smileys]] and other images can be configured and extendedHere is an overview of Smileys included in DokuWiki:
  
   * 8-) %%  8-)  %%   * 8-) %%  8-)  %%
Linia 219: Linia 247:
   * ;-) %%  ;-)  %%   * ;-) %%  ;-)  %%
   * ^_^ %%  ^_^  %%   * ^_^ %%  ^_^  %%
 +  * m(  %%  m(   %%
   * :?: %%  :?:  %%   * :?: %%  :?:  %%
   * :!: %%  :!:  %%   * :!: %%  :!:  %%
Linia 225: Linia 254:
   * DELETEME %% DELETEME %%   * DELETEME %% DELETEME %%
  
 +==== Text to HTML Conversions ====
  
- +Typography: [[DokuWiki]] can convert simple text characters to their typographically correct entities. Here is an example of recognized characters.
-==== Typografia ==== +
- +
-[[DokuWiki]] może konwertować proste oznaczenia tekstowe na poprawne typograficznie znakiOto przykłady rozpoznawanych kombinacji znaków:+
  
 -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r)
Linia 239: Linia 266:
 </code> </code>
  
-Uwaga: Ta konwersja może być wyłączona przez [[doku>config#typography|opcję konfiguracyjną]] lub [[doku>entities|plik wzorcowy?]].+The same can be done to produce any kind of HTML, it just needs to be added to the [[doku>entities|pattern file]].
  
 +There are three exceptions which do not come from that pattern file: multiplication entity (640x480), 'single' and "double quotes". They can be turned off through a [[doku>config:typography|config option]].
  
-===== Cytowanie =====+===== Quoting =====
  
-Czasami chcesz zaznaczyć część tekstu by pokazać iż jest odpowiedzią lub komentarzemZastosuj wtedy następującą składnię:+Some times you want to mark some text to show it's a reply or commentYou can use the following syntax:
  
-  Myślę, że powinniśmy tak zrobić. +<code
-   +I think we should do it
-  Nie, nie powinniśmy   +
-  >> A moim zdaniem powinniśmy. +
-  > Naprawdę? +
-  >> Tak! +
-  >>> Więc zróbmy tak!+
  
-Myślę, że powinniśmy tak zrobić. +No we shouldn't
-Nie, nie powinniśmy +
->> A moim zdaniem powinniśmy. +
-> Naprawdę? +
->> Tak! +
->>> Więc zróbmy tak!+
  
 +>> Well, I say we should
  
-===== Tabele =====+> Really?
  
-DokuWiki posiada prostą składnię do tworzenia tabel.+>> Yes!
  
-^ Nagłówek 1  ^ Nagłówek 2  ^ Nagłówek 3  ^ +>>> Then lets do it! 
-| w1k1        | w1k2        | w1k3        | +</code>
-| w1k1        | :::         | w1k3        |+
  
-^ Nagłówek 1            ^ Nagłówek 2             ^ Nagłówek 3                ^ +I think we should do it
-| Wiersz 1 Kolumna 1    | Wiersz 1 Kolumna 2     | Wiersz 1 Kolumna 3        | +
-| Wiersz 2 Kolumna 1    | złączona kolumna (zwróć uwagę na podwójną kreskę) || +
-| Wiersz 3 Kolumna 1    | Wiersz 2 Kolumna 2     | Wiersz 2 Kolumna 3        |+
  
-Kolumny tabeli powinny zaczynać się od ''|'' dla normalnych komórek i od ''^'' dla nagłówków.+> No we shouldn't
  
-  ^ Nagłówek 1            ^ Nagłówek 2             ^ Nagłówek 3                ^ +>> Well, I say we should
-  | Wiersz 1 Kolumna 1    | Wiersz 1 Kolumna 2     | Wiersz 1 Kolumna 3        | +
-  | Wiersz 2 Kolumna 1    | złączona kolumna (zwróć uwagę na podwójną kreskę) || +
-  | Wiersz 3 Kolumna 1    | Wiersz 2 Kolumna 2     | Wiersz 2 Kolumna 3        |+
  
-By połączyć komórki poziomo, pozostaw następną komórkę całkowicie pustą, jak w przykładzie powyżej. Upewnij się że zawsze masz tę samą ilość separatorów komórek w wierszu!+> Really?
  
-Można też utworzyć nagłówki wierszy w pionie.+>> Yes!
  
-|               ^ Nagłówek 1                  ^ Nagłówek 2                ^ +>>> Then lets do it!
-^ Nagłówek 3    | Wiersz 1 Kolumna 2          | Wiersz 1 Kolumna 3        | +
-^ Nagłówek 4    | tym razem bez łączenia      |                           | +
-^ Nagłówek 5    | Wiersz 2 Kolumna 2          | Wiersz 2 Kolumna 3        |+
  
-Jak zauważyłeś, to separator komórki decyduje o formatowaniu:+===== Tables =====
  
-  |               ^ Nagłówek 1                  ^ Nagłówek 2                ^ +DokuWiki supports a simple syntax to create tables.
-  ^ Nagłówek 3    | Wiersz 1 Kolumna 2          | Wiersz 1 Kolumna 3        | +
-  ^ Nagłówek 4    | tym razem bez łączenia      |                           | +
-  ^ Nagłówek 5    | Wiersz 2 Kolumna 2          | Wiersz 2 Kolumna 3        |+
  
-Można również łączyć komórki w pionie, poprzez umieszczenie '':::'' w komórkach znajdujących się poniżej tej, z którą chcemy je połączyć.+^ 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 3 Col 2     | Row 3 Col 3        |
  
-Nagłówek 1            ^ Nagłówek 2                    ^ Nagłówek 3                ^ +Table rows have to start and end with a ''|'' for normal rows or a ''^'' for headers.
-| Wiersz 1 Kolumna 1    | ta kolumna łączy się w pionie | Wiersz 1 Kolumna 3        | +
-| Wiersz 2 Kolumna 1    | :::                           | Wiersz 2 Kolumna 3        | +
-| Wiersz 3 Kolumna 1    | :::                           | Wiersz 2 Kolumna 3        |+
  
-Poza ww. składnią, komórki te nie mogą posiadać żadnej innej treści.+  ^ 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 3 Col 2     | Row 3 Col 3        |
  
-  ^ Nagłówek 1            ^ Nagłówek 2                    ^ Nagłówek 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!
-  | Wiersz 1 Kolumna 1    | ta kolumna łączy się w pionie | Wiersz 1 Kolumna 3        | +
-  | Wiersz 2 Kolumna 1    | :::                           | Wiersz 2 Kolumna 3        | +
-  | Wiersz 3 Kolumna 1    | :::                           | Wiersz 2 Kolumna 3        |+
  
-Można też wyrównywać zawartość tabeli. Po prostu dodaj dwie spacje po przeciwnej stronie tekstu: Dodaj dwie spacje po lewej stronie aby wyrównać do prawejdwie spacje po prawej stronie aby wyrównać do lewej lub po dwie spacje po obu stronach aby tekst wyśrodkować.+Vertical tableheaders are possibletoo.
  
 +|              ^ 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        |
  
-^           Tabela z wyrównaniem           ^^^ +As you can see, it's the cell separator before a cell which decides about the formatting: 
-|         prawo|    środek    |lewo          | + 
-|lewo                  prawo|    środek    |+  |              ^ 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        | 
 + 
 +You can have rowspans (vertically connected cells) by adding ''%%:::%%'' into the cells below the one to which they should connect. 
 + 
 +^ Heading 1      ^ Heading 2                  ^ Heading 3          ^ 
 +| Row 1 Col 1    | this cell spans vertically | Row 1 Col 3        | 
 +| Row 2 Col 1    | :::                        | Row 2 Col 3        | 
 +| Row 3 Col 1    | :::                        | Row 2 Col 3        | 
 + 
 +Apart from the rowspan syntax those cells should not contain anything else. 
 + 
 +  ^ Heading 1      ^ Heading 2                  ^ Heading 3          ^ 
 +  | Row 1 Col 1    | this cell spans vertically | Row 1 Col 3        | 
 +  | Row 2 Col 1    | :::                        | Row 2 Col 3        | 
 +  | Row 3 Col 1    | :::                        | Row 2 Col 3        | 
 + 
 +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 | | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx |
  
-Tak to wygląda w tekście źródłowym:+This is how it looks in the source:
  
-  ^           Tabela z wyrównaniem           ^^^ +  ^           Table with alignment           ^^^ 
-  |         prawo|    środek    |lewo          | +  |         right|    center    |left          | 
-  |lewo                  prawo|    środek    |+  |left                  right|    center    |
   | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx |   | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx |
  
 +Note: Vertical alignment is not supported.
  
 +===== No Formatting =====
  
 +If you need to display text exactly like it is typed (without any formatting), enclose the area either with ''%%<nowiki>%%'' tags or even simpler, with double percent signs ''<nowiki>%%</nowiki>''.
  
-===== Fragmenty niesformatowane =====+<nowiki> 
 +This is some text which contains addresses like this: http://www.splitbrain.org and **formatting**, but nothing is done with it. 
 +</nowiki> 
 +The same is true for %%//__this__ text// with a smiley ;-)%%.
  
-Możesz włączyć do tekstu fragmentyktóre nie będą formatowane poprzez poprzedzenie wiersza dwiema spacjami (jak we wszystkich powyższych przykładachlub używając znaczników ''code'' lub ''file''.+  <nowiki> 
 +  This is some text which contains addresses like this: http://www.splitbrain.org and **formatting**but nothing is done with it. 
 +  </nowiki> 
 +  The same is true for %%//__this__ text// with a smiley ;-)%%. 
 + 
 +===== Code Blocks ===== 
 + 
 +You can include code 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>%%''
 + 
 +  This is text is indented by two spaces.
  
 <code> <code>
-To fragment wcześniej sformatowanego kodu zawierającego spacje, które są zachowane               <-w ten sposób.+This is preformatted code all spaces are preserved: like              <-this
 </code> </code>
  
 <file> <file>
-Mniej więcej to samo; można używać do cytowania fragmentów pliku.+This is pretty much the same, but you could use it to show that you quoted a file.
 </file> </file>
  
-By parser całkowicie zignorował pewien fragment (tzn. nie formatował go), ujmij ten fragment w znaczniki ''nowiki'' lub - jeszcze prościej - w podwójny znak procenta ''<nowiki>%%</nowiki>''.+Those blocks were created by this source:
  
-<nowiki> +    This is text is indented by two spaces.
-To jest fragment tekstu, który zawiera adres: http://www.splitbrain.org ale **formatowanie** tu nie występuje. +
-</nowiki>+
  
-Zobacz źródło tej strony żeby zobaczyć jak używać bloków.+  <code> 
 +  This is preformatted code all spaces are preserved: like              <-this 
 +  </code>
  
 +  <file>
 +  This is pretty much the same, but you could use it to show that you quoted a file.
 +  </file>
  
-===== Podświetlanie składni =====+==== Syntax Highlighting ====
  
-[[DokuWiki]] może podświetlać składnię kodu źródłowegoco ułatwia jego czytanieW tym celu używa [[http://qbnz.com/highlighter/|GeSHi]] Generic Syntax Highlighter -- więc każdy język wspierany przez GeSHi jest rozpoznawanySkładnia jest taka sama jak w blokach kodu w poprzednim akapicieale tym razem w znaczniku jest wstawiona dodatkowo nazwa zastosowanego językanp. ''<nowiki><code java></nowiki>''.+[[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 uses the same code and file blocks described in the previous sectionbut this time the name of the language syntax to be highlighted is included inside the tage.g. ''<nowiki><code java></nowiki>'' or ''<nowiki><file java></nowiki>''.
  
 <code java> <code java>
-/** +/**
  * The HelloWorldApp class implements an application that  * The HelloWorldApp class implements an application that
  * simply displays "Hello World!" to the standard output.  * simply displays "Hello World!" to the standard output.
Linia 367: Linia 418:
 </code> </code>
  
-Obecnie są rozpoznawane następujące języki: //actionscript-french, actionscript, adaapacheapplescriptasmaspautoitbashblitzbasiccaddclcadlispcfdgcfmc_macccppcsharpcssdelphidiffdivdosdeiffelfortranfreebasicgmlgroovyhtml4strictidliniinnojava5javajavascriptlatexlispluamatlabmpasmmysqlnsisobjcocaml-briefocamloobasoracle8pascalperlphp-briefphppythonqbasicregrobotsrubysasschemesdlbasicsmalltalksmartysqltcltextthinbasictsqlvbnetvbvhdlvisualfoxprowinbatchxml//+The following language strings are currently recognized: //4cs 6502acme 6502kickass 6502tasm 68000devpac abap actionscript3 actionscript ada aimms algol68 apache applescript apt_sources arm asm asp asymptote autoconf autohotkey autoit avisynth awk bascomavr bash basic4gl batch bf biblatex bibtex blitzbasic bnf boo caddcl cadlisp ceylon cfdg cfm chaiscript chapel cil c_loadrunner clojure c_mac cmake cobol coffeescript c cpp cpp-qt cpp-winapi csharp css cuesheet c_winapi dart dcl dcpu16 dcs delphi diff div dos dot ecmascript eiffel email epc e erlang euphoria ezt f1 falcon fo fortran freebasic freeswitch fsharp gambas gdb genero genie gettext glsl gml gnuplot go groovy gwbasic haskell haxe hicest hq9plus html html4strict html5 icon idl ini inno intercal io ispfpanel java5 java javascript jcl j jquery julia kixtart klonec klonecpp kotlin latex lb ldif lisp llvm locobasic logtalk lolcode lotusformulas lotusscript lscript lsl2 lua m68k magiksf make mapbasic mathematica matlab mercury metapost mirc mk-61 mmix modula2 modula3 mpasm mxml mysql nagios netrexx newlisp nginx nimrod nsis oberon2 objc objeck ocaml-brief ocaml octave oobas oorexx oracle11 oracle8 oxygene oz parasail parigp pascal pcre perl6 perl per pf phix php-brief php pic16 pike pixelbender pli plsql postgresql postscript povray powerbuilder powershell proftpd progress prolog properties providex purebasic pycon pys60 python qbasic qml q racket rails rbs rebol reg rexx robots roff rpmspec rsplus ruby rust sas sass scala scheme scilab scl sdlbasic smalltalk smarty spark sparql sql sshconfig standardml stonescript swift systemverilog tclegg tcl teraterm texgraph text thinbasic tsql twig typoscript unicon upc urbi uscript vala vbnet vb vbscript vedit verilog vhdl vim visualfoxpro visualprolog whitespace whois winbatch wolfram xbasic xml xojo xorg_conf xpp yaml z80 zxbasic//
  
 +There are additional [[doku>syntax_highlighting|advanced options]] available for syntax highlighting, such as highlighting lines or adding line numbers.
  
 +==== Downloadable Code Blocks ====
  
-===== Wstawianie HTML i PHP ===== +When you use the ''%%<code>%%'' or ''%%<file>%%'' syntax as above, you might want to make the shown code available for download as well. You can do this by specifying a file name after language code like this:
- +
-Możesz wbudować w swój dokument czysty kod HTML i PHP używając znaczników ''html'' lub ''php'' w ten sposób:+
  
 <code> <code>
-<html+<file php myexample.php
-To jest trochę kodu <font color="redsize="+1">HTML</font+<?php echo "hello world!"; ?
-</html>+</file>
 </code> </code>
  
-<html+<file php myexample.php
-To jest trochę kodu <font color="redsize="+1">HTML</font+<?php echo "hello world!"; ?
-</html>+</file>
  
-<code> +If you don't want any highlighting but want a downloadable file, specify a dash (''-'') as the language code: ''%%<code - myfile.foo>%%''
-<php> + 
-echo 'A logo generated by PHP:'; +===== RSS/ATOM Feed Aggregation ===== 
-echo '<img src="' $_SERVER['PHP_SELF'] . '?=php_logo_guid('" alt="PHP Logo !" />'; +[[DokuWiki]] can integrate data from external XML feedsFor parsing the XML feeds, [[http://simplepie.org/|SimplePie]is usedAll formats understood by SimplePie can be used in DokuWiki as well. You can influence the rendering by multiple additional space separated parameters: 
-</php+ 
-</code>+^ 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. All HTML tags will be stripped | 
 +| nosort     | do not sort the items in the feed | 
 +| //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. 
 + 
 +By default the feed will be sorted by date, newest items first. You can sort it by oldest first using the ''reverse'' parameter, or display the feed as is with ''nosort''. 
 + 
 +**Example:** 
 + 
 +  {{rss>http://slashdot.org/index.rss 5 author date 1h }} 
 + 
 +{{rss>http://slashdot.org/index.rss 5 author date 1h }} 
 + 
 + 
 +===== Control Macros ===== 
 + 
 +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 =====
  
-<php> +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:
-echo 'A logo generated by PHP:'; +
-echo '<img src="' . $_SERVER['PHP_SELF'] . '?=' php_logo_guid() . '" alt="PHP Logo !" />'; +
-</php>+
  
-**Uwaga**wstawianie HTML i PHP jest domyślnie wyłączone w konfiguracji. Jeżeli tak jest, kod jest wyświetlany bez interpretacji.+~~INFO:syntaxplugins~~
  
wiki/syntax.1459805760.txt.gz · ostatnio zmienione: przez xrogers