WikiSyntax.wiki
author Wuzzy
Fri, 13 Jul 2018 04:50:12 +0100
changeset 1454 b984777b8269
parent 1453 a48722ae24fa
child 1455 72829019e224
permissions -rw-r--r--
WikiSyntax: Update links to external pages preview
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1444
b5bd32ab09ed WikiSyntax: Rebranding, remove Google stuff
Wuzzy
parents: 590
diff changeset
     1
#summary The reference to the wiki syntax for the Hedgewars Knowledge Base
590
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
     2
= Wiki Syntax =
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
     3
<wiki:toc max_depth="2" /> 
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
     4
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
     5
= Introduction =
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
     6
1448
d5675d69b286 WikiSyntax: Update introduction for HWKB
Wuzzy
parents: 1447
diff changeset
     7
This page describes the wiki syntax of the Hedgewars Knowledge Base.
d5675d69b286 WikiSyntax: Update introduction for HWKB
Wuzzy
parents: 1447
diff changeset
     8
d5675d69b286 WikiSyntax: Update introduction for HWKB
Wuzzy
parents: 1447
diff changeset
     9
Each wiki page is stored in a `.wiki` file in the [https://hg.hedgewars.org/hwkb/ hwkb repository].
d5675d69b286 WikiSyntax: Update introduction for HWKB
Wuzzy
parents: 1447
diff changeset
    10
There are just text files with some simple markup.
d5675d69b286 WikiSyntax: Update introduction for HWKB
Wuzzy
parents: 1447
diff changeset
    11
Each file's name is the same as the wiki page name.  And, each wiki file consists of optional
d5675d69b286 WikiSyntax: Update introduction for HWKB
Wuzzy
parents: 1447
diff changeset
    12
pragma lines followed by the content of the page.
590
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    13
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    14
= Pragmas =
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    15
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    16
Optional pragma lines provide metadata about the page and how it should be
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    17
displayed. These lines are only processed if they appear at the top of
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    18
the file.  Each pragma line begins with a pound-sign (#) and the
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    19
pragma name, followed by a value.
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    20
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    21
|| *Pragma*   || *Value*  ||
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    22
|| #summary   || One-line summary of the page ||
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    23
|| #labels    || Comma-separated list of labels (filled in automatically via the web UI) ||
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    24
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    25
= Wiki-style markup =
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    26
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    27
== Paragraphs ==
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    28
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    29
Use one or more blank lines to separate paragraphs. 
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    30
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    31
== Typeface ==
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    32
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    33
||* Name/Sample*   || * Markup *       ||
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    34
||  _italic_       || `_italic_`       ||
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    35
||  *bold*         || `*bold*`         ||
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    36
||  `code`         || {{{`code`}}}     ||
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    37
||  {{{code}}}     || `{{{code}}}`     ||
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    38
||  ^super^script  || `^super^script`  ||
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    39
||  ,,sub,,script  || `,,sub,,script`  ||
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    40
|| ~~strikeout~~   || `~~strikeout~~`  ||
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    41
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    42
You can mix these typefaces in some ways:
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    43
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    44
||       *Markup*                    ||        *Result*                 ||
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    45
|| `_*bold* in italics_`             || _*bold* in italics_             ||
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    46
|| `*_italics_ in bold*`             || *_italics_ in bold*             ||
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    47
|| `*~~strike~~ works too*`          || *~~strike~~ works too*          ||
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    48
|| `~~as well as _this_ way round~~` || ~~as well as _this_ way round~~ ||
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    49
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    50
== Code ==
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    51
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    52
If you have a multiline code block that you want to display verbatim,
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    53
use the multiline code delimiter:
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    54
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    55
{{{
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    56
{{{
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    57
def fib(n):
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    58
  if n == 0 or n == 1:
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    59
    return n
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    60
  else:
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    61
    # This recursion is not good for large numbers.
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    62
    return fib(n-1) + fib(n-2)
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    63
}}}
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    64
}}}
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    65
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    66
Which results in:
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    67
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    68
{{{
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    69
def fib(n):
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    70
  if n == 0 or n == 1:
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    71
    return n
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    72
  else:
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    73
    # This recursion is not good for large numbers.
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    74
    return fib(n-1) + fib(n-2)
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    75
}}}
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    76
1453
a48722ae24fa WikiSyntax: about syntax highlighting
Wuzzy
parents: 1452
diff changeset
    77
The `<code>` tag allows you to specify a file extension (note: syntax highlighting is not implemented yet):
590
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    78
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    79
{{{
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    80
<code language="xml">
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    81
<hello target="world"/>
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    82
</code>
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    83
}}}
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    84
1453
a48722ae24fa WikiSyntax: about syntax highlighting
Wuzzy
parents: 1452
diff changeset
    85
The `<pre>` tag is like the code tag, but will never use syntax highlighting.
590
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    86
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    87
== Headings ==
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    88
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    89
{{{
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    90
= Heading =
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    91
== Subheading ==
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    92
=== Level 3 ===
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    93
==== Level 4 ====
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    94
===== Level 5 =====
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    95
====== Level 6 ======
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    96
}}}
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    97
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    98
== Dividers ==
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
    99
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   100
Four or more dashes on a line by themselves results in a horizontal rule.
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   101
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   102
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   103
== Lists ==
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   104
1444
b5bd32ab09ed WikiSyntax: Rebranding, remove Google stuff
Wuzzy
parents: 590
diff changeset
   105
The HWKB wiki supports both bulleted and numbered lists. A list
590
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   106
must be indented at least one space to be recognized as such. You can
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   107
also nest lists one within the other by appropriate use of indenting:
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   108
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   109
{{{
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   110
The following is:
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   111
  * A list
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   112
  * Of bulleted items
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   113
    # This is a numbered sublist
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   114
    # Which is done by indenting further
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   115
  * And back to the main bulleted list
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   116
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   117
 * This is also a list
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   118
 * With a single leading space
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   119
 * Notice that it is rendered
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   120
  # At the same levels
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   121
  # As the above lists.
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   122
 * Despite the different indentation levels.
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   123
}}}
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   124
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   125
The following is:
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   126
  * A list
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   127
  * Of bulleted items
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   128
    # This is a numbered sublist
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   129
    # Which is done by indenting further
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   130
  * And back to the main bulleted list
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   131
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   132
 * This is also a list
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   133
 * With a single leading space
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   134
 * Notice that it is rendered
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   135
  # At the same levels
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   136
  # As the above lists.
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   137
 * Despite the different indentation levels.
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   138
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   139
== Quoting ==
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   140
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   141
Block quotes place emphasis on a particular extract of text in your
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   142
page. Block quotes are created by indenting a paragraph by at least
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   143
one space:
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   144
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   145
{{{
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   146
Someone once said:
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   147
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   148
  This sentence will be quoted in the future as the canonical example
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   149
  of a quote that is so important that it should be visually separate
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   150
  from the rest of the text in which it appears.
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   151
}}}
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   152
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   153
Someone once said:
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   154
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   155
  This sentence will be quoted in the future as the canonical example
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   156
  of a quote that is so important that it should be visually separate
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   157
  from the rest of the text in which it appears.
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   158
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   159
== Links ==
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   160
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   161
Links are central to the wiki principle, as they create the web of
1444
b5bd32ab09ed WikiSyntax: Rebranding, remove Google stuff
Wuzzy
parents: 590
diff changeset
   162
content. The HWKB wiki permits both internal (within the wiki) and
590
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   163
external links, and in some cases automatically creates a link when it
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   164
recognizes either a !WikiWord or an URL.
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   165
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   166
=== Internal wiki links ===
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   167
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   168
Internal links within a wiki are created using the syntax below. If
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   169
you add a wiki link to a page that does not exist, the link will
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   170
appear with a !LittleLink[WikiSyntax ?] to project committers and
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   171
owners. Clicking that link will take you to the page creation form
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   172
where you can enter content for that page.
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   173
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   174
If you are not logged in, wiki links that point to non-existent pages
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   175
will appear as plain text, without the link to the page creation
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   176
form. When you create the target page,
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   177
the link will become a normal hyperlink for all viewers of
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   178
the page.
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   179
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   180
{{{
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   181
WikiSyntax is identified and linked automatically
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   182
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   183
Wikipage is not identified, so if you have a page named [Wikipage] you
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   184
need to link it explicitly.
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   185
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   186
If the WikiSyntax page is actually about reindeers, you can provide a
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   187
description, so that people know you are actually linking to a page on
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   188
[WikiSyntax reindeer flotillas].
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   189
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   190
If you want to mention !WikiSyntax without it being autolinked, use an
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   191
exclamation mark to prevent linking.
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   192
}}}
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   193
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   194
WikiSyntax is identified and linked automatically
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   195
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   196
Wikipage is not identified, so if you have a page named [Wikipage] you
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   197
need to link it explicitly.
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   198
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   199
If the WikiSyntax page is actually about reindeers, you can provide a
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   200
description, so that people know you are actually linking to a page on
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   201
[WikiSyntax reindeer flotillas].
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   202
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   203
If you want to mention !WikiSyntax without it being autolinked, use an
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   204
exclamation mark to prevent linking.
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   205
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   206
=== Links to anchors within a page ===
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   207
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   208
Each heading defines a HTML anchor with the same name as the heading, but with spaces replaced by underscores. You can
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   209
create a link to a specific heading on a page like this:
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   210
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   211
{{{
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   212
[WikiSyntax#Wiki-style_markup]
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   213
}}}
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   214
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   215
And it will render as: [WikiSyntax#Wiki-style_markup].
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   216
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   217
=== Links to external pages ===
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   218
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   219
You can of course link to external pages from your own wiki pages,
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   220
using a syntax similar to that for internal links:
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   221
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   222
{{{
1444
b5bd32ab09ed WikiSyntax: Rebranding, remove Google stuff
Wuzzy
parents: 590
diff changeset
   223
Plain URLs such as https://www.example.org/ automatically made into links.
590
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   224
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   225
You can also provide some descriptive text. For example, the following
1444
b5bd32ab09ed WikiSyntax: Rebranding, remove Google stuff
Wuzzy
parents: 590
diff changeset
   226
link points to the [https://www.example.org Example homepage].
590
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   227
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   228
If your link points to an image, it will get inserted as an image tag
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   229
into the page:
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   230
1454
b984777b8269 WikiSyntax: Update links to external pages preview
Wuzzy
parents: 1453
diff changeset
   231
https://www.hedgewars.org/images/hwkb_example.png
590
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   232
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   233
You can also make the image into a link, by setting the image URL as
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   234
the description of the URL you want to link:
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   235
1454
b984777b8269 WikiSyntax: Update links to external pages preview
Wuzzy
parents: 1453
diff changeset
   236
{{{
b984777b8269 WikiSyntax: Update links to external pages preview
Wuzzy
parents: 1453
diff changeset
   237
[https://www.hedgewars.org/ https://www.hedgewars.org/images/hwkb_example.png]
b984777b8269 WikiSyntax: Update links to external pages preview
Wuzzy
parents: 1453
diff changeset
   238
}}}
b984777b8269 WikiSyntax: Update links to external pages preview
Wuzzy
parents: 1453
diff changeset
   239
b984777b8269 WikiSyntax: Update links to external pages preview
Wuzzy
parents: 1453
diff changeset
   240
[https://www.hedgewars.org/ https://www.hedgewars.org/images/hwkb_example.png]
590
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   241
}}}
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   242
1444
b5bd32ab09ed WikiSyntax: Rebranding, remove Google stuff
Wuzzy
parents: 590
diff changeset
   243
Plain URLs such as https://www.example.org/ automatically made into links.
590
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   244
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   245
You can also provide some descriptive text. For example, the following
1444
b5bd32ab09ed WikiSyntax: Rebranding, remove Google stuff
Wuzzy
parents: 590
diff changeset
   246
link points to the [https://www.example.org Example homepage].
b5bd32ab09ed WikiSyntax: Rebranding, remove Google stuff
Wuzzy
parents: 590
diff changeset
   247
b5bd32ab09ed WikiSyntax: Rebranding, remove Google stuff
Wuzzy
parents: 590
diff changeset
   248
If your link points to an image, it will get inserted as an image tag
b5bd32ab09ed WikiSyntax: Rebranding, remove Google stuff
Wuzzy
parents: 590
diff changeset
   249
into the page:
b5bd32ab09ed WikiSyntax: Rebranding, remove Google stuff
Wuzzy
parents: 590
diff changeset
   250
1449
102830fb1c4d WikiSyntax: Replace example images
Wuzzy
parents: 1448
diff changeset
   251
https://www.hedgewars.org/images/hwkb_example.png
590
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   252
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   253
You can also make the image into a link, by setting the image URL as
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   254
the description of the URL you want to link:
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   255
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   256
{{{
1449
102830fb1c4d WikiSyntax: Replace example images
Wuzzy
parents: 1448
diff changeset
   257
[https://www.hedgewars.org/ https://www.hedgewars.org/images/hwkb_example.png]
590
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   258
}}}
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   259
1449
102830fb1c4d WikiSyntax: Replace example images
Wuzzy
parents: 1448
diff changeset
   260
[https://www.hedgewars.org/ https://www.hedgewars.org/images/hwkb_example.png]
590
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   261
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   262
=== Links to images ===
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   263
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   264
If your link points to an image (that is, if it ends in `.png`,
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   265
`.gif`, `.jpg` or `.jpeg`), it will get inserted as an image into the
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   266
page:
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   267
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   268
{{{
1449
102830fb1c4d WikiSyntax: Replace example images
Wuzzy
parents: 1448
diff changeset
   269
https://www.hedgewars.org/images/hwkb_example.png
590
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   270
}}}
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   271
1449
102830fb1c4d WikiSyntax: Replace example images
Wuzzy
parents: 1448
diff changeset
   272
https://www.hedgewars.org/images/hwkb_example.png
590
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   273
1451
dbeae3841e1d WikiSyntax: Update example image for nonsense url
Wuzzy
parents: 1450
diff changeset
   274
If the URL of the image does not end with a standard file name suffix such as `.png`, you may need to add a `nonsense` query string parameter to the end so that the URL ends with a supported image filename extension. For example, for the URL `https://www.hedgewars.org/images/hwkb_example_weird_suffix.foo` (which refers to a PNG image), you could write instead:
590
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   275
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   276
{{{
1451
dbeae3841e1d WikiSyntax: Update example image for nonsense url
Wuzzy
parents: 1450
diff changeset
   277
https://www.hedgewars.org/images/hwkb_example_weird_suffix.foo?nonsense=something_that_ends_with.png
590
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   278
}}}
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   279
1451
dbeae3841e1d WikiSyntax: Update example image for nonsense url
Wuzzy
parents: 1450
diff changeset
   280
https://www.hedgewars.org/images/hwkb_example_weird_suffix.foo?nonsense=something_that_ends_with.png
590
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   281
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   282
== Tables ==
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   283
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   284
Tables are created by entering the content of each cell separated by
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   285
{{{||}}} delimiters. You can insert other inline wiki syntax in table
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   286
cells, including typeface formatting and links.
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   287
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   288
{{{
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   289
|| *Year* || *Temperature (low)* || *Temperature (high)* ||
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   290
|| 1900 || -10 || 25 ||
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   291
|| 1910 || -15 || 30 ||
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   292
|| 1920 || -10 || 32 ||
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   293
|| 1930 || _N/A_ || _N/A_ ||
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   294
|| 1940 || -2 || 40 ||
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   295
}}}
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   296
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   297
|| *Year* || *Temperature (low)* || *Temperature (high)* ||
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   298
|| 1900 || -10 || 25 ||
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   299
|| 1910 || -15 || 30 ||
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   300
|| 1920 || -10 || 32 ||
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   301
|| 1930 || _N/A_ || _N/A_ ||
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   302
|| 1940 || -2 || 40 ||
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   303
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   304
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   305
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   306
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   307
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   308
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   309
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   310
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   311
= HTML support =
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   312
To aid in the presentation of a wiki page there is some support for HTML. HTML tags are only supported in wiki pages, not in page comments.
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   313
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   314
HTML syntax can be used in conjunction with wiki syntax, but it is recommended against doing so where possible.<wiki:comment>Also, avoid blank lines between list items.</wiki:comment>
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   315
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   316
The following HTML tags and attributes are currently supported:
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   317
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   318
<table border=1>
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   319
<thead><th>HTML Tag</th><th>Supported Attributes</th></thead>
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   320
<tbody>
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   321
<tr><td>a</td><td>title dir lang href</td></tr>
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   322
<tr><td>b</td><td>title dir lang</td></tr>
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   323
<tr><td>br</td><td>title dir lang</td></tr>
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   324
<tr><td>blockquote</td><td>title dir lang</td></tr>
1453
a48722ae24fa WikiSyntax: about syntax highlighting
Wuzzy
parents: 1452
diff changeset
   325
<tr><td>code</td><td>title dir lang</td></tr>      
590
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   326
<tr><td>dd</td><td>title dir lang</td></tr>
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   327
<tr><td>div</td><td>title dir lang</td></tr>
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   328
<tr><td>dl</td><td>title dir lang</td></tr>      
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   329
<tr><td>dt</td><td>title dir lang</td></tr>      
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   330
<tr><td>em</td><td>title dir lang</td></tr>      
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   331
<tr><td>font</td><td>title dir lang face size color</td></tr>      
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   332
<tr><td>h1</td><td>title dir lang</td></tr>      
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   333
<tr><td>h2</td><td>title dir lang</td></tr>      
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   334
<tr><td>h3</td><td>title dir lang</td></tr>      
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   335
<tr><td>h4</td><td>title dir lang</td></tr>      
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   336
<tr><td>h5</td><td>title dir lang</td></tr>      
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   337
<tr><td>i</td><td>title dir lang</td></tr>      
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   338
<tr><td>img</td><td>title dir lang src alt border height width align</td></tr>  
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   339
<tr><td>li</td><td>title dir lang</td></tr>      
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   340
<tr><td>ol</td><td>title dir lang type start</td></tr>    
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   341
<tr><td>p</td><td>title dir lang align</td></tr>     
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   342
<tr><td>pre</td><td>title dir lang</td></tr>      
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   343
<tr><td>q</td><td>title dir lang</td></tr>      
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   344
<tr><td>s</td><td>title dir lang</td></tr>      
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   345
<tr><td>span</td><td>title dir lang</td></tr>      <tr><td>strike</td><td>title dir lang</td></tr>      <tr><td>strong</td><td>title dir lang</td></tr>      
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   346
<tr><td>sub</td><td>title dir lang</td></tr>      
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   347
<tr><td>sup</td><td>title dir lang</td></tr>  
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   348
<tr><td>table</td><td>title dir lang align valign cellspacing cellpadding border width height</td></tr>  
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   349
<tr><td>tbody</td><td>title dir lang align valign cellspacing cellpadding border width height</td></tr>  
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   350
<tr><td>td</td><td>title dir lang align valign cellspacing cellpadding border width height</td></tr>  
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   351
<tr><td>tfoot</td><td>title dir lang align valign cellspacing cellpadding border width height</td></tr>  
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   352
<tr><td>th</td><td>title dir lang align valign cellspacing cellpadding border width height</td></tr>  
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   353
<tr><td>thead</td><td>title dir lang align valign cellspacing cellpadding border width height colspan rowspan</td></tr>
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   354
<tr><td>tr</td><td>title dir lang align valign cellspacing cellpadding border width height colspan rowspan</td></tr>
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   355
<tr><td>tt</td><td>title dir lang</td></tr>      
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   356
<tr><td>u</td><td>title dir lang</td></tr>      
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   357
<tr><td>ul</td><td>title dir lang type</td></tr>     
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   358
<tr><td>var</td><td>title dir lang</td></tr>      </tbody>
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   359
</table>
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   360
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   361
== Escaping HTML Tags ==
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   362
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   363
When you want to display html tags directly on your wiki page (as opposed to rendered), you will need to escape each HTML tag. 
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   364
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   365
HTML tags can be escaped as shown in the table below:
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   366
<table border="1">
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   367
<thead><th>Markup</th><th>Result</th></thead>
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   368
<tbody>
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   369
<tr><td> {{{`<hr>`}}}</td><td>`<hr>`</td></tr>
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   370
<tr><td> `{{{<hr>}}}`</td><td>{{{<hr>}}}</td></tr>
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   371
</tbody>
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   372
</table>
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   373
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   374
= Comments =
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   375
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   376
The wiki supports embedded comments to help explain the contents of a wiki page. Anything inside the comment block is removed from the rendered page, but is visible when editing or viewing the source for that page.
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   377
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   378
{{{
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   379
<wiki:comment>
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   380
This text will be removed from the rendered page.
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   381
</wiki:comment>
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   382
}}}
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   383
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   384
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   385
= Navigation =
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   386
== Table of Contents ==
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   387
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   388
An inline table of contents can be generated from page headers on a wiki page. Add the following syntax to a page in the location the table of contents should be displayed:
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   389
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   390
{{{
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   391
<wiki:toc max_depth="1" />
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   392
}}}
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   393
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   394
Valid attributes are:
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   395
 * `max_depth`: the maximum header depth to display in the table of contents
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   396
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   397
== Side navigation ==
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   398
1446
62a948dbdcad WikiSyntax: Update sidebar stuff
Wuzzy
parents: 1445
diff changeset
   399
The sidebar is just another wiki page and defined in the special page [TableOfContents].
590
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   400
1446
62a948dbdcad WikiSyntax: Update sidebar stuff
Wuzzy
parents: 1445
diff changeset
   401
The side navigation that is defined should be in the format of a simple list, as shown below:
590
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   402
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   403
{{{
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   404
  * [Articles HOWTO articles]
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   405
    * [ArticlesXSS Web security]
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   406
    * [ArticlesDom DOM manipulation]
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   407
    * [ArticlesStyle CSS and style]
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   408
    * [ArticlesTips Tips and tricks]
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   409
  * [DOMReference DOM reference]
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   410
  * [HTMLElements HTML reference]
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   411
  * [CSSReference CSS reference]
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   412
}}}
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   413
1445
abd165fa6426 WikiSyntax: Horizontal line
Wuzzy
parents: 1444
diff changeset
   414
----
590
3e416a17f6b9 add GC's wiki syntax page
sheepluva
parents:
diff changeset
   415
1448
d5675d69b286 WikiSyntax: Update introduction for HWKB
Wuzzy
parents: 1447
diff changeset
   416
_The content on this page is based on the old Google Code documentation for Google Code wikis and has been adapted and changed to fit the Hedgewars Knowledge Base. The original document by Google is licensed under the [http://creativecommons.org/licenses/by/3.0/ Creative Commons Attribution 3.0 License].  User-generated content is not included in this license._