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
Nowa wersjaNastępna rewizja po obu stronach
wiki:syntax [2014/06/11 22:51] xrogerswiki:syntax [2015/08/23 13:57] – 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 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 ==== 
- 
-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>. 
- 
-  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>. 
- 
- 
  
 ==== Interwiki ==== ==== Interwiki ====
  
-DokuWiki umożliwia tworzenie linków [[doku>pl:interwiki|Interwiki]]. Są to szybkie linki do innych systemów WikiNa przykład to jest link do strony w Wikipedii na temat [[wp>Wiki]].+DokuWiki supports [[doku>Interwiki]] linksThese are quick links to other WikisFor example this is a link to Wikipedia's page about Wikis: [[wp>Wiki]].
  
-  DokuWiki umożliwia tworzenie linków [[doku>interwiki|Interwiki]]. Są to szybkie linki  +  DokuWiki supports [[doku>Interwiki]] linksThese are quick links to other Wikis. 
-  do innych systemów Wiki. Na przykład to jest link do strony w Wikipedii na temat [[wp>Wiki]].+  For example this is a link to Wikipedia's page about Wikis: [[wp>Wiki]].
  
 +==== Windows Shares ====
  
-==== Udziały sieciowe Windows ====+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]].
  
-Udziały sieciowe Windows, takie jak [[\\server\share|ten]], są także rozpoznawane. Proszę zauważyć że takie linki mają sens tylko w homogenicznych grupach użytkowników jak w korporacyjnym [[wppl>Intranet|intranecie]].+  Windows Shares like [[\\server\share|this]] are recognizedtoo.
  
-  Udziały sieciowe Windows takie jak [[\\server\share|ten]] są także rozpoznawane.+Notes:
  
-Uwagi:+  * 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 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 Share. To 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>
  
-  * 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"). +==== Image 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]].+
  
- +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 belowlike this:
-==== Linki w grafice ==== +
- +
-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:+
  
   [[http://www.php.net|{{wiki:dokuwiki-128.png}}]]   [[http://www.php.net|{{wiki:dokuwiki-128.png}}]]
Linia 98: Linia 101:
 [[http://www.php.net|{{wiki:dokuwiki-128.png}}]] [[http://www.php.net|{{wiki:dokuwiki-128.png}}]]
  
-UwagaFormatowanie grafiki jest jedynym elementem składni, który można użyć w linkach. +Please noteThe image formatting is the only formatting syntax accepted in link names.
- +
-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.+
  
 +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).
  
-===== Przypisy =====+===== Footnotes =====
  
-Można dodawać przypisy ((To jest przypis)) używając podwójnych nawiasów.+You can add footnotes ((This is a footnote)) by using double parentheses.
  
-  Można dodawać przypisy ((To jest przypis)) używając podwójnych nawiasów.+  You can add footnotes ((This is a footnote)) by using double parentheses.
  
-===== Podział na sekcje (tytuły) =====+===== Sectioning =====
  
-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łyspis treści zostanie wygenerowany automatycznie -- można to zablokować poprzez dodanie napisu ''<nowiki>~~NOTOC~~</nowiki>'' w treści dokumentu.+You can use up to five different levels of headlines to structure your contentIf you have more than three headlinesa table of contents is generated automatically -- this can be disabled by including the string ''<nowiki>~~NOTOC~~</nowiki>'' in the document.
  
-==== Tytuł poziomu 3 ==== +==== Headline Level 3 ==== 
-=== Tytuł poziomu 4 === +=== Headline Level 4 === 
-== Tytuł poziomu 5 ==+== Headline Level 5 ==
  
-  ==== Tytuł poziomu 3 ==== +  ==== Headline Level 3 ==== 
-  === Tytuł poziomu 4 === +  === Headline Level 4 === 
-  == Tytuł poziomu 5 ==+  == Headline Level 5 ==
  
-Używając czterech lub więcej kresek (znak minus)można uzyskać poziomą linię:+By using four or more dashesyou can make a horizontal line:
  
 ---- ----
  
 +===== Media Files =====
  
 +You can include external and internal [[doku>images|images, videos and audio files]] with curly brackets. Optionally you can specify the size of them.
  
-===== Zdjęcia i inne pliki =====+Real size:                        {{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ść.+Resize to given width:            {{wiki:dokuwiki-128.png?50}}
  
-Normalny rozmiar                {{wiki:dokuwiki-128.png}}+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}}
  
-Skalowane do podanej szerokości {{wiki:dokuwiki-128.png?50}}+Resized external image          {{http://de3.php.net/images/php.gif?200x50}}
  
-Podana szerokość i wysokość     {{wiki:dokuwiki-128.png?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}}
  
-Przeskalowana grafika zewnętrzna: {{http://de3.php.net/images/php.gif?200x50}} 
  
-  Normalny rozmiar:                 {{wiki:dokuwiki-128.png}} +By using left or right whitespaces you can choose the alignment.
-  Skalowane do podanej szerokości:  {{wiki:dokuwiki-128.png?50}} +
-  Podana szerokość i wysokość:      {{wiki:dokuwiki-128.png?200x50}} +
-  Przeskalowana grafika zewnętrzna: {{http://de3.php.net/images/php.gif?200x50}} +
- +
-Dodając spacji z lewej lub prawej możesz odpowiednio wyrównać grafikę.+
  
 {{ wiki:dokuwiki-128.png}} {{ wiki:dokuwiki-128.png}}
Linia 156: Linia 157:
   {{ wiki:dokuwiki-128.png }}   {{ wiki:dokuwiki-128.png }}
  
-Oczywiście można też dodać podpis (wyświetlany jako podpowiedź przez większość przeglądarek).+Of course, you can add a title (displayed as a tooltip by most browsers), too.
  
-{{ wiki:dokuwiki-128.png |To jest podpis}}+{{ wiki:dokuwiki-128.png |This is the caption}}
  
-  {{ wiki:dokuwiki-128.png |To jest podpis}}+  {{ wiki:dokuwiki-128.png |This is the caption}}
  
-Jeżeli podasz nazwę pliku (wewnętrznego lub zewnętrznego) który nie jest zdjęciem (''gif, jpeg, png''), to w zamian pojawi się link do niego.+For linking an image to another page see [[#Image Links]] above.
  
-Składnia dla linków do [[#Linki w grafice|grafiki z innych stron]] opisana powyżej.+==== Supported Media Formats ====
  
-===== Listy =====+DokuWiki can embed the following media formats directly.
  
-Dokuwiki wspiera tworzenie numerowanych i nienumerowanych list. By utworzyć punkt listyzrób wcięcie tekstu wstawiając na początku wiersza dwie spacje i wpisz ''*'' dla podpunktu nienumerowanego lub ''-'' dla numerowanego.+| Image | ''gif'', ''jpg'', ''png'' 
 +| Video | ''webm'', ''ogv'', ''mp4''
 +| Audio | ''ogg'', ''mp3'', ''wav''  | 
 +| Flash | ''swf''                    |
  
 +If you specify a filename that is not a supported media format, then it will be displayed as a link instead.
  
-  * To jest lista +By adding ''?linkonly'' you provide a link to the media without displaying it inline
-  * To druga pozycja +
-    * Może być wiele poziomów wypunktowań +
-  * Jeszcze jeden podpunkt+
  
-  - Ta sama listalecz numerowana +  {{wiki:dokuwiki-128.png?linkonly}} 
-  - Kolejny podpunkt + 
-    - Po prostu użyj wcięcia tekstu, by zaznaczyć poziom +{{wiki:dokuwiki-128.png?linkonly}} This is just a link to the image. 
-  - To jest to+ 
 +==== Fallback Formats ==== 
 + 
 +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. 
 + 
 +For example consider this embedded mp4 video: 
 + 
 +  {{video.mp4|A funny video}} 
 + 
 +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. 
 + 
 +===== 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> <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 225: Linia 253:
   * 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 265:
 </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. +No we shouldn'
-  Naprawdę+ 
-  >> Tak+>> Well, I say we should 
-  >>> Więc zróbmy tak!+ 
 +Really
 + 
 +>> Yes
 + 
 +>>> Then lets do it! 
 +</code> 
 + 
 +I think we should do it 
 + 
 +> No we shouldn'
 + 
 +>> Well, I say we should
  
-Myślę, że powinniśmy tak zrobić. +Really?
-Nie, nie powinniśmy +
->> A moim zdaniem powinniśmy. +
-> Naprawdę? +
->> Tak! +
->>> Więc zróbmy tak!+
  
 +>> Yes!
  
-===== Tabele =====+>>> Then lets do it!
  
-DokuWiki posiada prostą składnię do tworzenia tabel.+===== Tables =====
  
-^ Nagłówek 1            ^ Nagłówek 2             ^ Nagłówek 3                ^ +DokuWiki supports a simple syntax to create tables.
-| 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.+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    | 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!+  ^ 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        |
  
-Można też utworzyć nagłówki wierszy w pionie.+To connect cells horizontally, just make the next cell completely empty as shown aboveBe sure to have always the same amount of cell separators!
  
-|               ^ Nagłówek 1                  ^ Nagłówek 2                ^ +Vertical tableheaders are possible, too.
-^ 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:+|              ^ 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        |
  
-  |               ^ Nagłówek 1                  ^ Nagłówek 2                ^ +As you can see, it's the cell separator before a cell which decides about the formatting:
-  ^ 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 2          | Row 1 Col 3        | 
 +  ^ Heading 4    | no colspan this time |                    | 
 +  ^ Heading 5    | Row 2 Col 2          | Row 2 Col 3        |
  
-^ Nagłówek 1            ^ Nagłówek 2                    ^ Nagłówek 3                ^ +You can have rowspans (vertically connected cells) by adding ''%%:::%%'' into the cells below the one to which they should connect.
-| 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    | this cell spans vertically | Row 1 Col 3        | 
 +| Row 2 Col 1    | :::                        | Row 2 Col 3        | 
 +| Row 3 Col 1    | :::                        | Row 2 Col 3        |
  
-  ^ Nagłówek 1            ^ Nagłówek 2                    ^ Nagłówek 3                ^ +Apart from the rowspan syntax those cells should not contain anything else.
-  | 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 tekstuDodaj dwie spacje po lewej stronie aby wyrównać do prawej, dwie spacje po prawej stronie aby wyrównać do lewej lub po dwie spacje po obu stronach aby tekst wyśrodkować.+  ^ 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.
  
-^           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 |
  
-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 363: Linia 417:
 </code> </code>
  
-Obecnie są rozpoznawane następujące języki: //actionscript-french, actionscript, ada, apache, applescript, asm, asp, autoit, bash, blitzbasic, caddcl, cadlisp, cfdg, cfm, c_macc, cpp, csharp, css, delphi, diff, div, dos, d, eiffel, fortran, freebasic, gml, groovy, html4strict, idl, ini, inno, java5, java, javascript, latex, lisp, lua, matlab, mpasm, mysql, nsis, objc, ocaml-brief, ocaml, oobas, oracle8, pascal, perl, php-brief, php, python, qbasic, reg, robots, ruby, sas, scheme, sdlbasic, smalltalk, smarty, sql, tcl, text, thinbasic, tsql, vbnet, vb, vhdl, visualfoxpro, winbatch, xml//+The following language strings are currently recognized: //4cs, 6502acme, 6502kickass, 6502tasm, 68000devpac, abap, actionscript-french, actionscript, actionscript3, ada, algol68, apache, applescript, asm, asp, autoconf, autohotkey, autoit, avisynth, awk, bascomavr, bash, basic4gl, bf, bibtex, blitzbasic, bnf, boo, c, c_loadrunner, c_mac, caddcl, cadlisp, cfdg, cfm, chaiscriptcil, clojure, cmake, cobol, coffeescript, cpp, cpp-qt, csharp, css, cuesheet, d, dcs, delphi, diff, div, dos, dot, e, epc, ecmascript, eiffel, email, erlang, euphoria, f1, falcon, fo, fortran, freebasic, fsharp, gambas, genero, genie, gdb, glsl, gml, gnuplot, go, groovy, gettext, gwbasic, haskell, hicest, hq9plus, html, html5, icon, idl, ini, inno, intercal, io, j, java5, java, javascript, jquery, kixtart, klonec, klonecpp, latex, lb, lisp, llvm, locobasic, logtalk, lolcode, lotusformulas, lotusscript, lscript, lsl2, lua, m68k, magiksf, make, mapbasic, matlab, mirc, modula2, modula3, mmix, mpasm, mxml, mysql, newlisp, nsis, oberon2, objc, objeck, ocaml-brief, ocaml, oobas, oracle8, oracle11, oxygene, oz, pascal, pcre, perl, perl6, per, pf, php-brief, php, pike, pic16, pixelbender, pli, plsql, postgresql, povray, powerbuilder, powershell, proftpd, progress, prolog, properties, providex, purebasic, pycon, python, q, qbasic, rails, rebol, reg, robots, rpmspec, rsplus, ruby, sas, scala, scheme, scilab, sdlbasic, smalltalk, smarty, sql, systemverilog, tcl, teraterm, text, thinbasic, tsql, typoscript, unicon, uscript, vala, vbnet, vb, verilog, vhdl, vim, visualfoxpro, visualprolog, whitespace, winbatch, whois, xbasic, xml, xorg_conf, xpp, yaml, z80, zxbasic//
  
 +==== Downloadable Code Blocks ====
  
 +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:
  
-===== Wstawianie HTML PHP =====+<code> 
 +<file php myexample.php> 
 +<?php echo "hello world!"; ?> 
 +</file> 
 +</code> 
 + 
 +<file php myexample.php> 
 +<?php echo "hello world!"; ?> 
 +</file> 
 + 
 +If you don't want any highlighting but want a downloadable file, specify a dash (''-'') as the language code: ''%%<code - myfile.foo>%%''
 + 
 + 
 +===== Embedding HTML and PHP ===== 
 + 
 +You can embed raw HTML or PHP code into your documents by using the ''%%<html>%%'' or ''%%<php>%%'' tags. (Use uppercase tags if you need to enclose block level elements.)
  
-Możesz wbudować w swój dokument czysty kod HTML i PHP używając znaczników ''html'' lub ''php'' w ten sposób:+HTML example:
  
 <code> <code>
 <html> <html>
-To jest trochę kodu <font color="redsize="+1">HTML</font>+This is some <span style="color:red;font-size:150%;">inline HTML</span>
 </html> </html>
 +<HTML>
 +<p style="border:2px dashed red;">And this is some block HTML</p>
 +</HTML>
 </code> </code>
  
 <html> <html>
-To jest trochę kodu <font color="redsize="+1">HTML</font>+This is some <span style="color:red;font-size:150%;">inline HTML</span>
 </html> </html>
 +<HTML>
 +<p style="border:2px dashed red;">And this is some block HTML</p>
 +</HTML>
 +
 +PHP example:
  
 <code> <code>
 <php> <php>
-echo 'A logo generated by PHP:'; +echo 'The PHP version: '
-echo '<img src="' . $_SERVER['PHP_SELF'] . '?=' . php_logo_guid() . '" alt="PHP Logo !" />';+echo phpversion()
 +echo ' (generated inline HTML)';
 </php> </php>
 +<PHP>
 +echo '<table class="inline"><tr><td>The same, but inside a block level element:</td>';
 +echo '<td>'.phpversion().'</td>';
 +echo '</tr></table>';
 +</PHP>
 </code> </code>
  
 <php> <php>
-echo 'A logo generated by PHP:'; +echo 'The PHP version: '
-echo '<img src="' . $_SERVER['PHP_SELF'] . '?=' . php_logo_guid() . '" alt="PHP Logo !" />';+echo phpversion()
 +echo ' (inline HTML)';
 </php> </php>
 +<PHP>
 +echo '<table class="inline"><tr><td>The same, but inside a block level element:</td>';
 +echo '<td>'.phpversion().'</td>';
 +echo '</tr></table>';
 +</PHP>
 +
 +**Please Note**: HTML and PHP embedding is disabled by default in the configuration. If disabled, the code is displayed instead of executed.
 +
 +===== 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 |
 +| 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 }}
  
-**Uwaga**: wstawianie HTML i PHP jest domyślnie wyłączone w konfiguracji. Jeżeli tak jest, kod jest wyświetlany bez interpretacji. 
  
 +===== 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 |
  
-===== Wtyczki składni =====+===== Syntax Plugins =====
  
-Składnia DokuWiki może być rozszerzona przez [[doku>plugins|wtyczki]]. Instalacja i zasady używania poszczególnych wtyczek są opisane na ich własnych stronachW tej instalacji DokuWiki są dostępne następujące wtyczki:+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~~
  
-===== Tłumaczenie strony ===== 
-Dodaj swój e-mail jeżeli utworzyłeś, przetłumaczyłeś lub zmodyfikowałeś fragment tej strony: 
-  * //[[wkazimierczak@conforama.pl|Wojciech Kazimierczak]] 2007/07/15 21:32// 
-  * //[[easynet2@interia.pl|CreaThor]] 2008/06/05 12:15// 
wiki/syntax.txt · ostatnio zmienione: 2016/04/04 21:36 przez xrogers