wiki:syntax
Różnice
Różnice między wybraną wersją a wersją aktualną.
Poprzednia rewizja po obu stronachPoprzednia wersja | Nowa wersjaNastępna rewizja po obu stronach | ||
wiki:syntax [2014/06/11 22:51] – xrogers | wiki:syntax [2015/08/23 13:57] – edycja zewnętrzna 127.0.0.1 | ||
---|---|---|---|
Linia 1: | Linia 1: | ||
- | ====== | + | ====== |
- | [[DokuWiki]] | + | [[doku>DokuWiki]] |
- | ===== Proste formatowanie tekstu | + | ===== Basic Text Formatting |
- | DokuWiki | + | DokuWiki |
- | DokuWiki | + | DokuWiki |
- | | + | |
- | Można też zastosować | + | You can use <sub>subscript</ |
- | | + | |
- | Można oznaczyć coś jako <del>usunięte</ | + | You can mark something as <del>deleted</ |
- | | + | |
- | **Akapity** są tworzone przez puste linie. Jeżeli chcesz | + | **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. |
- | 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 | + | or followed by\\ a whitespace |
- | | + | |
- | | + | |
- | | + | |
- | 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 | + | DokuWiki |
- | ==== Wewnętrzne | + | ==== External |
- | Wewnętrzne linki są tworzone przy użyciu nawiasów prostokątnych. Można podać tylko [[nazwę strony]] lub dodatkowo użyć [[nazwę strony|opisu]]. | + | External links are recognized automagically: |
- | | + | |
- | | + | |
+ | link text as well: [[http:// | ||
+ | addresses like this one: < | ||
+ | |||
+ | ==== 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 | ||
[[doku> | [[doku> | ||
Linia 47: | Linia 56: | ||
You can use [[some: | You can use [[some: | ||
- | For details about namespaces see [[doku>pl:namespaces]]. | + | For details about namespaces see [[doku> |
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# | 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# | ||
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> | + | * DokuWiki does not use [[wp> |
* When a section' | * When a section' | ||
- | |||
- | ==== Zewnętrzne ==== | ||
- | |||
- | Linki zewnętrzne są rozpoznawane automatycznie: | ||
- | |||
- | Linki zewnętrzne są rozpoznawane automatycznie: | ||
- | Można też zmienić nazwę linka: [[http:// | ||
- | Adresy e-mail są wyświetlane tak: < | ||
- | |||
- | |||
==== Interwiki ==== | ==== Interwiki ==== | ||
- | DokuWiki | + | DokuWiki |
- | DokuWiki | + | DokuWiki |
- | | + | |
+ | ==== Windows Shares ==== | ||
- | ==== Udziały sieciowe | + | Windows |
- | Udziały sieciowe | + | |
- | 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:// | ||
+ | <?php | ||
+ | /** | ||
+ | * Customization of the english language file | ||
+ | * Copy only the strings that needs to be modified | ||
+ | */ | ||
+ | $lang[' | ||
+ | </ | ||
- | * 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 " | + | ==== Image Links ==== |
- | * W Mozilli i Firefox można tę funkcję uaktywnić za pomocą opcji [[http:// | + | |
- | * Zobacz więcej szczegółów w [[bug> | + | |
- | + | 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: | |
- | ==== Linki w grafice ==== | + | |
- | + | ||
- | Możesz utworzyć | + | |
[[http:// | [[http:// | ||
Linia 98: | Linia 101: | ||
[[http:// | [[http:// | ||
- | Uwaga: Formatowanie grafiki jest jedynym elementem składni, który można użyć w linkach. | + | Please note: The 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 [[# | + | |
+ | The whole [[# | ||
- | ===== Przypisy | + | ===== Footnotes |
- | Można dodawać przypisy | + | You can add footnotes |
- | | + | |
- | ===== 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ły, spis treści zostanie wygenerowany automatycznie | + | 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 |
- | ==== Tytuł poziomu | + | ==== Headline Level 3 ==== |
- | === Tytuł poziomu | + | === Headline Level 4 === |
- | == Tytuł poziomu | + | == Headline Level 5 == |
- | ==== Tytuł poziomu | + | ==== Headline Level 3 ==== |
- | === Tytuł poziomu | + | === Headline Level 4 === |
- | == Tytuł poziomu | + | == Headline Level 5 == |
- | Używając czterech lub więcej kresek (znak minus), można uzyskać poziomą linię: | + | By using four or more dashes, you can make a horizontal line: |
---- | ---- | ||
+ | ===== Media Files ===== | ||
+ | You can include external and internal [[doku> | ||
- | ===== Zdjęcia i inne pliki ===== | + | Real size: {{wiki: |
- | Możesz wstawić wewnętrzne lub zewnętrzne [[doku> | + | Resize to given width: |
- | Normalny rozmiar: | + | Resize to given width and height((when the aspect ratio of the given width and height doesn' |
- | Skalowane do podanej szerokości: {{wiki:dokuwiki-128.png?50}} | + | Resized external image: |
- | Podana szerokość i wysokość: {{wiki: | + | Real size: {{wiki: |
+ | Resize to given width: | ||
+ | Resize to given width and height: {{wiki: | ||
+ | Resized external image: | ||
- | Przeskalowana grafika zewnętrzna: | ||
- | Normalny rozmiar: | + | By using left or right whitespaces you can choose the alignment. |
- | Skalowane do podanej szerokości: | + | |
- | Podana szerokość i wysokość: | + | |
- | Przeskalowana grafika zewnętrzna: | + | |
- | + | ||
- | Dodając spacji z lewej lub prawej możesz odpowiednio wyrównać grafikę. | + | |
{{ wiki: | {{ wiki: | ||
Linia 156: | Linia 157: | ||
{{ wiki: | {{ wiki: | ||
- | Oczywiście można też dodać podpis | + | Of course, you can add a title (displayed as a tooltip by most browsers), too. |
- | {{ wiki: | + | {{ wiki: |
- | {{ wiki: | + | {{ wiki: |
- | Jeżeli podasz nazwę pliku (wewnętrznego lub zewnętrznego) który nie jest zdjęciem ('' | + | 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 listy, zrób wcięcie tekstu wstawiając na początku wiersza dwie spacje i wpisz '' | + | | Image | '' |
+ | | Video | '' | ||
+ | | Audio | '' | ||
+ | | Flash | '' | ||
+ | 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 ''? |
- | * To druga pozycja | + | |
- | * Może być wiele poziomów wypunktowań | + | |
- | * Jeszcze jeden podpunkt | + | |
- | - Ta sama lista, lecz numerowana | + | |
- | - Kolejny podpunkt | + | |
- | - Po prostu użyj wcięcia tekstu, by zaznaczyć poziom | + | {{wiki: |
- | - To jest to | + | |
+ | ==== Fallback Formats ==== | ||
+ | |||
+ | Unfortunately not all browsers understand all video and audio formats. To mitigate the problem, you can upload your file in different formats for maximum browser compatibility. | ||
+ | |||
+ | For example consider this embedded mp4 video: | ||
+ | |||
+ | | ||
+ | |||
+ | When you upload a '' | ||
+ | |||
+ | Additionally DokuWiki supports a " | ||
+ | |||
+ | ===== Lists ===== | ||
+ | |||
+ | Dokuwiki supports ordered and unordered lists. To create a list item, indent your text by two spaces and use a '' | ||
+ | |||
+ | * This is a list | ||
+ | * The second item | ||
+ | | ||
+ | * Another item | ||
+ | |||
+ | | ||
+ | - Another item | ||
+ | - Just use indention for deeper levels | ||
+ | - That's it | ||
< | < | ||
- | * 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 |
</ | </ | ||
+ | Also take a look at the [[doku> | ||
- | ===== Konwersja tekstu | + | ===== Text Conversions |
- | DokuWiki | + | DokuWiki |
- | Zamiana na grafikę dotyczy przede wszystkim emotikon. Zamianę na tekst lub HTML stosuje się zaś głównie do poprawek typograficznych, może być jednak równie dobrze skonfigurowana do innych czynności. | + | The text to image conversion is mainly done for smileys. And the text to HTML conversion is used for typography replacements, but can be configured to use other HTML as well. |
- | ==== Emotikony | + | ==== Text to Image Conversions |
- | DokuWiki | + | DokuWiki |
* 8-) %% 8-) %% | * 8-) %% 8-) %% | ||
Linia 225: | Linia 253: | ||
* DELETEME %% DELETEME %% | * DELETEME %% DELETEME %% | ||
+ | ==== Text to HTML Conversions ==== | ||
- | + | Typography: | |
- | ==== Typografia ==== | + | |
- | + | ||
- | [[DokuWiki]] | + | |
-> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) | -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) | ||
Linia 239: | Linia 265: | ||
</ | </ | ||
- | Uwaga: Ta konwersja może być wyłączona przez [[doku> | + | The same can be done to produce any kind of HTML, it just needs to be added to the [[doku> |
+ | There are three exceptions which do not come from that pattern file: multiplication entity (640x480), ' | ||
- | ===== Cytowanie | + | ===== Quoting |
- | Czasami chcesz zaznaczyć część tekstu by pokazać iż jest odpowiedzią lub komentarzem. Zastosuj wtedy następującą składnię: | + | Some times you want to mark some text to show it's a reply or comment. You can use the following syntax: |
- | Myślę, że powinniśmy tak zrobić. | + | < |
- | + | I think we should do it | |
- | > Nie, nie powinniśmy | + | |
- | >> | + | > No we shouldn' |
- | > Naprawdę? | + | |
- | >> | + | >> |
- | >>> | + | |
+ | > Really? | ||
+ | |||
+ | >> | ||
+ | |||
+ | >>> | ||
+ | </ | ||
+ | |||
+ | 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! | + | |
- | >>> | + | |
+ | >> Yes! | ||
- | ===== Tabele ===== | + | >>> |
- | 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 '' | + | ^ 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 | | ||
- | | + | Table rows have to start and end with a '' |
- | | 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, |
- | | ^ 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ś, | + | | ^ 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 '':::'' | + | | ^ 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 '' |
- | | 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 tekstu: Dodaj 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| | + | | right| |
- | |lewo | + | |left |
| 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| | + | | right| |
- | |lewo | + | |left |
| 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), | ||
- | ===== Fragmenty niesformatowane ===== | + | < |
+ | This is some text which contains addresses like this: http:// | ||
+ | </ | ||
+ | The same is true for %%// | ||
- | Możesz włączyć do tekstu fragmenty, które nie będą formatowane poprzez poprzedzenie wiersza dwiema spacjami | + | < |
+ | This is some text which contains addresses like this: http:// | ||
+ | </ | ||
+ | The same is true for %%// | ||
+ | |||
+ | ===== Code Blocks ===== | ||
+ | |||
+ | You can include code blocks into your documents by either indenting them by at least two spaces | ||
+ | |||
+ | This is text is indented by two spaces. | ||
< | < | ||
- | To fragment wcześniej sformatowanego kodu zawierającego spacje, które są zachowane | + | This is preformatted code all spaces are preserved: like |
</ | </ | ||
< | < | ||
- | Mniej więcej | + | This is pretty much the same, but you could use it to show that you quoted a file. |
</ | </ | ||
- | By parser całkowicie zignorował pewien fragment (tzn. nie formatował go), ujmij ten fragment w znaczniki '' | + | Those blocks were created by this source: |
- | < | + | 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. | + | |
- | </ | + | |
- | Zobacz źródło tej strony żeby zobaczyć jak używać bloków. | + | < |
+ | This is preformatted code all spaces are preserved: like <-this | ||
+ | </ | ||
+ | < | ||
+ | This is pretty much the same, but you could use it to show that you quoted a file. | ||
+ | </ | ||
- | ===== Podświetlanie składni ===== | + | ==== Syntax Highlighting |
- | [[DokuWiki]] | + | [[wiki:DokuWiki]] |
<code java> | <code java> | ||
- | /** | + | /** |
* The HelloWorldApp class implements an application that | * The HelloWorldApp class implements an application that | ||
* simply displays "Hello World!" | * simply displays "Hello World!" | ||
Linia 363: | Linia 417: | ||
</ | </ | ||
- | Obecnie są rozpoznawane następujące języki: // | + | The following language strings are currently recognized: //4cs, 6502acme, 6502kickass, |
+ | ==== Downloadable Code Blocks ==== | ||
+ | When you use the '' | ||
- | ===== Wstawianie | + | < |
+ | <file php myexample.php> | ||
+ | <?php echo "hello world!"; | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | <file php myexample.php> | ||
+ | <?php echo "hello world!"; | ||
+ | </ | ||
+ | |||
+ | If you don't want any highlighting but want a downloadable file, specify a dash ('' | ||
+ | |||
+ | |||
+ | ===== Embedding | ||
+ | |||
+ | You can embed raw HTML or PHP code into your documents by using the '' | ||
- | Możesz wbudować w swój dokument czysty kod HTML i PHP używając znaczników '' | + | HTML example: |
< | < | ||
< | < | ||
- | To jest trochę kodu <font color="red" | + | This is some <span style="color:red;font-size:150%;">inline |
</ | </ | ||
+ | < | ||
+ | <p style=" | ||
+ | </ | ||
</ | </ | ||
< | < | ||
- | To jest trochę kodu <font color="red" | + | This is some <span style="color:red;font-size:150%;">inline |
</ | </ | ||
+ | < | ||
+ | <p style=" | ||
+ | </ | ||
+ | |||
+ | PHP example: | ||
< | < | ||
<php> | <php> | ||
- | echo 'A logo generated by PHP:'; | + | echo 'The PHP version: '; |
- | echo '<img src="' | + | echo phpversion(); |
+ | echo ' (generated inline HTML)'; | ||
</ | </ | ||
+ | <PHP> | ||
+ | echo '< | ||
+ | echo '< | ||
+ | echo '</ | ||
+ | </ | ||
</ | </ | ||
<php> | <php> | ||
- | echo 'A logo generated by PHP:'; | + | echo 'The PHP version: '; |
- | echo '<img src="' | + | echo phpversion(); |
+ | echo ' (inline HTML)'; | ||
</ | </ | ||
+ | <PHP> | ||
+ | echo '< | ||
+ | echo '< | ||
+ | echo '</ | ||
+ | </ | ||
+ | |||
+ | **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:// | ||
+ | |||
+ | ^ Parameter | ||
+ | | any number | will be used as maximum number items to show, defaults to 8 | | ||
+ | | reverse | ||
+ | | author | ||
+ | | date | show item dates | | ||
+ | | description| show the item description. If [[doku> | ||
+ | | nosort | ||
+ | | //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: | ||
+ | |||
+ | By default the feed will be sorted by date, newest items first. You can sort it by oldest first using the '' | ||
+ | |||
+ | **Example: | ||
+ | |||
+ | {{rss> | ||
+ | |||
+ | {{rss> | ||
- | **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~~%% | ||
+ | | %%~~NOCACHE~~%% | DokuWiki caches all output by default. Sometimes this might not be wanted (eg. when the %%< | ||
- | ===== Wtyczki składni | + | ===== Syntax Plugins |
- | Składnia | + | DokuWiki's syntax can be extended |
~~INFO: | ~~INFO: | ||
- | ===== Tłumaczenie strony ===== | ||
- | Dodaj swój e-mail jeżeli utworzyłeś, | ||
- | * // | ||
- | * // |
wiki/syntax.txt · ostatnio zmienione: 2016/04/04 21:36 przez xrogers