www-content/pages/wiki/syntax.txt

259 lines
5.0 KiB
Plaintext
Raw Normal View History

~~Title: Wiki Syntax~~
A title like the title of this page:
<code>
~~Title: Wiki Syntax~~
</code>
----
How to define what programming language the rest of the page will be
dealing with:
<code>
~~CODE-c~~
</code>
----
A paragraph is simply text, on a single line or across multiple lines
until a blank line before/after the section of text.
<code>
A paragraph is simply text, on a single line or across multiple lines
until a blank line before/after the section of text.
</code>
----
====== Level 1 Headline ======
<code>
====== Level 1 Headline ======
</code>
----
===== Level 2 Headline =====
<code>
===== Level 2 Headline =====
</code>
----
==== Level 3 Headline ====
<code>
==== Level 3 Headline ====
</code>
----
=== Level 4 Headline ===
<code>
=== Level 4 Headline ===
</code>
----
== Level 5 Headline ==
<code>
== Level 5 Headline ==
</code>
----
A horizontal rule is like
----
<code>
----
</code>
----
Within text you can do **Bold Text**, //Italic Text//, __Underlined Text__, and ''Monospaced Text'' as well as <del>Strike-through Text</del>.
<code>
Within text you can do **Bold Text**, //Italic Text//, __Underlined Text__, and ''Monospaced Text'' as well as <del>Strike-through Text</del>.
</code>
----
- Ordered List Item
- Item 2
- Last item
* Unordered List Item
* Item 2
* Third item
* Last item
An external link like: [[http://example.com|External Link]] would go here.
And here is an inlined image, centered.
{{ :efl-core.png?nolink |}}
Sample code snippets and hilights
<code c>
typedef struct blah Blah;
int c;
void function(char *blah) {
double x;
This_Type *y;
Type_Here *z;
int e = ENUM_HERE;
x = 10;
char *p = malloc(10);
evas_object_del(p);
}
</code>
<code lua>
function hello(x)
local y
end
</code>
This should become a link to the [[start]] page. How about the [[blah]]
page too. Test autolink with evas_object_del() as a keyword.
Below between the hr's should be an externally included wiki page
----
{{page>blah}}
----
So how about Tables? well let's try one:
^ Header 1 ^ Header Column 2 ^ Column 3 header ^
| Cell 1 | Cell 2 | Cell 3 |
| Cell 1 | Cell 2 | Cell 3 |
| Cell 1 | Cell 2 | Cell 3 |
| Cell 1 | Cell 2 | Cell 3 |
And quotes:
Some text
> Quote this level
>> Another level
>>> Yet another level
2015-04-15 21:48:09 -07:00
----
<itemtable header=test;c=column_a;c=column_b,column_c;c=column_d;fdelim=:>
_line_a
column_a:text_a1
column_b:<tablecell>text_a2 \\ This is an example
how to fill a cell over several lines</tablecell>
_line_b
column_a:<tablecell>text_b1 \\ \\ As you can see, local DokuWiki CRLF sequences
can be added to force a linebreak in the cell. Other formatting
elements could be used as well.
</tablecell>
column_c:text_b2
</itemtable>
{|
|+//Extended Table Example//
! style="width: 12em;"|
A1 Header
! style="width: 10em;"|
B1 Header
|- style="background-color: #223344;"
|
{{ icon-enlightenment.png?50&nolink}}
Lorem ipsum dolor sit amet,
consetetur sadipscing elitr,
sed diam nonumy eirmod tempor invidunt
ut labore et dolore magna aliquyam erat,
sed diam voluptua.
|
B2 Data
* //italic//
* ''monospace''
* [[:start|page link]]
**ATTENTION:**\\
Needs an extra empty line
after the end of whole table!
|}
- Ordered list item 1
- Ordered list item 2
-- Ordered list item 3...
.. ... in multiple paragraphs
- Ordered list item 4
* Unordered list item
** Unordered list item...
.. ... in multiple paragraphs
- Ordered list, first level
- Second level
- Third level
- Fourth level
-- Back to second level
- //Second?! What happened to third?//
.. //Quiet, you.//
- Back to first level
- Still at first level
? Definition list
: Definition lists vary only slightly from other types of lists in that list items consist of two parts: a term and a description. The term is given by the DT element and is restricted to inline content. The description is given with a DD element that contains block-level content. [Source: W3C]
? Definition list w/ multiple paragraphs
:: The style sheet provided with this plugin will render these paragraphs...
.. ... to the left of the term being defined.
? Definition list w/ multiple "paragraphs"
: Another way to separate blocks of text in a definition...
: ... is to simply have multiple definitions for a term (or group of terms).
: This definition list has DD tags without any preceding DT tags.
: Hey, it's legal XHTML.
? Just like DT tags without following DD tags.
?? But DT tags can't contain paragraphs. That would __not__ be legal XHTML.
.. If you try, the result will be rendered oddly.
And now to test a bunch of folded text/content below. But ++First |
test if we can fold/unfold inline++. Then try a block below:
++++ Folded block here |
The content would be here
^ Table ^ Blah ^ Blah ^
| Row | Row | Row |
| Your | Boat | Gently |
| Down | The | Stream |
++++
----
~~DISCUSSIONS~~