User Tools

Site Tools


meta:syntax

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Previous revision
meta:syntax [2013/04/18 14:12]
meta:syntax [2015/01/20 08:34] (current)
leangjia [Formatting Syntax]
Line 1: Line 1:
 ====== Formatting Syntax ====== ====== Formatting Syntax ======
-[[doku>​DokuWiki]] supports some simple markup language based on UTF-8, which tries to make the datafiles to be as readable as possible for humans. This page contains all possible syntax you may use when editing the pages. Simply have a look at the source of this page by pressing the //Edit this page// button at the top or bottom of the page. If you want to try something, just use the [[playground:​playground|playground]] page. With JavaScript enabled, a markup is easily accessible via [[doku>​toolbar|quickbuttons]],​ too.+[[doku>​DokuWiki]] supports some simple markup language based on UTF-8, which tries to make the datafiles to be as readable as possible for humans. This page contains all possible syntax you may use when editing the pages. Simply have a look at the source of this page by pressing the //Edit this page// button at the top or bottom of the page. If you want to try something, just use the [[meta:​playground|playground ]] page. With JavaScript enabled, a markup is easily accessible via [[doku>​toolbar|quickbuttons]],​ too.
  
 The Syntax is also explained on the [[doku>​syntax|Homepage]]. So far this Wiki lacks the vertical cell span. The Syntax is also explained on the [[doku>​syntax|Homepage]]. So far this Wiki lacks the vertical cell span.
Line 11: Line 11:
   Of course you can **__//''​combine''//​__** all these.   Of course you can **__//''​combine''//​__** all these.
  
-You can use <​sub>​subscript</​sub>​ and <sup>superscript</​sup>​too.+You can use <​sup>​superscript</​sup>​ or <​sub>​subscript</​sub>​ and their <sup><​sub>​combination</​sub>​</​sup>​ too.
  
-  You can use <​sub>​subscript</​sub>​ and <sup>superscript</​sup>​too.+  You can use <​sup>​superscript</​sup>​ or <​sub>​subscript</​sub>​ and their <sup><​sub>​combination</​sub>​</​sup>​ too.
  
 You can mark something as <​del>​deleted</​del>​ as well. You can mark something as <​del>​deleted</​del>​ as well.
Line 353: Line 353:
   ^ Heading 5    | Row 2 Col 2          | Row 2 Col 3        |   ^ Heading 5    | Row 2 Col 2          | Row 2 Col 3        |
  
-Note: Vertical spans (rowspan) are not possible.+Vertical spans (rowspan) are possible. 
 +^ Heading 1      ^ Heading 2       ^ Heading 3          ^ 
 +| Row 1 Col 1    | Row 1 Col 2     | Row 1 Col 3        | 
 +| Row 2 Col 1    | some rowspan (:::) | Row 2 Col 3     | 
 +| Row 3 Col 1    | :::    | Row 3 Col 3        | 
 +As you can see, ::: is put in the cell you want to melt. 
 +  ^ Heading 1      ^ Heading 2       ^ Heading 3          ^ 
 +  | Row 1 Col 1    | Row 1 Col 2     | Row 1 Col 3        | 
 +  | Row 2 Col 1    | some rowspan (:::) | Row 2 Col 3     | 
 +  | Row 3 Col 1    | :::    | Row 3 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. 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.
Line 463: Line 472:
 echo 'A logo generated by PHP:'; echo 'A logo generated by PHP:';
 echo '<​img src="'​ . $_SERVER['​PHP_SELF'​] . '?​='​ . php_logo_guid() . '"​ alt="​PHP Logo !" />';​ echo '<​img src="'​ . $_SERVER['​PHP_SELF'​] . '?​='​ . php_logo_guid() . '"​ alt="​PHP Logo !" />';​
-echo '​(inline HTML)';​+echo '(generated ​inline HTML)';​
 </​php>​ </​php>​
 <PHP> <PHP>
Line 480: Line 489:
 | %%~~NOTOC~~%% ​  | If this macro is found on the page, no table of contents will be created | | %%~~NOTOC~~%% ​  | If this macro is found on the page, no table of contents will be created |
 | %%~~NOCACHE~~%% | DokuWiki caches all output by default. Sometimes this might not be wanted (eg. when the %%<​php>​%% syntax above is used), adding this macro will force DokuWiki to rerender a page on every call | | %%~~NOCACHE~~%% | DokuWiki caches all output by default. Sometimes this might not be wanted (eg. when the %%<​php>​%% syntax above is used), adding this macro will force DokuWiki to rerender a page on every call |
 +
 +===== Warning and info signs with boxes =====
 +{{page>​meta:​infobox:​unverified&​noheader&​nofooter&​noeditbtn}}
 +{{page>​meta:​infobox:​cleanup&​noheader&​nofooter&​noeditbtn}}
 +{{page>​meta:​infobox:​dangerous&​noheader&​nofooter&​noeditbtn}}
  
 ===== Syntax Plugins ===== ===== Syntax Plugins =====
meta/syntax.1366287162.txt.bz2 · Last modified: 2013/04/18 14:12 (external edit)