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 revision Previous revision
Next revision
Previous revision
wiki_syntax [2017/04/12 02:54]
Bhagwati Gupta
wiki_syntax [2017/04/16 14:53] (current)
Bhagwati Gupta
Line 1: Line 1:
-===== DokuWiki Syntax ===== +====== DokuWiki Syntax ======
- +
-==== Standard Dokuwiki related ==== +
-**internal anchors/links** (within a document)\\ +
-Linking to a specific section is possible by adding the section name behind a hash character. For example, here is a link to the section [[#plugins|Plugin related]].\\+
  
 +===== Standard Dokuwiki features =====
 +==== Formatting text ====
 +Superscript (e.g., Ca<sup>2+</sup>) and subscript (e.g., H<sub>2</sub>O)\\
 <code> <code>
-This links to [[syntax#Plugin related|Plugin related]].+<sub>subscript</sub> and <sup>superscript</sup>
 </code> </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]].\\
 \\ \\
 +
 +==== 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.\\
 \\ \\
  
-==== {{anchor:plugins:Plugin related}} ==== +==== codedoc ==== 
-**DivAlign2**\\ +[[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 codehas branch with support geshi highlighting. See below [[#codedoc|examples]] for its usage.\\
-[[https://www.dokuwiki.org/plugin:divalign2|divalign2]] provides a means to specify paragraph alignment in DokuWiki pagesusing nothing more than CSS directives. See below [[syntax#DivAlign2|examples]] for its usage.\\+
 \\ \\
  
-**codedoc**\\ +==== include ==== 
-[[https://www.dokuwiki.org/plugin:codedoc|codedoc]] enables toggles for hiding and displaying code blocks; inserts html anchors for cross-referencing code; facilitates documentationprovides convenience features for marking up code, has branch with support geshi highlightingSee below [[syntax#codedoc|examples]] for its usage.+[[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
 +Firstuse {{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 === === DivAlign2 ===
 Syntax examples for aligning text\\ Syntax examples for aligning text\\
Line 43: Line 71:
  
  
 +----
 +{{anchor:codedoc}}
 === codedoc === === codedoc ===
 Syntax examples for highlighting code blocks\\ Syntax examples for highlighting code blocks\\
Line 57: 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.1491965686.txt.gz · Last modified: 2017/04/12 02:54 by Bhagwati Gupta