User Tools

Site Tools


wiki_syntax

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
wiki_syntax [2017/04/09 18:07] 5omw78wiki_syntax [2017/04/16 14:53] (current) 5omw78
Line 1: Line 1:
-==== DokuWiki Syntax ====+====== DokuWiki Syntax ======
  
-=== Text alignment === +===== Standard Dokuwiki features ===== 
-**DivAlign2** plugin\\+==== Formatting text ==== 
 +Superscript (e.g., Ca<sup>2+</sup>) and subscript (e.g., H<sub>2</sub>O)\\ 
 +<code> 
 +<sub>subscript</sub> and <sup>superscript</sup> 
 +</code> 
 +\\ \\  
 +Footnotes can be created using double parentheses. Here is an ((This is a footnote))example.\\ 
 +<code> 
 +Here is an ((This is a footnote))example. 
 +</code> 
 +\\ \\ 
 + 
 + 
 + 
 +---- 
 +{{anchor:plugins}} 
 +===== Plugin related ===== 
 +==== anchor ==== 
 +[[https://www.dokuwiki.org/plugin:anchor|anchor]] allows HTML anchors to be added to a page. Useful when section headers are really long. Normally, links can be created for a wiki page, or a specific section header, using dokuwiki's intrinsic link feature. This is impractical when header names are long, or they might change in the future. This plugin can be used to create anchors (internal links) to any part of the page. Example is [[#anchor|below]].\\
 \\ \\
-Syntax examples\\+ 
 +==== DivAlign2 ==== 
 +[[https://www.dokuwiki.org/plugin:divalign2|divalign2]] provides a means to specify paragraph alignment in DokuWiki pages, using nothing more than CSS directives. See below [[#DivAlign2|examples]] for its usage.\\ 
 +\\ 
 + 
 +==== codedoc ==== 
 +[[https://www.dokuwiki.org/plugin:codedoc|codedoc]] enables toggles for hiding and displaying code blocks; inserts html anchors for cross-referencing code; facilitates documentation, provides convenience features for marking up code, has branch with support geshi highlighting. See below [[#codedoc|examples]] for its usage.\\ 
 +\\ 
 + 
 +==== include ==== 
 +[[https://www.dokuwiki.org/plugin:include|include]] can be used to include another wiki page into the current one. Common usage is described [[#include|below]]. For more details see the plugin page.  
 +\\ 
 +\\ 
 + 
 + 
 +---- 
 +{{anchor:anchor}} 
 +=== anchor === 
 +<code> 
 +First, use {{anchor:<anchor_name>}} to create an anchor.  
 +Then use [[#<anchor_name>|<text to be linked>]] to add the above newly created anchor. 
 +</code> 
 +\\ 
 + 
 + 
 +---- 
 +{{anchor:DivAlign2}} 
 +=== DivAlign2 === 
 +Syntax examples for aligning text\\
 <code> <code>
 #;; #;;
Line 23: Line 69:
 </code> </code>
 \\ \\
-\\ + 
-=== Highlighting code blocks === + 
-**codedoc** plugin\\ +---- 
-\\ +{{anchor:codedoc}} 
-Syntax examples\\+=== codedoc === 
 +Syntax examples for highlighting code blocks\\
 <code> <code>
 <codedoc code>  <codedoc code> 
Line 40: Line 87:
    . . .your code here. . .    . . .your code here. . .
 </codedoc> </codedoc>
 +</code>
 +\\
 +
 +----
 +{{anchor:include}}
 +=== include ===
 +Common syntax for //include//.\\
 +<code>
 +{{page>[id]&[flags]}}
 +
 +flags could be - 
 +- footer/nofooter
 +- date/nodate
 +- mdate/nomdate
 +- user/nouser
 +- readmore/noreadmore
 </code> </code>
 \\ \\
 \\ \\
wiki_syntax.1491761244.txt.gz · Last modified: 2017/04/09 18:07 by 5omw78

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki