Rozdíly
Zde můžete vidět rozdíly mezi vybranou verzí a aktuální verzí dané stránky.
| Obě strany předchozí revize Předchozí verze Následující verze | Předchozí verze | ||
| wiki:syntax [19.July 2013 12:54] – [Interní] gtadmin | wiki:syntax [26.April 2024 23:44] (aktuální) – upraveno mimo DokuWiki 127.0.0.1 | ||
|---|---|---|---|
| Řádek 1: | Řádek 1: | ||
| - | ====== | + | ====== |
| - | [[DokuWiki]] | + | [[doku>DokuWiki]] |
| + | ===== Basic Text Formatting ===== | ||
| - | ===== Základní formátování textu ===== | + | DokuWiki supports **bold**, //italic//, __underlined__ and '' |
| - | DokuWiki | + | |
| + | Of course you can **__//'' | ||
| - | DokuWiki podporuje **tučné** písmo, //kurzivu//, __podtržené__ a '' | + | You can use < |
| - | Všechny můžete samozřejmě **__//'' | + | |
| - | Můžete rovněž používat | + | You can use <sub>subscript</ |
| - | Můžete rovněž používat | + | You can mark something as <del>deleted</del> as well. |
| - | Nějaký text lze označit jako <del>smazaný</ | + | You can mark something as <del>deleted</ |
| - | Nějaký text lze označit jako < | + | **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. |
| - | **Odstavce** se oddělují pomocí prázdných řádků. Pokud chcete **zalomit řádek** bez nového odstavce, použijte dvě zpětná lomítka následovaná bílými znaky nebo koncem řádku. | + | This is some text with some linebreaks\\ Note that the |
| + | two backslashes are only recognized at the end of a line\\ | ||
| + | or followed by\\ a whitespace \\this happens without it. | ||
| - | Toto je nějaký | + | This is some text with some linebreaks\\ Note that the |
| - | že dvě zpětná lomítka jsou rozpoznána na konci řádku,\\ | + | two backslashes are only recognized at the end of a line\\ |
| - | nebo pokud následují\\ bílé znaky \\toto se stane bez nich. | + | or followed by\\ a whitespace |
| - | Toto je nějaký text se zalomením řádků\\ Všimněte si, | + | You should use forced newlines only if really needed. |
| - | že dvě zpětná lomítka jsou rozpoznána na konci řádku, | + | |
| - | nebo pokud následují\\ bílé znaky \\toto se stane bez nich. | + | |
| - | Ruční zalomení řádku používejte uvážlivě jen tam, kde je to opravdu nutné. | + | ===== Links ===== |
| + | DokuWiki supports multiple ways of creating links. | ||
| + | ==== External ==== | ||
| + | External links are recognized automagically: | ||
| - | ===== Odkazy ===== | + | DokuWiki supports multiple ways of creating links. External links are recognized |
| + | automagically: | ||
| + | link text as well: [[http:// | ||
| + | addresses like this one: < | ||
| - | [[DokuWiki]] podporuje mnoho různých způsobů, jak vytvářet odkazy. | + | ==== Internal ==== |
| + | Internal links are created by using square brackets. You can either just give a [[pagename]] or use an additional [[pagename|link text]]. | ||
| - | ==== Externí ==== | + | Internal links are created by using square brackets. You can either just give |
| + | a [[pagename]] or use an additional [[pagename|link text]]. | ||
| - | Externí odkazy jsou rozpoznávány automaticky: | + | [[doku> |
| - | Externí odkazy jsou rozpoznávány automaticky: | + | You can use [[some:namespaces]] by using a colon in the pagename. |
| - | jednoduše www.google.com - lze nastavit i jména odkazů: | + | |
| - | | + | |
| - | jako < | + | |
| + | You can use [[some: | ||
| + | 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# | ||
| + | This links to [[syntax# | ||
| - | ==== Interní ==== | + | Notes: |
| - | Interní odkazy se vytváří pomocí hranatých závorek. Vložíte | + | * Links to [[syntax|existing pages]] are shown in a different style from [[nonexisting]] ones. |
| + | * DokuWiki does not use [[wp> | ||
| + | * When a section' | ||
| - | Interní odkazy se vytváří pomocí hranatých závorek. Vložíte | + | ==== Interwiki ==== |
| - | [[doku> | + | |
| - | [[wiki stránka|jiný popisek stránky]]. Názvy wiki stránek jsou | + | |
| - | převedeny automaticky na malá písmena. Speciální znaky nejsou povoleny. | + | |
| + | DokuWiki supports [[doku> | ||
| - | Můžete používat | + | DokuWiki supports |
| + | For example this is a link to Wikipedia' | ||
| - | Můžete používat [[doku> | + | ==== Windows Shares ==== |
| - | Pro další informace o jmenných prostorech se podívejte do jejich | + | 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> |
| - | Odkazování na určitou sekci je rovněž možné. Jednoduše do odkazu přidáte za název stránky mřížku ''#'' | + | Windows Shares like [[\\server\share|this]] are recognized, too. |
| - | Tento odkaz vede na [[wiki:syntax# | + | Notes: |
| - | Poznámky: | + | * 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[' | ||
| + | </ | ||
| - | * Odkazy na [[wiki: | + | ==== Image Links ==== |
| - | * DokuWiki ve výchozím nastavení nepoužívá [[wp> | + | |
| - | * Jakmile se změní název sekce, změní se pochopitelně i odkaz na tuto sekci. Tudíž na odkazování mezi sekcemi nespoléhejte až příliš. | + | |
| + | You can also use an image to link to another internal or external page by combining the syntax for links and [[# | ||
| - | ==== Interwiki ==== | + | [[http:// |
| - | DokuWiki podporuje | + | [[http:// |
| - | DokuWiki podporuje [[doku> | + | Please note: The image formatting is the only formatting syntax accepted in link names. |
| - | rychlé odkazy mezi různými wiki. Například tento odkaz směřuje na stránku | + | |
| - | o wiki na Wikipedii: [[wp> | + | |
| + | The whole [[# | ||
| + | ===== Footnotes ===== | ||
| - | ==== Sdílené složky ve Windows ==== | + | You can add footnotes ((This is a footnote)) by using double parentheses. |
| - | Odkaz na sdílenou složku jako [[\\server\disk|tento]] je rozpoznáván. Uvědomte si, že to je smysluplné pouze v homogenním prostředí, | + | You can add footnotes ((This is a footnote)) by using double parentheses. |
| - | Odkaz na sdílenou složku jako [[\\server\disk|tento]] je rozpoznáván. | + | ===== Sectioning ===== |
| - | Poznámky: | + | You can use up to five different levels of headlines to structure your content. If you have more than three headlines, a table of contents is generated automatically -- this can be disabled by including the string ''< |
| - | * Přímé procházení sdílenými složkami funguje z bezpečnostních důvodů pouze ve výchozím nastavení Microsoft Internet Exploreru, a to ještě jen v " | + | ==== Headline Level 3 ==== |
| - | * V Mozille a Firefoxu to lze zapnout pomocí volby [[http:// | + | === Headline Level 4 === |
| - | * Viz [[dokubug> | + | == Headline Level 5 == |
| + | ==== Headline Level 3 ==== | ||
| + | === Headline Level 4 === | ||
| + | == Headline Level 5 == | ||
| - | ==== Obrázkové odkazy ==== | + | By using four or more dashes, you can make a horizontal line: |
| - | Také je možno používat obrázek jako odkaz na jinou interní či externí stránky, a to zkombinováním syntaxe pro odkazy a [[# | + | ---- |
| - | [[http:// | + | ===== Media Files ===== |
| - | [[http:// | + | You can include external and internal |
| - | Poznámka: Formátování obrázku je jediná formátovací syntaxe, kterou lze použít uvnitř jména odkazu. | + | Real size: |
| - | Je podporována kompletní syntax [[# | + | Resize to given width: |
| - | ===== Poznámky pod čarou ===== | + | Resize to given width and height((when the aspect ratio of the given width and height doesn' |
| - | Poznámky pod čarou ((Toto je poznámka pod čarou)) vložte do dvojitých závorek. | + | Resized external image: {{https:// |
| - | | + | |
| + | Resize to given width: | ||
| + | Resize to given width and height: {{wiki: | ||
| + | Resized external image: {{https:// | ||
| - | ===== Sekce a nadpisy ===== | + | By using left or right whitespaces you can choose the alignment. |
| - | Abyste mohli rozumně strukturovat obsah, můžete použít až pět různých úrovní nadpisů. Pokud máte ve stránce více než tři úrovně nadpisů, automaticky se vygeneruje tabulka s obsahem. Toto chování lze vypnout tak, že někam do dokumentu vložíte text ''< | + | {{ wiki: |
| - | ==== Nadpis 3. úrovně ==== | + | {{wiki: |
| - | === Nadpis 4. úrovně === | + | |
| - | == Nadpis 5. úrovně == | + | |
| - | ==== Nadpis 3. úrovně ==== | + | {{ wiki: |
| - | === Nadpis 4. úrovně === | + | |
| - | == Nadpis 5. úrovně == | + | |
| - | Pomocí čtyř nebo více pomlček vytvoříte vodorovnou čáru: | + | {{ wiki:dokuwiki-128.png}} |
| + | {{wiki: | ||
| + | {{ wiki: | ||
| - | ---- | + | Of course, you can add a title (displayed as a tooltip by most browsers), too. |
| + | {{ wiki: | ||
| + | {{ wiki: | ||
| - | ===== Obrázky a jiné soubory ===== | + | For linking an image to another page see [[#Image Links]] above. |
| - | Interní a externí [[doku> | + | ==== Supported Media Formats ==== |
| - | Původní velikost | + | DokuWiki can embed the following media formats directly. |
| - | Zmenšeno na danou šířku | + | | Image | '' |
| + | | Video | '' | ||
| + | | Audio | '' | ||
| + | | Flash | '' | ||
| - | Zmenšeno na danou šířku i výšku | + | If you specify a filename that is not a supported media format, then it will be displayed as a link instead. |
| - | Externí obrázek se změněnými rozměry: {{http:// | + | By adding '' |
| - | | + | {{wiki: |
| - | Zmenšeno na danou šířku | + | |
| - | Zmenšeno na danou šířku i výšku | + | |
| - | Externí obrázek se změněnými rozměry: {{http:// | + | |
| + | {{wiki: | ||
| - | Zarovnání obrázku volíte mezerami napravo nebo nalevo. | + | ==== Fallback Formats ==== |
| - | {{ wiki: | + | 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. |
| - | {{wiki:dokuwiki-128.png }} | + | For example consider this embedded mp4 video: |
| - | {{ wiki: | + | |
| - | {{ wiki: | + | When you upload a '' |
| - | {{wiki: | + | |
| - | {{ wiki: | + | |
| - | Samozřejmě můžete přidat také titulek, který se ve většině prohlížečů zobrazí jako vyskakovací bublina (tooltip). | + | Additionally DokuWiki supports a " |
| - | {{ wiki: | + | ===== Lists ===== |
| - | {{ wiki: | + | Dokuwiki supports ordered and unordered lists. To create a list item, indent your text by two spaces and use a '' |
| - | Pokud zadáte název souboru (interního či externího), | + | * This is a list |
| + | * The second item | ||
| + | * You may have different levels | ||
| + | * Another item | ||
| - | Viz výše pro [[# | + | - The same list but ordered |
| + | - Another item | ||
| + | - Just use indention for deeper levels | ||
| + | - That's it | ||
| + | < | ||
| + | * 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 | ||
| + | </ | ||
| + | Also take a look at the [[doku> | ||
| + | ===== Text Conversions ===== | ||
| - | ===== Seznamy ===== | + | DokuWiki can convert certain pre-defined characters or strings into images or other text or HTML. |
| - | DokuWiki podporuje číslované i nečíslované seznamy. Položku seznamu vytvoříte odsazením textu o dvě mezery a použitím hvězdičky '' | + | 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. |
| - | * Toto je seznam | + | ==== Text to Image Conversions ==== |
| - | * Druhá položka | + | |
| - | * Můžete používat více úrovní | + | |
| - | * Další položka | + | |
| - | - Další seznam, ale číslovaný | + | DokuWiki |
| - | - Jiná položka | + | |
| - | - Jednoduše odsazujte dále pro další úrovně | + | |
| - | - A je to! | + | |
| - | + | ||
| - | < | + | |
| - | * Toto je seznam | + | |
| - | * Druhá položka | + | |
| - | * Můžete používat více úrovní | + | |
| - | * Další položka | + | |
| - | + | ||
| - | - Další seznam, ale číslovaný | + | |
| - | - Jiná položka | + | |
| - | - Jednoduše odsazujte dále pro další úrovně | + | |
| - | - A je to! | + | |
| - | </ | + | |
| - | + | ||
| - | + | ||
| - | + | ||
| - | ===== Smajlíci ===== | + | |
| - | + | ||
| - | DokuWiki | + | |
| * 8-) %% 8-) %% | * 8-) %% 8-) %% | ||
| Řádek 230: | Řádek 247: | ||
| * ;-) %% ;-) %% | * ;-) %% ;-) %% | ||
| * ^_^ %% ^_^ %% | * ^_^ %% ^_^ %% | ||
| + | * m( %% m( %% | ||
| * :?: %% :?: %% | * :?: %% :?: %% | ||
| * :!: %% :!: %% | * :!: %% :!: %% | ||
| Řádek 236: | Řádek 254: | ||
| * DELETEME %% DELETEME %% | * DELETEME %% DELETEME %% | ||
| + | ==== Text to HTML Conversions ==== | ||
| - | + | Typography: | |
| - | ===== Typografie ===== | + | |
| - | + | ||
| - | [[DokuWiki]] | + | |
| -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) | -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) | ||
| Řádek 250: | Řádek 266: | ||
| </ | </ | ||
| - | Poznámka: Tento převod lze vypnout v [[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), ' | ||
| - | ===== Citace | + | ===== Quoting |
| - | Občas budete potřebovat označit nějaký | + | Some times you want to mark some text to show it's a reply or comment. You can use the following syntax: |
| - | Myslím, že bychom to měli udělat. | + | <code> |
| - | + | I think we should do it | |
| - | | + | |
| - | + | ||
| - | >> Ne fakt, řekl jsem, že bychom měli. | + | |
| - | + | ||
| - | > Fakt? | + | |
| - | + | ||
| - | >> Jistě! | + | |
| - | + | ||
| - | >>> | + | |
| - | Myslím, že bychom to měli udělat. | + | > No we shouldn' |
| - | > Ne, neměli. | + | >> Well, I say we should |
| - | >> Ne fakt, řekl jsem, že bychom měli. | + | > Really? |
| - | > Fakt? | + | >> Yes! |
| - | >> | + | >>> Then lets do it! |
| + | </ | ||
| - | >>> | + | I think we should do it |
| + | > No we shouldn' | ||
| + | >> Well, I say we should | ||
| + | > Really? | ||
| - | ===== Tabulky ===== | + | >> Yes! |
| - | [[DokuWiki]] podporuje jednoduchou syntaxi pro vytváření tabulek. | + | >>> |
| - | ^ Nadpis 1 ^ Nadpis 2 ^ Nadpis 3 ^ | + | ===== Tables ===== |
| - | | Řádek 1 Sloupec 1 | Řádek 1 Sloupec 2 | Řádek 1 Sloupec 3 | | + | |
| - | | Řádek 2 Sloupec 1 | spojené sloupce (všimněte si dvou svislých čar) || | + | |
| - | | Řádek 3 Sloupec 1 | Řádek 3 Sloupec 2 | Řádek 3 Sloupec 3 | | + | |
| - | Normální řádky tabulky musí začínat | + | DokuWiki supports |
| - | | + | ^ Heading |
| - | | Řádek | + | | Row 1 Col 1 | Row 1 Col 2 |
| - | | Řádek | + | | Row 2 Col 1 | some colspan |
| - | | Řádek | + | | Row 3 Col 1 | Row 3 Col 2 |
| - | Ponecháte-li buňky vodorovně vedle sebe úplně prázdné, spojí se jako v příkladu výše (colspan). Pozor, abyste měli vždy stejný počet oddělovačů buněk! | + | Table rows have to start and end with a '' |
| - | Svislé hlavičky tabulek jsou také možné. | + | ^ 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 | | ||
| - | | ^ Nadpis 1 ^ Nadpis 2 ^ | + | To connect cells horizontally, |
| - | ^ Nadpis 3 | Řádek 1 Sloupec 2 | Řádek 1 Sloupec 3 | | + | |
| - | ^ Nadpis 4 | buňky se nyní nespojí (jsou tu mezery) | | | + | |
| - | ^ Nadpis 5 | Řádek 2 Sloupec 2 | Řádek 2 Sloupec 3 | | + | |
| - | Jak vidíte, formátování buňky ovlivňuje oddělovač před buňkou: | + | Vertical tableheaders are possible, too. |
| - | | + | | ^ Heading |
| - | ^ Nadpis | + | ^ Heading |
| - | ^ Nadpis | + | ^ Heading |
| - | ^ Nadpis | + | ^ Heading |
| - | Poznámka: Svislé spojování buněk (rowspan) není možné. | + | As you can see, it's the cell separator before a cell which decides about the formatting: |
| - | Obsah buněk můžete také zarovnat. Prostě přidejte alespoň dva bílé znaky na druhý konec textu: Přidejte dvě mezery nalevo pro zarovnání doprava, dvě mezery napravo pro zarovnání doleva nebo aspoň dvě mezery na oba konce pro zarovnání na střed. | + | | ^ 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 | | ||
| - | ^ Tabulka se zarovnáním | + | You can have rowspans (vertically connected cells) by adding '' |
| - | | doprava| | + | |
| - | |doleva | + | ^ 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| | ||
| + | |left | ||
| | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | ||
| - | A takhle vypadá zdroják: | + | This is how it looks in the source: |
| - | ^ Tabulka se zarovnáním | + | ^ Table with alignment |
| - | | doprava| | + | | right| |
| - | |doleva | + | |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), | ||
| - | ===== Neparsované bloky ===== | + | < |
| + | This is some text which contains addresses like this: http:// | ||
| + | </ | ||
| + | The same is true for %%// | ||
| - | Do svých stránek můžete zahrnout i bloky, které nebudou interpretovány, | + | < |
| + | 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. | ||
| < | < | ||
| - | Toto je již naformátovaný text, kde jsou všechny mezery zachovány: např. | + | This is preformatted code all spaces are preserved: like <-this |
| - | <-takto | + | |
| </ | </ | ||
| < | < | ||
| - | Tohle je skoro to samé, jen to lze využít spíš, když chcete ukázat, že citujete nějaký soubor. | + | This is pretty much the same, but you could use it to show that you quoted a file. |
| </ | </ | ||
| - | Aby parser kompletně ignorovat nějaký text (tj. vůbec jej neformátoval), | + | Those blocks were created by this source: |
| - | < | + | This is text is indented by two spaces. |
| - | Toto je nějaký | + | |
| - | </ | + | |
| - | Podívejte se na zdrojový text této stránky, jak se neparsované bloky používají. | + | < |
| + | 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. | ||
| + | </ | ||
| - | ===== Zvýrazňování syntaxe ===== | + | ==== 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!" | ||
| Řádek 373: | Řádek 418: | ||
| </ | </ | ||
| - | Následující názvy jazyků jsou aktuálně rozpoznávány: // | + | The following language strings are currently recognized: //4cs 6502acme 6502kickass 6502tasm 68000devpac abap actionscript3 |
| + | There are additional [[doku> | ||
| + | ==== Downloadable Code Blocks ==== | ||
| - | ===== Agregace RSS/ATOM kanálů ===== | + | When you use the '' |
| - | + | ||
| - | [[DokuWiki]] je schopna integrovat data z externích XML kanálů. Pro jejich parsování se využívá [[http:// | + | |
| - | + | ||
| - | ^ Parametr | + | |
| - | | // | + | |
| - | | reverse | + | |
| - | | author | + | |
| - | | date | ukáže data položek | | + | |
| - | | description| ukáže popisy položek. Pokud je [[doku> | + | |
| - | | //n//[dhm] | obnovovací perioda, kde d=dny, h=hodiny, m=minuty. (např. 12h = 12 hodin). | | + | |
| - | + | ||
| - | Obnovovací perioda je standardně nastavena na 4 hodiny. Jakákoliv hodnota menší než 10 minut bude chápána jako právě 10 minut. [[DokuWiki]] se obecně snaží poskytnout cachovanou verzi stránky, což je očividně nevhodné, obsahuje-li stránka dynamický externí obsah. Tento parametr říká [[DokuWiki]], | + | |
| - | + | ||
| - | **Příklad: | + | |
| - | + | ||
| - | {{rss> | + | |
| - | + | ||
| - | {{rss> | + | |
| - | + | ||
| - | + | ||
| - | + | ||
| - | ===== Vkládání HTML a PHP ===== | + | |
| - | + | ||
| - | Čistý HTML či PHP kód můžete do svých dokumentů začlenit pomocí tagů '' | + | |
| < | < | ||
| - | <html> | + | <file php myexample.php> |
| - | Toto je nějaké | + | <?php echo "hello world!"; ?> |
| - | </html> | + | </file> |
| </ | </ | ||
| - | <html> | + | <file php myexample.php> |
| - | Toto je nějaké | + | <?php echo "hello world!"; ?> |
| - | </html> | + | </file> |
| - | < | + | If you don't want any highlighting but want a downloadable file, specify a dash ('' |
| - | < | + | |
| - | echo 'Logo generované pomocí PHP:'; | + | |
| - | echo '<img src="' | + | |
| - | </php> | + | |
| - | </code> | + | |
| - | < | + | ===== RSS/ATOM Feed Aggregation ===== |
| - | echo 'Logo generované pomocí PHP:'; | + | [[DokuWiki]] can integrate data from external XML feeds. For parsing the XML feeds, [[http:// |
| - | echo '< | + | |
| - | </php> | + | |
| - | **Poznámka**: | + | ^ 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. All HTML tags will be stripped | | ||
| + | | 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: | ||
| - | ===== Syntaktické pluginy ===== | + | By default the feed will be sorted by date, newest items first. You can sort it by oldest first using the '' |
| - | Syntaxi DokuWiki lze rozšířit pomocí [[doku> | + | **Example:** |
| - | ===== Rozšířené formátování ===== | + | {{rss> |
| - | Tady budou věci přidané do tohoto wiki navíc aby se zjednodušila tvorba stránek | + | |
| - | ==== nspages ==== | + | |
| - | === Description === | + | |
| - | This plugin nicely displays a table of content of the pages -and optionally the subnamespaces- of a given (sub)namespace. | + | |
| - | Using this plugin is easy: just write | + | {{rss>http://slashdot.org/index.rss 5 author |
| - | < | + | |
| - | and see the result. (You may also use the button | + | |
| - | + | ||
| - | The general syntax is | + | |
| - | <nspages path_to_a_namespace -option1 -option2 ...> | + | |
| - | where: | + | |
| - | *path_to_a_namespace represents the path to the wanted namespace. It can be an absolute (ex: namespace1: | + | |
| - | *-option may be one of the following (it is possible to specify several options): | + | |
| - | + | ||
| - | ^ Common options ^^ | + | |
| - | | -subns | + | |
| - | | -nopages | + | |
| - | | -exclude: | + | |
| - | | -exclude: | + | |
| - | | -exclude | + | |
| - | | -h1 |will display the first h1 title found. If a page doesn' | + | |
| - | | -textPages=" | + | |
| - | | -textNS=" | + | |
| - | | -title | + | |
| - | | -simpleList | + | |
| - | | -simpleLine | + | |
| - | | -nbCol=3 | + | |
| - | | -sortId | + | |
| - | + | ||
| - | ^ Less common options ^^ | + | |
| - | | -reverse | + | |
| - | | -pagesInNs | + | |
| - | | -r | recurse : display elements of the subnamespaces. You may use just " | + | |
| - | | -exclude: | + | |
| - | | -pregPagesOn\\ -pregPagesOff\\ -pregNSOn \\ -pregNSOff | + | |
| - | | -anchorName=myName | + | |
| - | + | ||
| - | + | ||
| - | < | + | |
| - | + | ||
| - | ==== pagelist ==== | + | |
| - | === Description === | + | |
| - | + | ||
| - | The Pagelist Plugin takes a list of wiki pages and provides a nicely formatted table with information about them. The plug-in has a number of flags that can be used to control the information and format of the page list. The user can provide a list of specific page references as can some popular helper plugins such the **Blog**, **Discussion**, | + | |
| - | + | ||
| - | === Syntax === | + | |
| - | + | ||
| - | Just wrap a regular unordered list of internal links with the '' | + | |
| - | + | ||
| - | < | + | |
| - | * [[..: | + | |
| - | * [[..: | + | |
| - | * [[..: | + | |
| - | * [[..: | + | |
| - | * [[..: | + | |
| - | </ | + | |
| - | + | ||
| - | ^ [flags] | flags can be used to alter the appearance of the pagelist, see [[#flags]] | optional | | + | |
| - | + | ||
| - | === Flags === | + | |
| - | + | ||
| - | ^ Setting ^ Default ^^ Alternative ^^ | + | |
| - | | '' | + | |
| - | | '' | + | |
| - | | '' | + | |
| - | | '' | + | |
| - | | '' | + | |
| - | | '' | + | |
| - | | '' | + | |
| - | | '' | + | |
| - | | '' | + | |
| - | + | ||
| - | === Example === | + | |
| - | + | ||
| - | < | + | |
| - | //an unordered list of pages to display// | + | |
| - | </ | + | |
| - | + | ||
| - | In the example above, pagelist will display information about the provided pages in a table with a header line and a comments column (if the **Discussion Plugin** is installed). The user (or a plugin) must supply the specific pages to display in the list. | + | |
| - | + | ||
| - | === Configuration === | + | |
| - | The plugin can be configured using the DokuWiki configuration manager available in the admin menu. The settings also apply to plugins which use the helper component of the pagelist plugin, like for example the archive component of the **blog** plugin. | + | |
| - | + | ||
| - | ^ '' | + | |
| - | ^ '' | + | |
| - | ^ '' | + | |
| - | ^ '' | + | |
| - | ^ '' | + | |
| - | ^ '' | + | |
| - | ^ '' | + | |
| - | ^ '' | + | |
| - | ^ '' | + | |
| - | + | ||
| - | ==== Tag ==== | + | |
| - | + | ||
| - | < | + | |
| - | + | ||
| - | ^ [list of tags] | a space separated list of tags that describe the content of the current page | required | | + | |
| - | + | ||
| - | Allows you to categorize your wiki pages. The resulting links either point to the corresponding page in the specified tag namespace (only if it exists). If you want a link to point to a page in another namespace, you have to indicate the namespace before the tag name. If this page doesn' | + | |
| - | + | ||
| - | Examples: | + | |
| - | * '' | + | |
| - | * with namespaces: '' | + | |
| - | === Topic === | + | |
| - | + | ||
| - | {{topic> | + | |
| - | + | ||
| - | ^ [tag] | the category tag for which you want a list of pages | required | | + | |
| - | ^ [flags] | pagelist flags delimited by ''&'', | + | |
| - | + | ||
| - | This displays a list of all pages that contain the given category tag. The list is sorted alphabetically by page ID. You can also prepend the modifiers '' | + | |
| - | + | ||
| - | Example: | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | + | ||
| - | === Searchtags === | + | |
| - | + | ||
| - | | + | |
| - | + | ||
| - | ^ [flags] | pagelist flags delimited by ''&'', | + | |
| - | + | ||
| - | This displays a search form with the possibility to select a namespace and to select tags from a table of all tags that should either be in- or excluded with the option to choose if the tags should be associated with AND or OR. The results are displayed as in the topic component. | + | |
| - | + | ||
| - | Example: | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | + | ||
| - | === Count === | + | |
| - | + | ||
| - | {{count> | + | |
| - | + | ||
| - | ^ [tag] | the category tag for which you want the list the occurrence | required | | + | |
| - | + | ||
| - | This part allow you to display an overview of your current used tags. It prints the tag and the related occurrence (how often is the tag used?) in your wiki. Either you can specify a '' | + | |
| - | + | ||
| - | Example: | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | + | ||
| - | === Tagpage === | + | |
| - | + | ||
| - | | + | |
| - | + | ||
| - | This displays a link to the listing of all tags as it is done by the **Tag** syntax but without tagging the page with that tag. With the optional '' | + | |
| - | + | ||
| - | Example: | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | + | ||
| - | === Configuration === | + | |
| - | The plugin can be configured with the DokuWiki configuration manager available in the admin menu. | + | |
| - | + | ||
| - | ^ '' | + | |
| - | ^ '' | + | |
| - | ^ '' | + | |
| - | ^ '' | + | |
| - | ^ '' | + | |
| - | ^ '' | + | |
| - | + | ||
| - | === Tagindex Rebuild === | + | |
| - | + | ||
| - | If the tag index becomes corrupted somehow (such as by using page move), then you can rebuild it by using the **searchindex** plugin or < | + | |
| - | + | ||
| - | === Demo / Screenshots === | + | |
| - | + | ||
| - | {{ http:// | + | |
| - | + | ||
| - | {{ http:// | + | |
| - | + | ||
| - | ==== WIP Plugin ==== | + | |
| - | + | ||
| - | This little plugin provides you the possibility to insert standard boxes by easy syntax. It is shared with a standard set of boxes and pictures but allows you to easily customize/ | + | |
| - | + | ||
| - | The syntax handling on editor can be eased in combination with the [[https:// | + | |
| - | + | ||
| - | < | + | |
| - | < | + | |
| - | </ | + | |
| - | + | ||
| - | < | + | |
| - | + | ||
| - | < | + | |
| - | < | + | |
| - | </ | + | |
| - | + | ||
| - | < | + | |
| - | + | ||
| - | You may use the DokuWiki syntax to format the text and over-rule the text provide by wips settings. Not all syntax and plugins will work inside the WIP box but most of it. Definitely you have to prevent newlines within your text. | + | |
| - | + | ||
| - | < | + | |
| - | + | ||
| - | < | + | |
| - | + | ||
| - | === Syntax and Example output === | + | |
| - | + | ||
| - | == built-in default class == | + | |
| - | + | ||
| - | < | + | |
| - | < | + | |
| - | </ | + | |
| - | + | ||
| - | < | + | |
| - | + | ||
| - | < | + | |
| - | < | + | |
| - | </ | + | |
| - | + | ||
| - | < | + | |
| - | + | ||
| - | < | + | |
| - | < | + | |
| - | </ | + | |
| - | + | ||
| - | < | + | |
| - | + | ||
| - | == user defined classes == | + | |
| - | + | ||
| - | You may define your own WIP classes by creating a user.wips file within the plugin directory. Just download the following example to start customization. | + | |
| - | + | ||
| - | < | + | |
| - | question = question.png > a question ...; | + | |
| - | misref = misref.png > References of following article or section are not strog enough or even do not exist.; | + | |
| - | distribution = distrib.png > There is a distribution available.; | + | |
| - | book = book> a book ...; | + | |
| - | question = question.png > a question ...; | + | |
| - | misref = misref.png > References of following article or section are not strog enough or even do not exist.; | + | |
| - | distribution = distrib.png > There is a distribution available.; | + | |
| - | </ | + | |
| - | + | ||
| - | < | + | |
| - | < | + | |
| - | </ | + | |
| - | + | ||
| - | < | + | |
| - | + | ||
| - | < | + | |
| - | < | + | |
| - | </ | + | |
| - | + | ||
| - | < | + | |
| - | + | ||
| - | < | + | |
| - | < | + | |
| - | </ | + | |
| - | + | ||
| - | < | + | |
| - | + | ||
| - | < | + | |
| - | < | + | |
| - | </ | + | |
| - | + | ||
| - | < | + | |
| - | + | ||
| - | === syntax defined output === | + | |
| - | + | ||
| - | < | + | |
| - | < | + | |
| - | </ | + | |
| - | + | ||
| - | < | + | |
| - | + | ||
| - | === Download === | + | |
| - | + | ||
| - | Just download following zip-file and extract it into the dokuwiki/ | + | |
| - | + | ||
| - | ==== HTML Comment ==== | + | |
| - | This is a very simple **plugin** that allows HTML style comments to be used in the **wikitext**. They will show up unchanged in the XHTML output. They will not be rendered by the browser, but can be viewed with "View source code" command. The syntax is exactly like in HTML: | + | |
| - | + | ||
| - | < | + | |
| - | + | ||
| - | This can be useful, if you're post-processing the HTML output in some way, e.g. to produce PDF documents. Some converters can use special HTML comments to steer the conversion process. | + | |
| - | + | ||
| - | ==== Wrap ==== | + | |
| - | === Syntax === | + | |
| - | + | ||
| - | Basic Syntax: | + | |
| - | <WRAP classes #id width : | + | |
| - | " | + | |
| - | </ | + | |
| - | + | ||
| - | or | + | |
| - | <block classes #id width : | + | |
| - | " | + | |
| - | </ | + | |
| - | + | ||
| - | or | + | |
| - | <div classes #id width : | + | |
| - | " | + | |
| - | </ | + | |
| - | An uppercase **%%< | + | |
| - | + | ||
| - | <wrap classes #id width : | + | |
| - | + | ||
| - | or | + | |
| - | <inline classes #id width : | + | |
| - | + | ||
| - | or | + | |
| - | <span classes #id width : | + | |
| - | A lowercase **%%< | + | |
| - | + | ||
| - | :!: Please note, some things **won' | + | |
| - | + | ||
| - | === Examples === | + | |
| - | + | ||
| - | The plugin comes with an example page, which should explain a lot and looks like this in the default template (see below). | + | |
| - | + | ||
| - | === Classes === | + | |
| - | + | ||
| - | The following classes are currently available: | + | |
| - | + | ||
| - | [[https:// | + | |
| - | + | ||
| - | ^class name^description/ | + | |
| - | ^__columns__ -- similar to **columns**, | + | |
| - | |**'' | + | |
| - | |**'' | + | |
| - | |**'' | + | |
| - | |**'' | + | |
| - | |**'' | + | |
| - | ^__widths__ -- :!: **experimental**, | + | |
| - | |**'' | + | |
| - | |**'' | + | |
| - | |**'' | + | |
| - | ^__alignments__ -- similar to **divalign**, | + | |
| - | |**'' | + | |
| - | |**'' | + | |
| - | |**'' | + | |
| - | |**'' | + | |
| - | ^__boxes and notes__ -- similar to **box**, **note**, **tip**^^ | + | |
| - | |**'' | + | |
| - | |**'' | + | |
| - | |**'' | + | |
| - | |**'' | + | |
| - | |**'' | + | |
| - | |**'' | + | |
| - | |**'' | + | |
| - | |**'' | + | |
| - | |**'' | + | |
| - | |**'' | + | |
| - | |**'' | + | |
| - | |**'' | + | |
| - | |**'' | + | |
| - | |**'' | + | |
| - | ^__marks__ -- similar to **emphasis**, | + | |
| - | |**'' | + | |
| - | |**'' | + | |
| - | |**'' | + | |
| - | ^__miscellaneous__^^ | + | |
| - | |**'' | + | |
| - | |**'' | + | |
| - | |**'' | + | |
| - | |**'' | + | |
| - | |**'' | + | |
| - | |**'' | + | |
| - | |**'' | + | |
| - | |**'' | + | |
| - | |**'' | + | |
| - | |**'' | + | |
| - | |**'' | + | |
| - | + | ||
| - | All tables inside a column or box will always be 100% wide. This makes positioning and sizing tables possible and partly replaces **tablewidth**. | + | |
| - | + | ||
| - | == Known restrictions == | + | |
| - | + | ||
| - | * WRAPs won't export in ODT format. | + | |
| - | * Round corners only work in modern browsers (no IE8 and below). | + | |
| - | * Multiple columns only work in modern browsers (no IE9 and below). | + | |
| - | * Width classes are experimental and only work in modern browsers (no IE8 and below). | + | |
| - | * Normal DokuWiki Headlines < | + | |
| - | * %%//**__Big Underlined Headline__**// | + | |
| - | * %%//**Small Headline**// | + | |
| - | + | ||
| - | You probably need to adjust a few of the classes to your template' | + | |
| - | + | ||
| - | The classes are easily adjustable and extensible. Any wishes are welcome. | + | |
| - | + | ||
| - | === Widths === | + | |
| - | + | ||
| - | You can set any valid widths on any uppercase %%< | + | |
| - | <WRAP someclass 50% anotherclass> | + | |
| - | + | ||
| - | You can also use the width keywords '' | + | |
| - | <WRAP half column> | + | |
| - | <WRAP half column> | + | |
| - | will result in two columns next to each other, which will wrap underneath each other on smaller screens and mobile devices. | + | |
| - | + | ||
| - | === Languages and Text Directions === | + | |
| - | + | ||
| - | You can change the language and the direction of a container by simply adding a colon followed by the language code, like this: | + | |
| - | + | ||
| - | <wrap :en>This text is explicitly marked as English.</ | + | |
| - | + | ||
| - | The text direction ('' | + | |
| - | + | ||
| - | If you like to mark a text with a different text direction than the default one, you should use divs, i.e. uppercase '' | + | |
| - | This makes it a better replacement of **ltr** (and **lang**). | ||
| - | === Demo === | + | ===== Control Macros ===== |
| - | You can see a demo of the plugin on [[http:// | + | Some syntax influences how DokuWiki renders |
| + | ^ Macro ^ Description | | ||
| + | | %%~~NOTOC~~%% | ||
| + | | %%~~NOCACHE~~%% | DokuWiki caches all output by default. Sometimes this might not be wanted (eg. when the %%< | ||
| - | [[http:// | ||
| ===== Syntax Plugins ===== | ===== Syntax Plugins ===== | ||