wiki:syntax

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
wiki:syntax [19.06.2015 11:11] – [Plugin Settings] Ingo Braunswiki:syntax [07.02.2024 08:34] (aktuell) – Externe Bearbeitung 127.0.0.1
Zeile 84: Zeile 84:
  
   * For security reasons direct browsing of windows shares only works in Microsoft Internet Explorer per default (and only in the "local zone").   * 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/userscript.js'': +  * 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 
-  LANG.nosmblinks = '';+/** 
 + * Customization of the english language file 
 + * Copy only the strings that needs to be modified 
 + */ 
 +$lang['js']['nosmblinks'= ''; 
 +</code>
  
 ==== Image Links ==== ==== Image Links ====
Zeile 92: Zeile 97:
 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: 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:
  
-  [[http://www.php.net|{{wiki:dokuwiki-128.png}}]]+  [[http://php.net|{{wiki:dokuwiki-128.png}}]]
  
-[[http://www.php.net|{{wiki:dokuwiki-128.png}}]]+[[http://php.net|{{wiki:dokuwiki-128.png}}]]
  
 Please note: The image formatting is the only formatting syntax accepted in link names. Please note: The image formatting is the only formatting syntax accepted in link names.
Zeile 132: Zeile 137:
 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}} Resize to given width and height((when the aspect ratio of the given width and height doesn't match that of the image, it will be cropped to the new ratio before resizing)): {{wiki:dokuwiki-128.png?200x50}}
  
-Resized external image:           {{http://de3.php.net/images/php.gif?200x50}}+Resized external image:           {{https://www.php.net/images/php.gif?200x50}}
  
   Real size:                        {{wiki:dokuwiki-128.png}}   Real size:                        {{wiki:dokuwiki-128.png}}
   Resize to given width:            {{wiki:dokuwiki-128.png?50}}   Resize to given width:            {{wiki:dokuwiki-128.png?50}}
   Resize to given width and height: {{wiki:dokuwiki-128.png?200x50}}   Resize to given width and height: {{wiki:dokuwiki-128.png?200x50}}
-  Resized external image:           {{http://de3.php.net/images/php.gif?200x50}}+  Resized external image:           {{https://www.php.net/images/php.gif?200x50}}
  
  
Zeile 170: Zeile 175:
  
 If you specify a filename that is not a supported media format, then it will be displayed as a link instead. If you specify a filename that is not a supported media format, then it will be displayed as a link instead.
 +
 +By adding ''?linkonly'' you provide a link to the media without displaying it inline
 +
 +  {{wiki:dokuwiki-128.png?linkonly}}
 +
 +{{wiki:dokuwiki-128.png?linkonly}} This is just a link to the image.
  
 ==== Fallback Formats ==== ==== Fallback Formats ====
Zeile 236: Zeile 247:
   * ;-) %%  ;-)  %%   * ;-) %%  ;-)  %%
   * ^_^ %%  ^_^  %%   * ^_^ %%  ^_^  %%
 +  * m(  %%  m(   %%
   * :?: %%  :?:  %%   * :?: %%  :?:  %%
   * :!: %%  :!:  %%   * :!: %%  :!:  %%
Zeile 262: Zeile 274:
 Some times you want to mark some text to show it's a reply or comment. You can use the following syntax: Some times you want to mark some text to show it's a reply or comment. You can use the following syntax:
  
-  I think we should do it +<code> 
-   +I think we should do it 
-  > No we shouldn'+ 
-   +> No we shouldn'
-  >> Well, I say we should + 
-   +>> Well, I say we should 
-  > Really? + 
-   +> Really? 
-  >> Yes! + 
-   +>> Yes! 
-  >>> Then lets do it!+ 
 +>>> Then lets do it! 
 +</code>
  
 I think we should do it I think we should do it
Zeile 318: Zeile 332:
   ^ Heading 5    | Row 2 Col 2          | Row 2 Col 3        |   ^ Heading 5    | Row 2 Col 2          | Row 2 Col 3        |
  
-You can have rowspans (vertically connected cells) by adding '':::'' into the cells below the one to which they should connect.+You can have rowspans (vertically connected cells) by adding ''%%:::%%'' into the cells below the one to which they should connect.
  
 ^ Heading 1      ^ Heading 2                  ^ Heading 3          ^ ^ Heading 1      ^ Heading 2                  ^ Heading 3          ^
Zeile 404: Zeile 418:
 </code> </code>
  
-The following language strings are currently recognized: //4cs6502acme6502kickass6502tasm68000devpacabapactionscript-french, actionscript, actionscript3, adaalgol68apacheapplescriptasmaspautoconfautohotkeyautoitavisynthawkbascomavrbashbasic4glbfbibtexblitzbasicbnfboo, c, c_loadrunner, c_mac, caddclcadlispcfdgcfmchaiscriptcilclojurecmakecobolcoffeescriptcppcpp-qtcsharpcsscuesheet, d, dcsdelphidiffdivdosdot, e, epc, ecmascripteiffelemailerlangeuphoriaf1falconfofortranfreebasicfsharpgambasgenerogenie, gdb, glslgmlgnuplotgogroovy, gettext, gwbasichaskellhicesthq9plushtmlhtml5iconidliniinnointercalio, j, java5javajavascriptjquerykixtartklonecklonecpplatexlblispllvmlocobasiclogtalklolcodelotusformulaslotusscriptlscriptlsl2luam68kmagiksfmakemapbasicmatlabmircmodula2modula3, mmix, mpasmmxmlmysqlnewlispnsisoberon2objcobjeckocaml-briefocamloobasoracle8, oracle11, oxygeneozpascalpcreperl, perl6, perpfphp-briefphppike, pic16, pixelbenderpliplsqlpostgresqlpovraypowerbuilderpowershellproftpdprogressprologpropertiesprovidexpurebasicpyconpythonq, qbasic, railsrebolregrobotsrpmspecrsplusrubysasscalaschemescilabsdlbasicsmalltalksmartysqlsystemverilogtclteratermtextthinbasictsqltyposcriptuniconuscriptvalavbnetvbverilogvhdlvimvisualfoxprovisualprologwhitespacewinbatch, whois, xbasicxmlxorg_confxppyamlz80zxbasic//+The following language strings are currently recognized: //4cs 6502acme 6502kickass 6502tasm 68000devpac abap actionscript3 actionscript ada aimms algol68 apache applescript apt_sources arm asm asp asymptote autoconf autohotkey autoit avisynth awk bascomavr bash basic4gl batch bf biblatex bibtex blitzbasic bnf boo caddcl cadlisp ceylon cfdg cfm chaiscript chapel cil c_loadrunner clojure c_mac cmake cobol coffeescript cpp cpp-qt cpp-winapi csharp css cuesheet c_winapi dart dcl dcpu16 dcs delphi diff div dos dot ecmascript eiffel email epc e erlang euphoria ezt f1 falcon fo fortran freebasic freeswitch fsharp gambas gdb genero genie gettext glsl gml gnuplot go groovy gwbasic haskell haxe hicest hq9plus html html4strict html5 icon idl ini inno intercal io ispfpanel java5 java javascript jcl j jquery julia kixtart klonec klonecpp kotlin latex lb ldif lisp llvm locobasic logtalk lolcode lotusformulas lotusscript lscript lsl2 lua m68k magiksf make mapbasic mathematica matlab mercury metapost mirc mk-61 mmix modula2 modula3 mpasm mxml mysql nagios netrexx newlisp nginx nimrod nsis oberon2 objc objeck ocaml-brief ocaml octave oobas oorexx oracle11 oracle8 oxygene oz parasail parigp pascal pcre perl6 perl per pf phix php-brief php pic16 pike pixelbender pli plsql postgresql postscript povray powerbuilder powershell proftpd progress prolog properties providex purebasic pycon pys60 python qbasic qml racket rails rbs rebol reg rexx robots roff rpmspec rsplus ruby rust sas sass scala scheme scilab scl sdlbasic smalltalk smarty spark sparql sql sshconfig standardml stonescript swift systemverilog tclegg tcl teraterm texgraph text thinbasic tsql twig typoscript unicon upc urbi uscript vala vbnet vb vbscript vedit verilog vhdl vim visualfoxpro visualprolog whitespace whois winbatch wolfram xbasic xml xojo xorg_conf xpp yaml z80 zxbasic// 
 + 
 +There are additional [[doku>syntax_highlighting|advanced options]] available for syntax highlighting, such as highlighting lines or adding line numbers.
  
 ==== Downloadable Code Blocks ==== ==== Downloadable Code Blocks ====
Zeile 421: Zeile 437:
  
 If you don't want any highlighting but want a downloadable file, specify a dash (''-'') as the language code: ''%%<code - myfile.foo>%%''. 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.) 
- 
-HTML example: 
- 
-<code> 
-<html> 
-This is some <span style="color:red;font-size:150%;">inline HTML</span> 
-</html> 
-<HTML> 
-<p style="border:2px dashed red;">And this is some block HTML</p> 
-</HTML> 
-</code> 
- 
-<html> 
-This is some <span style="color:red;font-size:150%;">inline HTML</span> 
-</html> 
-<HTML> 
-<p style="border:2px dashed red;">And this is some block HTML</p> 
-</HTML> 
- 
-PHP example: 
- 
-<code> 
-<php> 
-echo 'The PHP version: '; 
-echo phpversion(); 
-echo ' (generated inline HTML)'; 
-</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> 
- 
-<php> 
-echo 'The PHP version: '; 
-echo phpversion(); 
-echo ' (inline HTML)'; 
-</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 ===== ===== RSS/ATOM Feed Aggregation =====
Zeile 481: Zeile 446:
 | author     | show item authors names | | author     | show item authors names |
 | date       | show item dates | | date       | show item dates |
-| description| show the item description. If [[doku>config:htmlok|HTML]] is disabled all tags will be stripped |+| description| show the item description. All HTML tags will be stripped 
 +| nosort     | do not sort the items in the feed |
 | //n//[dhm] | refresh period, where d=days, h=hours, m=minutes. (e.g. 12h = 12 hours). | | //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. 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:** **Example:**
Zeile 506: Zeile 474:
  
 ~~INFO:syntaxplugins~~ ~~INFO:syntaxplugins~~
- 
-===== Installierte Plugins ===== 
- 
-Das Notes Plugin ist installiert. 
- 
-<code> 
-<note> 
-So sieht eine normal Notiz aus 
-</note> 
- 
-<note important> 
-Das hier ist eine wichtige Notiz ;-) 
-</note> 
- 
-<note tip> 
-Hier ist ein Tipp ... 
-</note> 
- 
-<note warning> 
-Und so kann eine Warnung aussehen 
-</note> 
-</code> 
- 
-und hier das Ergebnis : 
-<note> 
-So sieht eine normal Notiz aus 
-</note> 
- 
-<note important> 
-Das hier ist eine wichtige Notiz ;-) 
-</note> 
- 
-<note tip> 
-Hier ist ein Tipp ... 
-</note> 
- 
-<note warning> 
-Und so kann eine Warnung aussehen 
-</note> 
- 
-====== ToDo Plugin ====== 
-===== Usage and examples ===== 
- 
-There is an additional instruction page at [[http://www.eibler.at/dokuwiki-todo/index_en.php|http://www.eibler.at/dokuwiki-todo/index_en.php]] in [[http://www.eibler.at/dokuwiki-todo/index_de.php|german]] and [[http://www.eibler.at/dokuwiki-todo/index_en.php|english]] which describes the installation, the settings and the DokuWiki [[plugin:searchpattern|SearchPattern Plugin]] suggestion. 
- 
-===Creating tasks=== 
-After installing the plugin, simply enter this information on the page you wish to create the todo list: 
- 
-     <todo>Title of todo Action</todo> 
- 
-Each ''< todo >'' tag will create one checkbox for the action. 
- 
-To create a checkbox that is check by default, create your todo like this: 
- 
-     <todo #>Title of todo Action</todo> 
- 
-Using bulleted lists (*) is recommended, as it will allow you to more easily make a 'list' out of your items to do. 
- 
-===Assign tasks to persons=== 
- 
-To assign users use the @ symbol like this: 
- 
-     <todo @leo>Task for leo</todo>  
-     <todo @leo #>Completed task for leo</todo> 
- 
-The name of the user can use: 
-  * the following characters: // a-z, A-Z, 0-9, .-_ // \\ 
-  * No (white)spaces are allowed!  
-So ''@leo.eibler'', ''@Leo_Eibler'' will work but ''@Leo Eibler'' will not work! 
-      
-|{{http://www.eibler.at/dokuwiki-todo/04-en_use_dokuwiki_todo_plugin-task-assign.jpg?600|Ver. 2013-04-11 user assignment source screenshot}}| 
-|{{http://www.eibler.at/dokuwiki-todo/04-en_use_dokuwiki_todo_plugin-task-assign-result.jpg?600|Ver. 2013-04-11 user assignment result screenshot}}| 
- 
-Multiple users can be assigned in one todo (separated by space character). This way a todo can show up in todo lists of different users. 
- 
-   <todo @leo @runout @somebody>Task for leo and runout and somebody</todo> 
- 
-=== Render username === 
- 
-Render the username as id, full name or not at all, allowed values: ''user'' or ''real'' or ''none'' 
-  <todo @somebody username:real>Task with real username of somebody shown</todo> 
- 
-=== Start and Due date === 
- 
-Set a start and/or due date and get colored output if todo has started or is due 
- 
-  <todo start:YYYY-MM-DD>Text</todo> 
-  <todo due:YYYY-MM-DD>Text</todo> 
-  <todo start:YYYY-MM-DD due:YYYY-MM-DD>Text</todo> 
-   
-Colors,... can be set in the style.css file in the plugin directory (lib/plugin/todo) 
- 
-=== Show/Hide Start/Due Date === 
-Do (not) show the Start/Due date, allowed values: ''yes'' or ''no'' 
- 
-   <todo showdate:yes start:YYYY-MM-DD>Text</todo> 
-   
- 
-===Formatting=== 
- 
-Formatting is not allowed inside of the ''<todo></todo>'' tags. However, if you wish for your text to be bold or have some other type of style (other than the default one provided), you can surround the todo tag with the formatting of your choice. The resulting action text should then be displayed with your choice of formatting when your changes have been saved.  
- 
-===QuickButton=== 
- 
-A quickbutton for inserting todo syntax is available in the editor toolbar. You can click the button (which is pictured as a checked-checkbox) or you can use the keyboard shortcut of [T]. 
- 
-===== Lightweight Task Management System ===== 
- 
-The new version (since version 2014-03-17) of the todo plugin allows to create an easy to use task management system to collect all todos from all pages on a single page.  
- 
-**First turn off caching** 
-   ~~NOCACHE~~ 
- 
-Display all open and closed todos from all pages 
-  ~~TODOLIST~~ 
- 
-=== Completion state === 
- 
-Filter the completion state, allowed values: ''yes'' or ''no'' 
-  ~~TODOLIST completed:no~~ 
-  ~~TODOLIST completed:yes~~ 
-   
-=== Assignments === 
-Filter the assignments, allowed values: ''yes'', ''no'', usernames in format''@username'' or ''username'', or placeholders ''@@USER@@'' or ''@@MAIL@@'' which are replaced by username or e-mail of current logged in user. 
-  ~~TODOLIST assigned:yes~~  
-  ~~TODOLIST assigned:User1,User2~~  
-  ~~TODOLIST assigned:@User1,@User2~~ 
-  ~~TODOLIST assigned:@@USER@@~~ 
-  ~~TODOLIST assigned:@@MAIL@@~~ finds tasks assigned using someones email. 
-   
-=== Show/Hide checkbox === 
-Do (not) show the checkbox, allowed values: ''yes'' or ''no'' 
-  ~~TODOLIST checkbox:no~~ 
-   
-=== Render username=== 
- 
-Render the username as id, full name or not at all, allowed values: ''user'' or ''real'' or ''none'' 
-  ~~TODOLIST username:real~~ 
-   
-=== Render header === 
- 
-Render the header as pageID, as the first header of the page or not at all, allowed values: ''id'' or ''firstheader'' or ''none'' 
-  ~~TODOLIST header:firstheader~~ 
- 
-=== Show/Hide Start/Due Date === 
-Do (not) show the Start/Due date, allowed values: ''yes'' or ''no'' 
- 
-  ~~TODOLIST showdate:yes~~ 
-   
-=== Completed Data Filter=== 
-Filter by date completed. 
- 
-  ~~TODOLIST completedbefore:<date>~~ 
-  ~~TODOLIST completedafter:<date>~~ 
- 
-=== Start/Due Date Filter=== 
-Filter the TODOLIST by Start/Due Date. Absolute and relative Dates are possible. 
-Not yet in the stable Version. Download: [[https://github.com/runout-at/dokuwiki-plugin-todo/archive/78f3be84a8fc4f6fb44a51dc23644e8fe7014b16.zip|ZIP by Markus]] 
- 
-  ~~TODOLIST startbefore:<date>~~ 
-  ~~TODOLIST startafter:<date>~~ 
-  ~~TODOLIST duebefore:<date>~~ 
-  ~~TODOLIST dueafter:<date>~~ 
- 
-<date> can be: 
- 
-  Y-m-d like 2014-06-12 
-  or a value like +10 or -10 or 0 
-   
-invalid values will be substituted with todays date 
- 
-=== Combined options === 
- 
-  ~~TODOLIST assigned:@@USER@@ completed:yes ~~ 
-  ~~TODOLIST assigned:Gerrit,leo completed:no ~~ 
- 
-Some default values for these options can be set in the Configuration Manager 
- 
-=== Filter the namespace of the task list === 
-[[https://github.com/leibler/dokuwiki-plugin-todo/pull/32#issue-36869358|I've added]] the following option to the ''~~ TODOLIST ~~'' tag: ''ns'': 
- 
-If omitted it uses ''ns:all''. 
- 
-It can be used with the following parameters: 
-  * ''all'' - displays todo's from everywhere (the current default behaviour) 
-  * ''/'' - only displays todo's from pages containing in the ROOT namespace 
-  * ''<string>'' - Where string can be any text. It checks the page-id if it starts with this string and then returns the pages with todo's that do; for example: 
- 
-  ~~TODOLIST ns:todo~~ 
- 
-returns all todo's from the page todo in the root of the wiki, or from the namespaces starting with todo or from the page todo and the namespaces starting with todo. 
- 
-  ~~TODOLIST ns:todo:~~ 
- 
-returns all todo's from the namespace todo. 
- 
-  ~~TODOLIST ns:todo:r~~  
- 
-returns all todo's from the namespaces or pages under todo, starting with an r. 
- 
-==Example of 'all todos'== 
-|{{http://www.eibler.at/dokuwiki-todo/12-en_extension_with_searchpattern_all-tasks.jpg?600|Ver. 2013-04-11 overview over all tasks on single page using searchpattern plugin}}| 
- 
- 
- 
  
  • wiki/syntax.1434712315.txt.gz
  • Zuletzt geändert: 05.06.2020 12:59
  • (Externe Bearbeitung)