inital commit - Durchstich

This commit is contained in:
Tilman Walther
2012-01-08 15:18:29 +01:00
commit d72297216f
167 changed files with 15822 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="test"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/3.8.1"/>
<classpathentry kind="output" path="eclipse_out"/>
</classpath>
+17
View File
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>More Wiki in a jar</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

+3
View File
@@ -0,0 +1,3 @@
cd ..
start javaw -Dfile.encoding=UTF-8 -jar wiki.in.a.jar 3003
start http://localhost:3003/wiki
+13
View File
@@ -0,0 +1,13 @@
#!/bin/bash
cd ..
java -Dfile.encoding=UTF-8 -jar wiki.in.a.jar 3003 &
echo "Wiki server started"
echo ""
echo "URL: http://localhost:3003/wiki"
echo ""
echo "Hit enter to continue"
read dummy
+141
View File
@@ -0,0 +1,141 @@
<?xml version="1.0"?>
<!-- ======================================================================
Sep 27, 2008
More Wiki in a jar
A wiki small enough to run on a USB drive.
This is an offspring of Wiki in a jar by rico_g
Jens DOT Fauth AT gmx DOT net
====================================================================== -->
<!-- ======================================================================
Mar 8, 2007 8:57:25 AM
Wiki in a jar
A wiki small enough to run on a USB drive.
rico_g AT users DOT sourceforge DOT net
====================================================================== -->
<project name="More Wiki in a jar" default="dist">
<description>
More Wiki in a jar
A wiki small enough to run on a USB drive.
This is an offspring of Wiki in a jar by rico_g
Jens DOT Fauth AT gmx DOT net
</description>
<property name="build" value="build" />
<property name="dist" value="dist" />
<property name="dist.version" value="0.9.9" />
<tstamp>
<format property="build.date" pattern="yyyyMMdd" />
</tstamp>
<!-- =================================
target: clean
================================= -->
<target name="clean" description="Cleans output directories">
<delete dir="${build}" />
<delete dir="${dist}" />
</target>
<!-- =================================
target: build
================================= -->
<target name="build" depends="init, compile, jar" description="Builds the project jar">
</target>
<!-- =================================
target: dist
================================= -->
<target name="dist" depends="build" description="Creates the binary distibution">
<copy file="public/distdocs/wiki/About More Wiki in a Jar.wiki" tofile="${build}/About More Wiki in a Jar.wiki" filtering="true" overwrite="true">
<filterset>
<filter token="VERSION" value="${dist.version} ${build.date}" />
</filterset>
</copy>
<copy file="public/docs/wiki/Help Formatting.wiki" tofile="public/distdocs/wiki/Help Formatting.wiki" overwrite="true" />
<copy file="public/docs/wiki/Help Links.wiki" tofile="public/distdocs/wiki/Help Links.wiki" overwrite="true" />
<copy file="public/docs/wiki/Help Tables.wiki" tofile="public/distdocs/wiki/Help Tables.wiki" overwrite="true" />
<copy file="public/docs/wiki/Wiki Help.wiki" tofile="public/distdocs/wiki/Wiki Help.wiki" overwrite="true" />
<copy file="public/docs/wiki/Help Span and Div.wiki" tofile="public/distdocs/wiki/Help Span and Div.wiki" overwrite="true" />
<copy file="public/docs/wiki/Wiki Formatting Demo.wiki" tofile="public/distdocs/wiki/Wiki Formatting Demo.wiki" overwrite="true" />
<zip destfile="${dist}/MoreWikiInAJar-${dist.version}-${build.date}-bin.zip">
<zipfileset file="bin/start.cmd" prefix="wiki.in.a.jar/bin" />
<zipfileset file="bin/start.sh" filemode="755" prefix="wiki.in.a.jar/bin" />
<zipfileset file="${build}/wiki.in.a.jar" prefix="wiki.in.a.jar" />
<zipfileset dir="public/skins" prefix="wiki.in.a.jar/public/skins" />
<zipfileset dir="public/views" prefix="wiki.in.a.jar/public/views" />
<zipfileset dir="public/distdocs" prefix="wiki.in.a.jar/public/docs">
<exclude name="**/About More Wiki in a Jar.wiki" />
</zipfileset>
<zipfileset file="${build}/About More Wiki in a Jar.wiki" prefix="wiki.in.a.jar/public/docs/wiki" />
<zipfileset file="releasenotes.txt" prefix="wiki.in.a.jar" />
</zip>
<zip destfile="${dist}/MoreWikiInAJar-${dist.version}-${build.date}-bin-upgrade.zip">
<zipfileset file="bin/start.cmd" prefix="wiki.in.a.jar/bin" />
<zipfileset file="bin/start.sh" filemode="755" prefix="wiki.in.a.jar/bin" />
<zipfileset file="${build}/wiki.in.a.jar" prefix="wiki.in.a.jar" />
<zipfileset dir="public/skins" prefix="wiki.in.a.jar/public/skins" />
<zipfileset dir="public/views" prefix="wiki.in.a.jar/public/views" />
<zipfileset dir="public/distdocs" prefix="wiki.in.a.jar/public/docs">
<exclude name="**/About More Wiki in a Jar.wiki" />
<exclude name="**/Main Page.wiki" />
<exclude name="**/Private Idea.wiki" />
<exclude name="**/Work Related Idea.wiki" />
</zipfileset>
<zipfileset file="${build}/About More Wiki in a Jar.wiki" prefix="wiki.in.a.jar/public/docs/wiki" />
<zipfileset file="releasenotes.txt" prefix="wiki.in.a.jar" />
</zip>
<zip destfile="${dist}/MoreWikiInAJar-${dist.version}-${build.date}-src.zip">
<zipfileset file="bin/start.cmd" prefix="wiki.in.a.jar/src/bin" />
<zipfileset file="bin/start.sh" filemode="755" prefix="wiki.in.a.jar/src/bin" />
<zipfileset dir="public/skins" prefix="wiki.in.a.jar/src/public/skins" />
<zipfileset dir="public/views" prefix="wiki.in.a.jar/src/public/views" />
<zipfileset dir="public/distdocs" prefix="wiki.in.a.jar/src/public/distdocs" />
<zipfileset dir="public/docs" prefix="wiki.in.a.jar/src/public/docs" />
<zipfileset dir="src" prefix="wiki.in.a.jar/src/src" />
<zipfileset dir="lib" prefix="wiki.in.a.jar/src/lib" />
<zipfileset file=".classpath" prefix="wiki.in.a.jar/src" />
<zipfileset file=".project" prefix="wiki.in.a.jar/src" />
<zipfileset file="build.xml" prefix="wiki.in.a.jar/src" />
<zipfileset file="releasenotes.txt" prefix="wiki.in.a.jar/src" />
<zipfileset file="todo.txt" prefix="wiki.in.a.jar/src" />
</zip>
</target>
<!-- - - - - - - - - - - - - - - - - -
target: init
- - - - - - - - - - - - - - - - - -->
<target name="init">
<mkdir dir="${build}" />
<mkdir dir="${build}/classes" />
<mkdir dir="${dist}" />
</target>
<!-- - - - - - - - - - - - - - - - - -
target: compile
- - - - - - - - - - - - - - - - - -->
<target name="compile">
<javac srcdir="src" destdir="${build}/classes" classpath="lib/xrays.jar" debug="on" />
</target>
<!-- - - - - - - - - - - - - - - - - -
target: jar
- - - - - - - - - - - - - - - - - -->
<target name="jar">
<unjar src="lib/xrays.jar" dest="${build}/classes" />
<jar basedir="${build}/classes" destfile="${build}/wiki.in.a.jar">
<manifest>
<attribute name="Main-Class" value="org.rgse.wikiinajar.server.Server" />
</manifest>
</jar>
</target>
</project>
+21
View File
@@ -0,0 +1,21 @@
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><link href="/public/skins/default/master.css" rel="stylesheet" type="text/css" /><title>Reiseliste</title></head><body><div id="header-content"><div id="header-logo"><br /></div><div id="header-menu"><table cellspacing="0" cellpadding="0" border="0" style="padding: 0pt; margin: 0pt; border: 0pt none;"><tbody><tr><td width="5px"><img height="24" src="/public/skins/default/common/ctl.png" /></td><td style="padding-left: 10px;"></td><td id="menu-entry"><a style="color: rgb(255, 255, 255); font-weight: bold;" href="/wiki" title="Home [Alt-h]" accesskey="h">home</a></td><td id="menu-entry"><a style="color: rgb(255, 255, 255); font-weight: bold;" href="/index/wiki" title="Index [Alt-i]" accesskey="i">index</a></td><td id="menu-entry"><a style="color: rgb(255, 255, 255); font-weight: bold;" href="/calendar" title="Calendar [Alt-c]" accesskey="c">calendar</a></td><td><img height="24" width="4" src="/public/skins/default/common/left-corner.gif" /></td><td bgcolor="#ffffff" id="tab-selected">Reiseliste</td><td><img height="24" width="15" src="/public/skins/default/common/right-corner.gif" /></td><td width="100%"></td><td><form method="GET" action="/find/pages/" name="findform"><div id="search-bar"><input type="text" id="search-txt" tabindex="0" name="query" accesskey="f" title="Find [Alt-f]" /><input type="submit" id="search-btn" value="" title="Find [Alt-f]" /></div></form><script language="javascript"></script></td><td style="padding: 0pt; text-align: right;"><img height="24" src="/public/skins/default/common/ctr.png" /></td></tr></tbody></table></div></div><div id="main-content"><div id="sub-menu"><span><a accesskey="e" title="Edit [Alt-e]" href="%0A%09%09%09%09%09/wiki/edit/%0A%09%09%09%09%09Reiseliste">edit</a></span></div><div id="content"><div id="inner"><h1>Reiseliste</h1><div><ul>
<li>Verlängerungskabel</li>
<li>Aspirin</li>
<li>Plastikbeutel</li>
<li>USB-Netzteil + -Kabel</li>
</ul>
</div></div><div id="tag-list">
tagged as
<a href="%0A%09%09%09%09%09%09%09/tag/tree/%0A%09%09%09%09%09%09%09all">all</a>
<a href="%0A%09%09%09%09%09%09%09/tag/tree/%0A%09%09%09%09%09%09%09r">r</a>
<a href="%0A%09%09%09%09%09%09%09/tag/tree/%0A%09%09%09%09%09%09%09wiki">wiki</a>
</div></div></div><div id="footer-content"><div id="footer"><table cellspacing="0" cellpadding="0" border="0" style="padding: 0pt; margin: 0pt; border: 0pt none;"><tbody><tr><td width="5px"><img height="45" src="/public/skins/default/common/cbl.png" /></td><td style="padding-left: 10px;"></td><td><a style="color: rgb(255, 255, 255); font-weight: bold;" href="http://morewikiinajar.sourceforge.net/">
sourceforge.net
</a></td><td width="100%" style="color: rgb(255, 255, 255); font-size: xx-small;">
do good!
</td><td><a style="color: rgb(255, 255, 255); font-weight: bold;" href="/wiki/show/About%20More%20Wiki%20in%20a%20Jar">
about
</a></td><td style="padding-left: 10px;"></td><td style="padding: 0pt; text-align: right;"><img height="45" src="/public/skins/default/common/cbr.png" /></td></tr></tbody></table></div></div></body></html>
+45
View File
@@ -0,0 +1,45 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="/public/skins/default/master.xsl"?>
<page>
<main-menu>
<main-menu-entry selected="no" value="home" link="/wiki" accesskey="h" title="Home [Alt-h]"/>
<main-menu-entry selected="no" value="index" link="/index/wiki" accesskey="i" title="Index [Alt-i]"/>
<main-menu-entry selected="no" value="calendar" link="/calendar" accesskey="c" title="Calendar [Alt-c]"/>
<article-menu />
</main-menu>
<sub-menu>
<edit-menu>edit</edit-menu>
</sub-menu>
<article >
<tag-list >
<tag >all</tag>
<tag >r</tag>
<tag >wiki</tag>
</tag-list>
<id ><![CDATA[Reiseliste]]></id>
<show-article >
<content ><div><ul>
<li >Verlängerungskabel</li>
<li >Aspirin</li>
<li >Plastikbeutel</li>
<li >USB-Netzteil + -Kabel</li>
</ul>
</div></content>
</show-article>
</article>
<footer />
</page>
Binary file not shown.
@@ -0,0 +1,16 @@
BEGIN:VCARD
VERSION:2.1
N:Lastname;Firstname
FN:Firstname Lastname
ORG:Company
TITLE:Job title
NOTE;ENCODING=QUOTED-PRINTABLE:Some ''notes'' [[Firstname Lastname]] [[wiki:Main Page]].=0D=0A
TEL;WORK;VOICE:business phone
TEL;HOME;VOICE:home phone
TEL;CELL;VOICE:cell phone
TEL;WORK;FAX:fax
ADR;WORK:;;1234 Street;City;State;ZIP;Country
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:1234 Street=0D=0ACity, State ZIP=0D=0ACountry
BDAY:20050501
EMAIL;PREF;INTERNET:firstname@lastname.com
END:VCARD
@@ -0,0 +1,23 @@
''More Wiki in a Jar'' is a small Wiki written in Java with great focus on simplicity and a full Wikiformating syntax. It is intended to run on a USB stick as a replacement for a paper note- and address book as a Personal Information Manager (PIM). It supports vcard (vcf) contact files. It is a improved version of "Wiki in a jar" from rico_g.
* '''More Wiki in a Jar Version:''' @VERSION@
"More Wiki in a jar" is a improved version of "Wiki in a jar" by rico_g.
The main aspect of the improvment is to fully support the Wiki formating language.
- Definitions
- Intends
- Comments and <nowiki>
- Content Menu for larger documents
- Table support
- Full UTF8 support
- Print view layout
For the future is planed to add a media support for pictures and other documents.
But the main goal is to keep the project as small as possible.
The core instalation should be less than 1MB.
== License ==
* ''More Wiki in a Jar'' is distributed under the GNU General Public License (GPL). More details here: http://www.gnu.org/copyleft/gpl.html
* The embedded HTTP server is based on ''NanoHTTPD'' available under a modified BSD license. More details here: http://elonen.iki.fi/code/nanohttpd/#license
== Disclaimer ==
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,150 @@
You can format your text using wiki markup. This consists of normal characters like asterisks, single quotes or equation marks which have a special function in the wiki, sometimes depending on their position. For example, to format a word in ''italic'', you include it in two single quotes like <tt><nowiki>''this''</nowiki></tt>
== Text formatting markup ==
{| align="center" border="2" width="100%" cellspacing="4" cellpadding="3" rules="all" style="margin:1em 1em 1em 0; border:solid 1px #AAAAAA; border-collapse:collapse;empty-cells:show;"
|-
| bgcolor="#A7C1F2" |'''Description'''
| bgcolor="#A7C1F2" |'''You type'''
| bgcolor="#A7C1F2" |'''You get'''
|-
| colspan="3" align="center" | ''applies anywhere''
|-
|Italic text
|<tt><nowiki>''italic''</nowiki></tt>
|''italic''
|-
| Bold text
|<tt><nowiki>'''bold'''</nowiki></tt>
|'''bold'''
|-
| Bold and italic
|<tt><nowiki>'''''bold & italic'''''</nowiki></tt>
|'''''bold & italic'''''
|-
|Escape wiki markup
|<tt><nowiki><nowiki>no "markup"</nowiki></nowiki></tt>
|<nowiki>no ''markup''</nowiki>
|-
|Fixed width text
|
<nowiki><tt>Fixed width text</tt></nowiki>
|
<tt>Fixed width text</tt>
|-
| colspan="3" align="center" | ''only at the beginning of the line''
|-
| Indent text
|
<tt><nowiki>:Single indent</nowiki></tt><br>
<tt><nowiki>::Double indent</nowiki></tt><br>
<tt><nowiki>:::::Multiple indent</nowiki></tt>
|
:Single indent
::Double indent
:::::Multiple indent
|-
|Headings of<br>different levels
|
<tt><nowiki>=level 1=</nowiki></tt><br>
<tt><nowiki>==level 2==</nowiki></tt><br>
<tt><nowiki>===level 3===</nowiki></tt><br>
<tt><nowiki>====level 4====</nowiki></tt><br>
<tt><nowiki>=====level 5=====</nowiki></tt><br>
<tt><nowiki>======level 6======</nowiki></tt>
|
<!-- this is fake to remove the level from the content menu -->
<span style='font-size: 18pt; font-weight: bold; margin: 0 0 10px 0; padding: 0; color: #2D4386'>level 1</span><br>
<span style='font-size: 15pt; font-weight: bold; margin: 1px 0 5px 0; padding: 0; color: #2D4386'>level 2</span><br>
<span style='font-size: 12pt; font-weight: bold; margin: 10px 0 4px 0; padding: 0; color: #2D4386'>level 3</span><br>
<span style='font-size: 10pt; font-weight: bold; margin: 10px 0 4px 0; padding: 0; color: #2D4386'>level 4</span><br>
<span style='font-size: 8pt; font-weight: bold; 10px 0 4px 0; padding: 0; color: #2D4386'>level 5</span><br>
<span style='font-size: 6pt; font-weight: bold; margin: 10px 0 4px 0; padding: 0; color: #2D4386'>level 6</span>
|-
|Horizontal rule
|
<tt><nowiki>----</nowiki></tt>
|
----
|-
|Bullet list
|
<tt><nowiki>* one</nowiki></tt><br>
<tt><nowiki>* two</nowiki></tt><br>
<tt><nowiki>* three</nowiki></tt><br>
<tt><nowiki>** three and one-third</nowiki></tt><br>
<tt><nowiki>** three and two-thirds</nowiki></tt>
|
* one
* two
* three
** three and one-third
** three and two-thirds
|-
|Numbered list
|
<tt><nowiki># one</nowiki></tt><br>
<tt><nowiki># two<br>spanning several lines<br>without breaking the numbering</nowiki></tt><br>
<tt><nowiki># three</nowiki></tt><br>
<tt><nowiki>## three point one</nowiki></tt><br>
<tt><nowiki>## three point two</nowiki></tt>
|
# one
# two<br>spanning several lines<br>without breaking the numbering
# three
## three point one
## three point two
|-
| Mixture of bulleted<br> and numbered lists
|
<tt><nowiki># one</nowiki></tt><br>
<tt><nowiki># two</nowiki></tt><br>
<tt><nowiki>#* two point one</nowiki></tt><br>
<tt><nowiki>#* two point two</nowiki></tt><br>
|
# one
# two
#* two point one
#* two point two
|-
|Definition list
|
<tt><nowiki>;Definition</nowiki></tt><br>
<tt><nowiki>:item 1</nowiki></tt><br>
<tt><nowiki>:item 2</nowiki></tt>
|
;Definition
:item 1
:item 2
|-
|Preformatted text
|
<tt><nowiki> preformatted text is done with</nowiki></tt><br>
<tt><nowiki> a space at the </nowiki></tt><br>
<tt><nowiki> beginning of the line</nowiki></tt>
|
<pre>
preformatted text is done with
a space at the
beginning of the line
</pre>
|-
|Preformatted text with no indentation
|
<nowiki><pre> some preformatted text with no indentation </pre></nowiki>
|
<pre>
some preformatted
text with no indentation
</pre>
|}
== Paragraphs ==
More Wiki in a jar ignores normal line breaks. To start a new paragraph, leave an empty line.
== See Also ==
* [[Help Links]]
* [[Help Tables]]
* [[Help Span and Div]]
[[tags: help]]
@@ -0,0 +1,74 @@
There are twi sorts of links in More Wiki in a jar:
# internal links to other pages in the wiki
# external links to websites
To add an internal link, enclose the name of the page you want to link to in double square brackets. When you save the page, you'll see the new link pointing to your page. If the page exists already, it is displayed in blue, empty pages are displayed in red.
== How to link ==
{| border="2" width="100%" cellspacing="4" cellpadding="3" rules="all" style="margin:1em 1em 1em 0; border:solid 1px #AAAAAA; border-collapse:collapse;empty-cells:show;"
|-
|bgcolor="#8DA7D6" color="black"|'''Description'''
|bgcolor="#8DA7D6" color="black"|'''You type'''
|bgcolor="#8DA7D6" color="black"|'''You get'''
|-
|Internal link
|<tt><nowiki>[[Main Page]]</nowiki></tt>
|[[Main Page]]
|-
|Piped link
|<tt><nowiki>[[Main Page|different text]]</nowiki></tt>
|[[Main Page|different text]]
|-
|External link
|<tt><nowiki>http://morewikiinajar.sourceforge.net/</nowiki></tt>
|http://morewikiinajar.sourceforge.net/
|-
|External link,<br>different title
|<tt><nowiki>[http://morewikiinajar.sourceforge.net/ More Wikie in a jar]</nowiki></tt>
|[http://morewikiinajar.sourceforge.net/ More Wiki in a jar]
|-
|External link,<br>numbered
|<tt><nowiki>[http://morewikiinajar.sourceforge.net/]</nowiki></tt>
|[http://morewikiinajar.sourceforge.net/]
|-
|Anchor link
|<tt><nowiki>[[#See also]]</nowiki></tt>
|[[#See also]]
|-
|Anchor link,<br>different title
|<tt><nowiki>[[#See also|A diffrent see also]]</nowiki></tt>
|[[#See also|A diffrent see also]]
|-
|Anchor link at another page
|<tt><nowiki>[[Help Tables#See also]]</nowiki></tt>
|[[Help Tables#See also]]
|-
|Anchor link at another page,<br>different title
|<tt><nowiki>[[Help Tables#See also|See also on Help Tables]]</nowiki></tt>
|[[Help Tables#See also|See also on Help Tables]]
<!--
|-
|Internal link to image file
|<tt><nowiki>[[media:example.jpg]]</nowiki></tt>
|[[media:example.jpg]]
|-
|Internal link to pdf file
|<tt><nowiki>[[media:example.pdf]]</nowiki></tt>
|[[media:example.pdf]]
-->
|}
== How to avoid auto-links ==
By default, when you write a URL as is, it will be transformed to an external link.
To avoid that effect, put the URL between <nowiki><nowiki></nowiki> start & end tags as in:
<nowiki><nowiki>http://morewikiinajar.sourceforge.net/</nowiki></nowiki>
== See also ==
* [[Help Formatting]]
* [[Help Tables]]
* [[Help Span and Div]]
[[tags: help]]
@@ -0,0 +1,43 @@
You can use the <nowiki><span> and <div></nowiki> tags to apply special markup to your wiki pages. The main difference between the two is that a <nowiki><div></nowiki> tag always extends to the end of the line, forcing all following content to continue on the next line. So <nowiki><div></nowiki> is ideal to create paragraphs with a different format while <nowiki><span></nowiki> may be used to format single words or phrases within a paragraph.<br>
Inform yourself about the possible formattings e.g. [http://www.eskimo.com/~bloo//indexdot/css/propindex/all.htm here].
{| align="center" border="2" width="100%" cellspacing="4" cellpadding="3" rules="all" style="margin:1em 1em 1em 0; border:solid 1px #AAAAAA; border-collapse:collapse;empty-cells:show;"
|-
| bgcolor="#A7C1F2" |'''Description'''
| bgcolor="#A7C1F2" |'''You type'''
| bgcolor="#A7C1F2" |'''You get'''
|-
| Colored text
| <nowiki><span style='color:red'>colored</span></nowiki><br><nowiki><span style='color:#FF0000'>colored</span></nowiki><br> <nowiki><div style='color:red'>colored</div></nowiki><br><nowiki><div style='color:#FF0000'>colored</div></nowiki>
| <span style='color:red'>colored</span><br><span style='color:#FF0000'>colored</span><br><div style='color:red'>colored</div><div style='color:#FF0000'>colored</div>
|-
| Change font
| <nowiki><span style='font: 18pt Serif'>bigger text</span></nowiki><br><nowiki><div style='font: 18pt Serif'>bigger text</div></nowiki>
| <span style='font: 18pt Serif'>bigger text</span><br><div style='font: 18pt Serif'>bigger text</div>
|-
| Multiple styles
| <nowiki><span style='font: 18pt Serif; color: green; text-decoration: underline'>Text</span></nowiki><br><nowiki><div style='font: 18pt Serif; color: green; text-decoration: underline'>Text</div></nowiki>
| <span style='font: 18pt Serif; color: green; text-decoration: underline'>Text</span><br><div style='font: 18pt Serif; color: green; text-decoration: underline'>Text</div>
|}
Now an example how to <nowiki>combine <pre><span></pre> and <pre><div></pre>:</nowiki><br>
<pre>
<nowiki><div style='font: 14pt Sans-Serif; color: blue'>
Sample text, extending across multiple lines.<br>
Sample text, extending across multiple lines.<br>
Sample text, extending across multiple lines.<br>
<span style='color:red;text-decoration:underline'>Now this is different ;-).</span>
Sample text, extending across multiple lines.<br>
Sample text, extending across multiple lines.<br>
Sample text, extending across multiple lines.<br>
</div></nowiki>
</pre>
Creates:<br>
<div style='font: 14pt Sans-Serif; color: blue'>Sample text, extending across multiple lines.<br>Sample text, extending across multiple lines.<br>Sample text, extending across multiple lines.<br>Sample text, extending across multiple lines.<br>Sample text, extending across multiple lines.<br><span style='color:red;text-decoration:underline'>Now this is different ;-).</span>Sample text, extending across multiple lines.<br>Sample text, extending across multiple lines.<br>Sample text, extending across multiple lines.<br></div>
==See also==
* [[Help Formatting]]
* [[Help Tables]]
* [[Help Links]]
[[tags: help]]
@@ -0,0 +1,587 @@
Tables may be authored in wiki pages using either HTML table elements directly, or using wikicode formatting to define the table. HTML table elements and their use are well described on various web pages and will not be discussed here. The benefit of wikicode is that the table is constructed of character symbols which tend to make it easier to perceive the table structure in the article editing view compared to HTML table elements.
As a general rule, it is best to avoid using a table unless you need one. Table markup often complicates page editing.
== Wiki table markup summary ==
{|cellpadding="5" cellspacing="0" border="1" width="600"
|<nowiki>{|</nowiki> || '''table start'''
|-
|<nowiki>|+</nowiki> || table '''caption,''' ''optional;'' only between '''table start''' and first '''table row'''
|-
|<nowiki>|-</nowiki> || '''table row,''' ''optional on first row'' -- wiki engine assumes the first row
|-
|<nowiki>!</nowiki> || '''table header''' cell, ''optional.'' Consecutive '''table header''' cells may be added on same line separated by double marks (!!) or start on new lines, each with its own single mark (!).
|-
|<nowiki>|</nowiki> || '''table data''' cell, ''required!'' Consecutive '''table data''' cells may be added on same line separated by double marks (<nowiki>||</nowiki>) or start on new lines, each with its own single mark (<nowiki>|</nowiki>).
|-
|<nowiki>|}</nowiki> || '''table end'''
|}
*The above marks must '''start on a new line''' except the double || and !! for optionally adding consecutive cells to a line.
*'''XHTML attributes.''' Each mark, except table end, optionally accepts one or more XHTML attributes. Attributes must be on the same line as the mark. Separate attributes from each other with a single space.
**Cells and caption (<nowiki>| or ||, ! or !!, and |+</nowiki>) hold content. So separate any attributes from content with a single pipe (|). Cell content may follow on same line or on following lines.
**Table and row marks (<nowiki>{| and |-</nowiki>) do not directly hold content. Do ''not'' add pipe (|) after their optional attributes. If you erroneously add a pipe after attributes for the table mark or row mark the parser will delete it ''and'' your final attribute if it was touching the erroneous pipe!
*'''Content''' may (a) follow its cell mark on the same line after any optional XHTML attributes or (b) on lines below the cell mark. Content that uses wiki markup that itself needs to start on a new line, such as lists, headers, or nested tables, must of course be on its own new line.
==Simple table==
===Plain===
The following table lacks borders and good spacing but shows the simplest wiki markup table structure
{| width="100%"
|width="50%"|
{|
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{|
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
===Alternative===
For more table-ish looking wiki markup cells can be listed on one line separated by ||. This does not scale well for longer cell content such as paragraphs. It works well for short bits of content however, such as our example table.
Extra spaces within cells in the wiki markup can be added, as I have done in the wiki markup below, to make the wiki markup itself look better but they do not affect the actual table rendering.
HTML attributes can be added to tables on this page but have been left out of the following example for simplicity.
{| width="100%"
|width="50%"|
{|
| Orange || Apple || more
|-
| Bread || Pie || more
|-
| Butter || Ice cream || and more
|}
|width="50%"|
<pre>
<nowiki>
{|
| Orange || Apple || more
|-
| Bread || Pie || more
|-
| Butter || Ice cream || and more
|}
</nowiki>
</pre>
|}
===With HTML attributes===
You can add HTML attributes to make your table look better
====border="1"====
{| width="100%"
|width="50%"|
{| border="1"
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{| border="1"
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
====align="center" border="1"====
{| width="100%"
|width="50%"|
{| align="center" border="1"
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{| align="center" border="1"
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
====Attributes on cells ====
You can put attributes on individual '''cells.''' Numbers for example may look better aligned right
{| width="100%"
|width="50%"|
{| border="1"
|Orange
|Apple
|align="right"|12,333.00
|-
|Bread
|Pie
|align="right"|500.00
|-
|Butter
|Ice cream
|align="right"|1.00
|}
|width="50%"|
<pre>
<nowiki>
{| border="1"
|Orange
|Apple
|align="right"|12,333.00
|-
|Bread
|Pie
|align="right"|500.00
|-
|Butter
|Ice cream
|align="right"|1.00
|}
</nowiki>
</pre>
|}
====Attributes on rows====
You can put attributes on individual '''rows,''' too.
{| width="100%"
|width="50%"|
{| border="1"
|Orange
|Apple
|align="right"|12,333.00
|-
|Bread
|Pie
|align="right"|500.00
|- style="font-style:italic;color:green;"
|Butter
|Ice cream
|align="right"|1.00
|}
|width="50%"|
<pre>
<nowiki>
{| border="1"
|Orange
|Apple
|align="right"|12,333.00
|-
|Bread
|Pie
|align="right"|500.00
|- style="font-style:italic;color:green;"
|Butter
|Ice cream
|align="right"|1.00
|}
</nowiki>
</pre>
|}
====cellspacing="0" border="1"====
{| width="100%"
|width="50%"|
{| cellspacing="0" border="1"
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{| cellspacing="0" border="1"
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
====cellpadding="20" cellspacing="0" border="1"====
{| width="100%"
|width="50%"|
{| cellpadding="20" cellspacing="0" border="1"
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{| cellpadding="20" cellspacing="0" border="1"
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
===With HTML attributes and CSS styles===
CSS style attributes can be added with or without other HTML attributes
====style="color:green;background-color:#ffffcc;" cellpadding="20" cellspacing "0" border "1"====
{| width="100%"
|width="50%"|
{| style="color:green;background-color:#ffffcc;" cellpadding="20" cellspacing="0" border="1"
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{| style="color:green;background-color:#ffffcc;" cellpadding="20" cellspacing="0" border="1"
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
==Table with TH headings==
TH (HTML table headings) can be created by using ! instead of |. Headings usually show up bold and centered by default.
===Top headings===
====Each column====
{| width="100%"
|width="50%"|
{| border="1" cellpadding="20" cellspacing="0"
!Yummy
!Yummier
|-
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{| border="1" cellpadding="20" cellspacing="0"
!Yummy
!Yummier
|-
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
====Colspan="2"====
{| width="100%"
|width="50%"|
{| border="1" cellpadding="20" cellspacing="0"
!colspan="2"|Yummies
|-
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{| border="1" cellpadding="20" cellspacing="0"
! colspan="2"|Yummies
|-
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
===Side headings===
====Default====
{| width="100%"
|width="50%"|
{| border="1" cellpadding="20" cellspacing="0"
!Fruit
|Orange
|Apple
|-
!Dish
|Bread
|Pie
|-
!Complement
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{| border="1" cellpadding="20" cellspacing="0"
!Fruit
|Orange
|Apple
|-
!Dish
|Bread
|Pie
|-
!Complement
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
====Right justify====
Right justified side headings can be done as follows
{| width="100%"
|width="50%"|
{| border="1" cellpadding="20" cellspacing="0"
!align="right" |Fruit
|Orange
|Apple
|-
!align="right" |Dish
|Bread
|Pie
|-
!align="right" |Complement
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{| border="1" cellpadding="20" cellspacing="0"
!align="right" |Fruit
|Orange
|Apple
|-
!align="right" |Dish
|Bread
|Pie
|-
!align="right" |Complement
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
==Caption==
A '''table caption''' can be added to the top of any table as follows
{| width="100%"
|width="50%"|
{| border="1" cellpadding="20" cellspacing="0"
|+Food complements
|-
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{| border="1" cellpadding="20" cellspacing="0"
|+Food complements
|-
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
'''Attributes''' can be added to the caption as follows
{| width="100%"
|width="50%"|
{| border="1" cellpadding="20" cellspacing="0"
|+align="bottom" style="color:#e76700;"|''Food complements''
|-
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{| border="1" cellpadding="20" cellspacing="0"
|+align="bottom" style="color:#e76700;"|''Food complements''
|-
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
==Table with H1, H2, H3 etc. headings==
HTML H1, H2, H3, H4 etc. headings can be created the standard wiki markup way with ==equal== signs and '''must be on a line all by themselves''' to work.
'''Preview the whole table.''' If you click on an edit tab for a heading ''within'' a table, edit, and preview, the parent table will display erroneously broken because part of it will be missing.
Keep the heading hierarchy consistent with the rest of the page so that the table of contents at page top works correctly.
{| width="100%"
|width="50%"|
{| border="1" cellpadding="20" cellspacing="0"
|colspan="2"|
===Yummiest===
|-
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{| border="3" cellpadding="20" cellspacing="0"
|colspan="2"|
===Yummiest===
|-
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
==Caveat==
===Negative numbers===
Negative value minus sign can break your table (it may display missing some values) if you start a cell on a new line with a negative number or a parameter that evaluates to a negative number (|-6) because that is the wiki markup for table row, not table cell. To avoid this, insert a space before the value (| -6) or use in-line cell markup (||-6).
== See Also ==
* [[Help Formatting]]
* [[Help Links]]
* [[Help Span and Div]]
[[tags: help]]
@@ -0,0 +1,15 @@
== Welcome to your new wiki installation ==
Where to go from here:
* For an example of wiki formatting take a look here: [[Wiki Formatting Demo]]
* For an example vCard contact take a look there: [[vcard:Firstname Lastname]]
* More details on how to use the wiki: [[Wiki Help]]
* More details on wiki markup help: [[Help Formatting]], [[Help Tables]] and [[Help Links]]
Also make sure you take a look at the feature: [[Tag Trees]].
* Enough reading, time for some hands-on. See the edit link in the top left corner? It's time to click it.
Have fun!
[[tags: wiki, main]]
@@ -0,0 +1,3 @@
* Sleep in today
[[tags: private idea]]
@@ -0,0 +1,39 @@
The wiki allows you to add tags to your pages in a similar way how you create links between pages (details here: [[Wiki Help]]). Tags show up at the bottom of a page. If you click on a tag, you get a list of pages that are also tagged with that tag.
Tag trees are best explained using an example. Let's assume you use the wiki to keep track of your work related and private ideas. You could tag work related ideas with the tags ''work'' and ''idea'' and you could tag private ideas with ''private'' and ''idea''. Now if you click on the idea link on a tagged page you will get a list of all ideas, private and work related. Wouldn't it be nice to keep all that work related stuff away once you leave the office?
That's exactly what tag trees are for. A tag tree is a hierarchical representation of your tags. It allows you to group and sort tagged pages. You can for example list all pages tagged with ''private'' and ''idea''. In the same tag tree you can also have your work related ideas listed in a separate branch.
* Here is an example: [[tagtree:work/idea/--/--/private/idea]]
Every page in a tag tree is tagged with the parent tag and all of its parent tags. If a page does not match any of the tags, it is not listed.
Now let's say you change you mind and you want to list all your ideas at once, but group them into private and work related ideas.
* Grouped: [[tagtree:idea/work/--/private]]
After another change of heart, you now would like to list your idea pages, but all of the other pages even if they are not tagged at all.
* This is the way to go: [[tagtree:all/idea/work/--/private]]
If you look at the bottom of any page (wiki or vCard), you see that all of them already have 3 tags:
# the tag ''all'' allowing you to match all pages,
# the page type, either ''wiki'' or ''vcard'' allowing you to group pages by type,
# and the first letter of the page title allowing you to nicely group pages in the tree (the index page makes use of that).
== Tag Tree Links Explained ==
Creating a new tag tree is as easy as creating a link. Actually, a tag tree does not really exist as a page. It is more like a database query or a search results page.
A tag tree is pretty much the same as a path name or URL; parent and child elements are separated by a single slash character. If you want a child to be added not as child of the last path element, but to its parent, you have to use two '-' characters as an indication to go up one level. This is similar to the two dots in the '''cd ..''' command to go up on directory. In fact, if your browser would not optimize dots out of a URL, I would have used dots instead of the two dashes.
Try it out. Create a couple of tag tree links. Alternatively, you can also experiment with the tag tree URL directly in your browser. Just start the URL with ''/tag/tree/'' and then add tags separated by a slash.
=== The Secret of the Search Bar ===
Have you already used the search bar? If not, go ahead and do so, it's a prerequisite for unfolding the secret behind it.
Done? Ok, you probably have noticed that the search results page looks a lot like a tag tree. The truth is, it actually '''is''' a tag tree, only that the tags are not tags, but words from a full text search (tags are defined in the page text so they are matched as well). And yes, the parent directive ('--') works just fine in the search bar. Instead of creating tag tree links all over the place you can just enter them into the search bar (separated by slash, comma, or space). If after hours of experimenting, you have found a useful combination, you can create a link to it to save it for further reference.
Happy tagging.
[[tags: help]]
@@ -0,0 +1,25 @@
== Heading 2 ==
=== Heading 3 ===
==== Heading 4 ====
Some text.
* List item
** Another one
# Ordered list item
## More...
* [ ] open to do list item
* [!] important open to do list item
* [x] done to do list item
Simple, isn't it?
Always remember you're unique, just like everyone else.
----
* URL: http://wiki-in-a-jar.sourceforge.net/
* Wiki link: [[Main Page]]
* vCard link: [[vcard:Firstname Lastname]]
* Tags: [[tags: metawiki help]] (you can't see them here, but below)
= For more formatting see also =
* [[Help Formatting]]
* [[Help Tables]]
* [[Help Links]]
@@ -0,0 +1,52 @@
The primary focus of '''More Wiki in a jar''' is simplicity. That's why everything is stored as plain text. This hopefully ensures that you will be able to read and modify your wiki pages in a time when Web 2.0 is only a distant memory and who knows, maybe even after Web 3.0 has passed?
Go take a look, it's all under: '''public/docs'''. That's the place you want to include in your regular backups (you do have regular backups, don't you?).
== How to... ==
=== ... create a new wiki page ===
* Just create a link to the new page from any other wiki page. If you click on a link to a page that does not exist, it will be created.
=== ... turn a wiki page into an event ===
* All you need to do is add the date of the format ''yyyy-mm-dd'' somewhere in the title
* Example page title:
** ''2007-03-12 Meeting minutes for sales meeting''
** ''Jim's Wedding 2007-06-23''
* The wiki article is then recognized as event (a calendar for that month is shown in the top right corner for that article)
=== ... create a new vCard contact ===
* Export your contact(s) from you favorite e-mail application to the ''vCard'' (.vcf) format and drop the files in ''public/docs/vcard''.
Note that you cannot create or modify contact information in the wiki. That's by design. Chances are high that you already have your contacts listed in multiple of other sources (such as e-mail clients). Imagine the confusion if you would start modifying your contacts in all of these places including the wiki. The idea is to keep (and update) your contacts in a single source and synchronize them with other locations, the wiki being one of them. However, if enough people wish for that feature, I might actually implement it.
==== the good news ====
You can still use wiki formatting in the notes section of you contacts. You can even create links between contacts and wiki pages.
=== ... link wiki pages with contacts and vice versa ===
* There are two different types of pages: wiki pages and contacts. To create links between pages of the same type you simply put the page name (for wiki pages) or vCard file name (usually first and last name) in two square brackets like this: [[Main Page]]
* To create links between the two types, add the type as a prefix, ''vcard:'' for contacts, ''wiki:'' for wiki pages like this: [[vcard:Firstname Lastname]]
=== ... add tags ===
* Remember how to add links? Adding tags is the same idea. Use ''tags:'' followed by a list of tags separated by comma or space surrounded by square brackets.
=== ... use tag trees ===
* That's so exiting, there is a separate page for this: [[Tag Trees]]
=== ... restore a page from the history ===
The wiki keeps up to 3 additional versions besides the current one for a wiki page. They are all stored in the same folder as the wiki pages: ''./public/docs/wiki''. Should you wish to revert to an older version, just remove the number from the file name of the version that you would like to restore.
=== ... use keyboard shortcuts ===
* The wiki uses so called ''access keys'' for most of the common links (home, index, edit, save, etc.). To determine the access key for a link, move the mouse over it and wait for a tooltip, it will show the access key (if there is any).
* Most browsers require you to press ''Alt'' in addition to the access key. So to use the access key for the search bar, ''f'', you would have to press ''Alt-f''.
** Note that the tooltip lists the ''Alt'' key, but this could vary depending on what browser you use.
=== ... search Google from the wiki ===
Yet another secret of the search bar:
* Start the query with a single dot and the search is redirected to Google.
* That allows for quick web searches even if the wiki is set as the browser's home page.
* You can use the access key '''f''' (for ''find'') to focus the search bar. Most browsers use the ''Alt'' key to activate an access key (e.g. ''Alt-f'' to activate the search bar).
=== See also ===
* [[Help Formatting]]
* [[Help Tables]]
* [[Help Links]]
[[tags: metawiki help]]
@@ -0,0 +1,3 @@
* Leave early today
[[tags: work idea]]
@@ -0,0 +1,19 @@
BEGIN:VCARD
VERSION:2.1
N:Lastname;Firstname
FN:Firstname Lastname
ORG:Company
BDAY:1981-03-31
TITLE:Job title
CATEGORIES:SampleCategory
NOTE;ENCODING=QUOTED-PRINTABLE:Some ''notes'' [[wiki:Main Page]] [[tags:metawiki]]=0D=0A
TEL;WORK;VOICE:business phone
TEL;HOME;VOICE:home phone
TEL;CELL;VOICE:cell phone
TEL;WORK;FAX:fax
TEL;FAX:
ADR;WORK:;;1234 Street;City;State;ZIP;Country
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:1234 Street=0D=0ACity, State ZIP=0D=0ACountry
BDAY:20050501
EMAIL;PREF;INTERNET:firstname@lastname.com
END:VCARD
@@ -0,0 +1,13 @@
test
*dddddddd dddddddd ddddddd dddd ddddd dd ddddddd dddddddd dddddd ddddd ddd dddddddd dddddd ddd ddddd dddddddd ddddd dddd
*dd
*dd
*dd
*dd
*dd
*dd
*dd
*dd
*dd
*dd
*dd
@@ -0,0 +1 @@
test
@@ -0,0 +1 @@
tst
@@ -0,0 +1,10 @@
''Wiki in a Jar'' is a small Wiki written in Java with great focus on simplicity. It is intended to run on a USB stick as a replacement for a paper note- and address book as a Personal Information Manager (PIM). It supports vcard (vcf) contact files.
* '''Wiki in a Jar Version:''' @build@
== License ==
* ''Wiki in a Jar'' is distributed under the GNU General Public License (GPL). More details here: http://www.gnu.org/copyleft/gpl.html
* The embedded HTTP server is based on ''NanoHTTPD'' available under a modified BSD license. More details here: http://elonen.iki.fi/code/nanohttpd/#license
== Disclaimer ==
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,40 @@
Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text.
Some needles Text. Some needles Text. Some needles Text. Some needles Text.
Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text.
Some needles Text. Some needles Text. Some needles Text. Some needles Text.
== Header 1 ==
Some needles Text. Some needles Text. Some needles Text. Some needles Text.
Some needles Text. Some needles Text. Some needles Text. Some needles Text.
Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text.
Some needles Text. Some needles Text. Some needles Text. Some needles Text.
=== Header 1.1 ===
Some needles Text. Some needles Text. Some needles Text. Some needles Text.
Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text.
Some needles Text. Some needles Text. Some needles Text. Some needles Text.
=== Header 1.2 ===
Some needles Text. Some needles Text. Some needles Text. Some needles Text.
Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text.
Some needles Text. Some needles Text. Some needles Text. Some needles Text.
==== Header 1.2.1 ====
Some needles Text. Some needles Text. Some needles Text. Some needles Text.
Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text.
Some needles Text. Some needles Text. Some needles Text. Some needles Text.
=== Header 1.3 ===
Some needles Text. Some needles Text. Some needles Text. Some needles Text.
Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text.
Some needles Text. Some needles Text. Some needles Text. Some needles Text.
== Header 2 ==
Some needles Text. Some needles Text. Some needles Text. Some needles Text.
Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text.
Some needles Text. Some needles Text. Some needles Text. Some needles Text.
== Header 3 ==
Some needles Text. Some needles Text. Some needles Text. Some needles Text.
Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text.
Some needles Text. Some needles Text. Some needles Text. Some needles Text.
@@ -0,0 +1,41 @@
Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text.
Some needles Text. Some needles Text. Some needles Text. Some needles Text.
Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text.
Some needles Text. Some needles Text. Some needles Text. Some needles Text.
= Header 1 =
Some needles Text. Some needles Text. Some needles Text. Some needles Text.
Some needles Text. Some needles Text. Some needles Text. Some needles Text.
Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text.
Some needles Text. Some needles Text. Some needles Text. Some needles Text.
== Header 1.1 ==
Some needles Text. Some needles Text. Some needles Text. Some needles Text.
Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text.
Some needles Text. Some needles Text. Some needles Text. Some needles Text.
== Header 1.2 ==
Some needles Text. Some needles Text. Some needles Text. Some needles Text.
Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text.
Some needles Text. Some needles Text. Some needles Text. Some needles Text.
=== Header 1.2.1 ===
Some needles Text. Some needles Text. Some needles Text. Some needles Text.
Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text.
Some needles Text. Some needles Text. Some needles Text. Some needles Text.
== Header 1.3 ==
Some needles Text. Some needles Text. Some needles Text. Some needles Text.
Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text.
Some needles Text. Some needles Text. Some needles Text. Some needles Text.
= Header 2 =
Some needles Text. Some needles Text. Some needles Text. Some needles Text.
Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text.
Some needles Text. Some needles Text. Some needles Text. Some needles Text.
= Header 3 =
Some needles Text. Some needles Text. Some needles Text. Some needles Text.
Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text.
Some needles Text. Some needles Text. Some needles Text. Some needles Text.
@@ -0,0 +1,26 @@
Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text.
Some needles Text. Some needles Text. Some needles Text. Some needles Text.
= Header 1 =
Some needles Text. Some needles Text. Some needles Text. Some needles Text.
Some needles Text. Some needles Text. Some needles Text. Some needles Text.
== Header 1.1 ==
Some needles Text. Some needles Text. Some needles Text. Some needles Text.
== Header 1.2 ==
Some needles Text. Some needles Text. Some needles Text. Some needles Text.
=== Header 1.2.1 ===
Some needles Text. Some needles Text. Some needles Text. Some needles Text.
== Header 1.3 ==
Some needles Text. Some needles Text. Some needles Text. Some needles Text.
= Header 2 =
Some needles Text. Some needles Text. Some needles Text. Some needles Text.
= Header 3 =
Some needles Text. Some needles Text. Some needles Text. Some needles Text.
@@ -0,0 +1,43 @@
Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text.
Some needles Text. Some needles Text. Some needles Text. Some needles Text.
Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text.
Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text.
Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text.
Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text.
Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text.
Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text.
Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text.
Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text.
Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text.
= Header 1 =
Some needles Text. Some needles Text. Some needles Text. Some needles Text.
Some needles Text. Some needles Text. Some needles Text. Some needles Text.
Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text.
Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text.
Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text.
Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text.
Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text.
== Header 1.1 ==
Some needles Text. Some needles Text. Some needles Text. Some needles Text.
Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text.
Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text. Some needles Text.
== Header 1.2 ==
Some needles Text. Some needles Text. Some needles Text. Some needles Text.
=== Header 1.2.1 ===
Some needles Text. Some needles Text. Some needles Text. Some needles Text.
== Header 1.3 ==
Some needles Text. Some needles Text. Some needles Text. Some needles Text.
= Header 2 =
Some needles Text. Some needles Text. Some needles Text. Some needles Text.
= Header 3 =
Some needles Text. Some needles Text. Some needles Text. Some needles Text.
@@ -0,0 +1,15 @@
<div>should be correct</div>
<div style='color:red'>should be red</div>
<div style='color:red">switching quotation marks - incorrect!</div>
<div style='color:red>missing end quotiation mark - incorrect!</div>
<div style='color:blue;font-weight:bold;text-decoration:unterline;'>blue for a change</div>
<div style='color:green;'>trying <div style='font-weight:bold'>nested</div> divs</div>
<div style='text-decoration: underline'>and one with <div style='text-decoration:none>errors</div></div>
<div>test</div>
@@ -0,0 +1,150 @@
You can format your text using wiki markup. This consists of normal characters like asterisks, single quotes or equation marks which have a special function in the wiki, sometimes depending on their position. For example, to format a word in ''italic'', you include it in two single quotes like <tt><nowiki>''this''</nowiki></tt>
== Text formatting markup ==
{| align="center" border="2" width="100%" cellspacing="4" cellpadding="3" rules="all" style="margin:1em 1em 1em 0; border:solid 1px #AAAAAA; border-collapse:collapse;empty-cells:show;"
|-
| bgcolor="#A7C1F2" |'''Description'''
| bgcolor="#A7C1F2" |'''You type'''
| bgcolor="#A7C1F2" |'''You get'''
|-
| colspan="3" align="center" | ''applies anywhere''
|-
|Italic text
|<tt><nowiki>''italic''</nowiki></tt>
|''italic''
|-
| Bold text
|<tt><nowiki>'''bold'''</nowiki></tt>
|'''bold'''
|-
| Bold and italic
|<tt><nowiki>'''''bold & italic'''''</nowiki></tt>
|'''''bold & italic'''''
|-
|Escape wiki markup
|<tt><nowiki><nowiki>no "markup"</nowiki></nowiki></tt>
|<nowiki>no ''markup''</nowiki>
|-
|Fixed width text
|
<nowiki><tt>Fixed width text</tt></nowiki>
|
<tt>Fixed width text</tt>
|-
| colspan="3" align="center" | ''only at the beginning of the line''
|-
| Indent text
|
<tt><nowiki>:Single indent</nowiki></tt><br>
<tt><nowiki>::Double indent</nowiki></tt><br>
<tt><nowiki>:::::Multiple indent</nowiki></tt>
|
:Single indent
::Double indent
:::::Multiple indent
|-
|Headings of<br>different levels
|
<tt><nowiki>=level 1=</nowiki></tt><br>
<tt><nowiki>==level 2==</nowiki></tt><br>
<tt><nowiki>===level 3===</nowiki></tt><br>
<tt><nowiki>====level 4====</nowiki></tt><br>
<tt><nowiki>=====level 5=====</nowiki></tt><br>
<tt><nowiki>======level 6======</nowiki></tt>
|
<!-- this is fake to remove the level from the content menu -->
<span style='font-size: 18pt; font-weight: bold; margin: 0 0 10px 0; padding: 0; color: #2D4386'>level 1</span><br>
<span style='font-size: 15pt; font-weight: bold; margin: 1px 0 5px 0; padding: 0; color: #2D4386'>level 2</span><br>
<span style='font-size: 12pt; font-weight: bold; margin: 10px 0 4px 0; padding: 0; color: #2D4386'>level 3</span><br>
<span style='font-size: 10pt; font-weight: bold; margin: 10px 0 4px 0; padding: 0; color: #2D4386'>level 4</span><br>
<span style='font-size: 8pt; font-weight: bold; 10px 0 4px 0; padding: 0; color: #2D4386'>level 5</span><br>
<span style='font-size: 6pt; font-weight: bold; margin: 10px 0 4px 0; padding: 0; color: #2D4386'>level 6</span>
|-
|Horizontal rule
|
<tt><nowiki>----</nowiki></tt>
|
----
|-
|Bullet list
|
<tt><nowiki>* one</nowiki></tt><br>
<tt><nowiki>* two</nowiki></tt><br>
<tt><nowiki>* three</nowiki></tt><br>
<tt><nowiki>** three and one-third</nowiki></tt><br>
<tt><nowiki>** three and two-thirds</nowiki></tt>
|
* one
* two
* three
** three and one-third
** three and two-thirds
|-
|Numbered list
|
<tt><nowiki># one</nowiki></tt><br>
<tt><nowiki># two<br>spanning several lines<br>without breaking the numbering</nowiki></tt><br>
<tt><nowiki># three</nowiki></tt><br>
<tt><nowiki>## three point one</nowiki></tt><br>
<tt><nowiki>## three point two</nowiki></tt>
|
# one
# two<br>spanning several lines<br>without breaking the numbering
# three
## three point one
## three point two
|-
| Mixture of bulleted<br> and numbered lists
|
<tt><nowiki># one</nowiki></tt><br>
<tt><nowiki># two</nowiki></tt><br>
<tt><nowiki>#* two point one</nowiki></tt><br>
<tt><nowiki>#* two point two</nowiki></tt><br>
|
# one
# two
#* two point one
#* two point two
|-
|Definition list
|
<tt><nowiki>;Definition</nowiki></tt><br>
<tt><nowiki>:item 1</nowiki></tt><br>
<tt><nowiki>:item 2</nowiki></tt>
|
;Definition
:item 1
:item 2
|-
|Preformatted text
|
<tt><nowiki> preformatted text is done with</nowiki></tt><br>
<tt><nowiki> a space at the </nowiki></tt><br>
<tt><nowiki> beginning of the line</nowiki></tt>
|
<pre>
preformatted text is done with
a space at the
beginning of the line
</pre>
|-
|Preformatted text with no indentation
|
<nowiki><pre> some preformatted text with no indentation </pre></nowiki>
|
<pre>
some preformatted
text with no indentation
</pre>
|}
== Paragraphs ==
More Wiki in a jar ignores normal line breaks. To start a new paragraph, leave an empty line.
== See Also ==
* [[Help Links]]
* [[Help Tables]]
* [[Help Span and Div]]
[[tags: help]]
@@ -0,0 +1,151 @@
You can format your text using wiki markup. This consists of normal characters like asterisks, single quotes or equation marks which have a special function in the wiki, sometimes depending on their position. For example, to format a word in ''italic'', you include it in two single quotes like <tt><nowiki>''this''</nowiki></tt>
== Text formatting markup ==
{| align="center" border="2" width="100%" cellspacing="4" cellpadding="3" rules="all" style="margin:1em 1em 1em 0; border:solid 1px #AAAAAA; border-collapse:collapse;empty-cells:show;"
|-
| bgcolor="#A7C1F2" |'''Description'''
| bgcolor="#A7C1F2" |'''You type'''
| bgcolor="#A7C1F2" |'''You get'''
|-
| colspan="3" align="center" | ''applies anywhere''
|-
|Italic text
|<tt><nowiki>''italic''</nowiki></tt>
|''italic''
|-
| Bold text
|<tt><nowiki>'''bold'''</nowiki></tt>
|'''bold'''
|-
| Bold and italic
|<tt><nowiki>'''''bold & italic'''''</nowiki></tt>
|'''''bold & italic'''''
|-
|Escape wiki markup
|<tt><nowiki><nowiki>no "markup"</nowiki></nowiki></tt>
|<nowiki>no ''markup''</nowiki>
|-
|Fixed width text
|
<nowiki><tt>Fixed width text</tt></nowiki>
|
<tt>Fixed width text</tt>
|-
| colspan="3" align="center" | ''only at the beginning of the line''
|-
| Indent text
|
<tt><nowiki>:Single indent</nowiki></tt><br>
<tt><nowiki>::Double indent</nowiki></tt><br>
<tt><nowiki>:::::Multiple indent</nowiki></tt>
|
:Single indent
::Double indent
:::::Multiple indent
|-
|Headings of<br>different levels
|
<tt><nowiki>=level 1=</nowiki></tt><br>
<tt><nowiki>==level 2==</nowiki></tt><br>
<tt><nowiki>===level 3===</nowiki></tt><br>
<tt><nowiki>====level 4====</nowiki></tt><br>
<tt><nowiki>=====level 5=====</nowiki></tt><br>
<tt><nowiki>======level 6======</nowiki></tt>
|
<!-- this is fake to remove the level from the content menu -->
<span style='font-size: 18pt; font-weight: bold; margin: 0 0 10px 0; padding: 0; color: #2D4386'>level 1</span><br>
<span style='font-size: 15pt; font-weight: bold; margin: 1px 0 5px 0; padding: 0; color: #2D4386'>level 2</span><br>
<span style='font-size: 18pt; font-weight: bold; margin: 0 0 10px 0; padding: 0; color: #2D4386'>level 3</span><br>
<span style='font-size: 18pt; font-weight: bold; margin: 0 0 10px 0; padding: 0; color: #2D4386'>level 4</span><br>
<span style='font-size: 18pt; font-weight: bold; margin: 0 0 10px 0; padding: 0; color: #2D4386'>level 5</span><br>
<span style='font-size: 18pt; font-weight: bold; margin: 0 0 10px 0; padding: 0; color: #2D4386'>level 6</span>
|-
|Horizontal rule
|
<tt><nowiki>----</nowiki></tt>
|
----
|-
|Bullet list
|
<tt><nowiki>* one</nowiki></tt><br>
<tt><nowiki>* two</nowiki></tt><br>
<tt><nowiki>* three</nowiki></tt><br>
<tt><nowiki>** three and one-third</nowiki></tt><br>
<tt><nowiki>** three and two-thirds</nowiki></tt>
|
* one
* two
* three
** three and one-third
** three and two-thirds
|-
|Numbered list
|
<tt><nowiki># one</nowiki></tt><br>
<tt><nowiki># two<br>spanning several lines<br>without breaking the numbering</nowiki></tt><br>
<tt><nowiki># three</nowiki></tt><br>
<tt><nowiki>## three point one</nowiki></tt><br>
<tt><nowiki>## three point two</nowiki></tt>
|
# one
# two<br>spanning several lines<br>without breaking the numbering
# three
## three point one
## three point two
|-
| Mixture of bulleted<br> and numbered lists
|
<tt><nowiki># one</nowiki></tt><br>
<tt><nowiki># two</nowiki></tt><br>
<tt><nowiki>#* two point one</nowiki></tt><br>
<tt><nowiki>#* two point two</nowiki></tt><br>
|
# one
# two
#* two point one
#* two point two
|-
|Definition list
|
<tt><nowiki>;Definition</nowiki></tt><br>
<tt><nowiki>:item 1</nowiki></tt><br>
<tt><nowiki>:item 2</nowiki></tt>
|
;Definition
:item 1
:item 2
|-
|Preformatted text
|
<tt><nowiki> preformatted text is done with</nowiki></tt><br>
<tt><nowiki> a space at the </nowiki></tt><br>
<tt><nowiki> beginning of the line</nowiki></tt>
|
<pre>
preformatted text is done with
a space at the
beginning of the line
</pre>
|-
|Preformatted text with no indentation
|
<nowiki><pre> some preformatted text with no indentation </pre></nowiki>
|
<pre>
some preformatted
text with no indentation
</pre>
|}
== Paragraphs ==
More Wiki in a jar ignores normal line breaks. To start a new paragraph, leave an empty line.
== See Also ==
* [[Help Links]]
* [[Help Tables]]
* [[Help Span and Div]]
[[tags: help]]
@@ -0,0 +1,152 @@
You can format your text using wiki markup. This consists of normal characters like asterisks, single quotes or equation marks which have a special function in the wiki, sometimes depending on their position. For example, to format a word in ''italic'', you include it in two single quotes like <tt><nowiki>''this''</nowiki></tt>
== Text formatting markup ==
{| align="center" border="2" width="100%" cellspacing="4" cellpadding="3" rules="all" style="margin:1em 1em 1em 0; border:solid 1px #AAAAAA; border-collapse:collapse;empty-cells:show;"
|-
| bgcolor="#A7C1F2" |'''Description'''
| bgcolor="#A7C1F2" |'''You type'''
| bgcolor="#A7C1F2" |'''You get'''
|-
| colspan="3" align="center" | ''applies anywhere''
|-
|Italic text
|<tt><nowiki>''italic''</nowiki></tt>
|''italic''
|-
| Bold text
|<tt><nowiki>'''bold'''</nowiki></tt>
|'''bold'''
|-
| Bold and italic
|<tt><nowiki>'''''bold & italic'''''</nowiki></tt>
|'''''bold & italic'''''
|-
|Escape wiki markup
|<tt><nowiki><nowiki>no "markup"</nowiki></nowiki></tt>
|<nowiki>no ''markup''</nowiki>
|-
|Fixed width text
|
<nowiki><tt>Fixed width text</tt></nowiki>
|
<tt>Fixed width text</tt>
|-
| colspan="3" align="center" | ''only at the beginning of the line''
|-
| Indent text
|
<tt><nowiki>:Single indent</nowiki></tt><br>
<tt><nowiki>::Double indent</nowiki></tt><br>
<tt><nowiki>:::::Multiple indent</nowiki></tt>
|
:Single indent
::Double indent
:::::Multiple indent
|-
|Headings of<br>different levels
|
<tt><nowiki>=level 1=</nowiki></tt><br>
<tt><nowiki>==level 2==</nowiki></tt><br>
<tt><nowiki>===level 3===</nowiki></tt><br>
<tt><nowiki>====level 4====</nowiki></tt><br>
<tt><nowiki>=====level 5=====</nowiki></tt><br>
<tt><nowiki>======level 6======</nowiki></tt>
|
<!-- this is fake to remove the level from the content menu -->
<span style='font-size: 18pt; font-weight: bold; margin: 0 0 10px 0; padding: 0; color: #2D4386'>level 1</span>
<span style='font-size: 15pt; font-weight: bold; margin: 1px 0 5px 0; padding: 0; color: #2D4386'>level 2</span>
<span style='font-size: 18pt; font-weight: bold; margin: 0 0 10px 0; padding: 0; color: #2D4386'>level 3</span>
<span style='font-size: 18pt; font-weight: bold; margin: 0 0 10px 0; padding: 0; color: #2D4386'>level 4</span>
<span style='font-size: 18pt; font-weight: bold; margin: 0 0 10px 0; padding: 0; color: #2D4386'>level 5</span>
<span style='font-size: 18pt; font-weight: bold; margin: 0 0 10px 0; padding: 0; color: #2D4386'>level 6</span>
|-
|Horizontal rule
|
<tt><nowiki>----</nowiki></tt>
|
----
|-
|Bullet list
|
<tt><nowiki>* one</nowiki></tt><br>
<tt><nowiki>* two</nowiki></tt><br>
<tt><nowiki>* three</nowiki></tt><br>
<tt><nowiki>** three and one-third</nowiki></tt><br>
<tt><nowiki>** three and two-thirds</nowiki></tt>
|
* one
* two
* three
** three and one-third
** three and two-thirds
|-
|Numbered list
|
<tt><nowiki># one</nowiki></tt><br>
<tt><nowiki># two<br>spanning several lines<br>without breaking the numbering</nowiki></tt><br>
<tt><nowiki># three</nowiki></tt><br>
<tt><nowiki>## three point one</nowiki></tt><br>
<tt><nowiki>## three point two</nowiki></tt>
|
# one
# two<br>spanning several lines<br>without breaking the numbering
# three
## three point one
## three point two
|-
| Mixture of bulleted<br> and numbered lists
|
<tt><nowiki># one</nowiki></tt><br>
<tt><nowiki># two</nowiki></tt><br>
<tt><nowiki>#* two point one</nowiki></tt><br>
<tt><nowiki>#* two point two</nowiki></tt><br>
|
# one
# two
#* two point one
#* two point two
|-
|Definition list
|
<tt><nowiki>;Definition</nowiki></tt><br>
<tt><nowiki>:item 1</nowiki></tt><br>
<tt><nowiki>:item 2</nowiki></tt>
|
;Definition
:item 1
:item 2
|-
|Preformatted text
|
<tt><nowiki> preformatted text is done with</nowiki></tt><br>
<tt><nowiki> a space at the </nowiki></tt><br>
<tt><nowiki> beginning of the line</nowiki></tt>
|
<pre>
preformatted text is done with
a space at the
beginning of the line
</pre>
|-
|Preformatted text with no indentation
|
<nowiki><pre> some preformatted text with no indentation </pre></nowiki>
|
<pre>
some preformatted
text with no indentation
</pre>
|}
== Paragraphs ==
More Wiki in a jar ignores normal line breaks. To start a new paragraph, leave an empty line.
== See Also ==
* [[Help Links]]
* [[Help Tables]]
* [[Help Span and Div]]
[[tags: help]]
@@ -0,0 +1,158 @@
You can format your text using wiki markup. This consists of normal characters like asterisks, single quotes or equation marks which have a special function in the wiki, sometimes depending on their position. For example, to format a word in ''italic'', you include it in two single quotes like <tt><nowiki>''this''</nowiki></tt>
== Text formatting markup ==
{| align="center" border="2" width="100%" cellspacing="4" cellpadding="3" rules="all" style="margin:1em 1em 1em 0; border:solid 1px #AAAAAA; border-collapse:collapse;empty-cells:show;"
|-
| bgcolor="#A7C1F2" |'''Description'''
| bgcolor="#A7C1F2" |'''You type'''
| bgcolor="#A7C1F2" |'''You get'''
|-
| colspan="3" align="center" | ''applies anywhere''
|-
|Italic text
|<tt><nowiki>''italic''</nowiki></tt>
|''italic''
|-
| Bold text
|<tt><nowiki>'''bold'''</nowiki></tt>
|'''bold'''
|-
| Bold and italic
|<tt><nowiki>'''''bold & italic'''''</nowiki></tt>
|'''''bold & italic'''''
|-
|Escape wiki markup
|<tt><nowiki><nowiki>no "markup"</nowiki></nowiki></tt>
|<nowiki>no ''markup''</nowiki>
|-
|Fixed width text
|
<nowiki><tt>Fixed width text</tt></nowiki>
|
<tt>Fixed width text</tt>
|-
| colspan="3" align="center" | ''only at the beginning of the line''
|-
| Indent text
|
<tt><nowiki>:Single indent</nowiki></tt><br>
<tt><nowiki>::Double indent</nowiki></tt><br>
<tt><nowiki>:::::Multiple indent</nowiki></tt>
|
:Single indent
::Double indent
:::::Multiple indent
|-
|Headings of<br>different levels
|
<tt><nowiki>=level 1=</nowiki></tt><br>
<tt><nowiki>==level 2==</nowiki></tt><br>
<tt><nowiki>===level 3===</nowiki></tt><br>
<tt><nowiki>====level 4====</nowiki></tt><br>
<tt><nowiki>=====level 5=====</nowiki></tt><br>
<tt><nowiki>======level 6======</nowiki></tt>
|
<!-- this is fake
=level 1=
==level 2==
===level 3===
====level 4====
=====level 5=====
======level 6======
-->
<span style='font-size: 18pt; font-weight: bold; margin: 0 0 10px 0; padding: 0; color: #2D4386'>level 1</span>
<!--
margin: 0 0 10px 0; padding: 0; color: #2D4386
-->
|-
|Horizontal rule
|
<tt><nowiki>----</nowiki></tt>
|
----
|-
|Bullet list
|
<tt><nowiki>* one</nowiki></tt><br>
<tt><nowiki>* two</nowiki></tt><br>
<tt><nowiki>* three</nowiki></tt><br>
<tt><nowiki>** three and one-third</nowiki></tt><br>
<tt><nowiki>** three and two-thirds</nowiki></tt>
|
* one
* two
* three
** three and one-third
** three and two-thirds
|-
|Numbered list
|
<tt><nowiki># one</nowiki></tt><br>
<tt><nowiki># two<br>spanning several lines<br>without breaking the numbering</nowiki></tt><br>
<tt><nowiki># three</nowiki></tt><br>
<tt><nowiki>## three point one</nowiki></tt><br>
<tt><nowiki>## three point two</nowiki></tt>
|
# one
# two<br>spanning several lines<br>without breaking the numbering
# three
## three point one
## three point two
|-
| Mixture of bulleted<br> and numbered lists
|
<tt><nowiki># one</nowiki></tt><br>
<tt><nowiki># two</nowiki></tt><br>
<tt><nowiki>#* two point one</nowiki></tt><br>
<tt><nowiki>#* two point two</nowiki></tt><br>
|
# one
# two
#* two point one
#* two point two
|-
|Definition list
|
<tt><nowiki>;Definition</nowiki></tt><br>
<tt><nowiki>:item 1</nowiki></tt><br>
<tt><nowiki>:item 2</nowiki></tt>
|
;Definition
:item 1
:item 2
|-
|Preformatted text
|
<tt><nowiki> preformatted text is done with</nowiki></tt><br>
<tt><nowiki> a space at the </nowiki></tt><br>
<tt><nowiki> beginning of the line</nowiki></tt>
|
<pre>
preformatted text is done with
a space at the
beginning of the line
</pre>
|-
|Preformatted text with no indentation
|
<nowiki><pre> some preformatted text with no indentation </pre></nowiki>
|
<pre>
some preformatted
text with no indentation
</pre>
|}
== Paragraphs ==
More Wiki in a jar ignores normal line breaks. To start a new paragraph, leave an empty line.
== See Also ==
* [[Help Links]]
* [[Help Tables]]
* [[Help Span and Div]]
[[tags: help]]
@@ -0,0 +1,74 @@
There are twi sorts of links in More Wiki in a jar:
# internal links to other pages in the wiki
# external links to websites
To add an internal link, enclose the name of the page you want to link to in double square brackets. When you save the page, you'll see the new link pointing to your page. If the page exists already, it is displayed in blue, empty pages are displayed in red.
== How to link ==
{| border="2" width="100%" cellspacing="4" cellpadding="3" rules="all" style="margin:1em 1em 1em 0; border:solid 1px #AAAAAA; border-collapse:collapse;empty-cells:show;"
|-
|bgcolor="#8DA7D6" color="black"|'''Description'''
|bgcolor="#8DA7D6" color="black"|'''You type'''
|bgcolor="#8DA7D6" color="black"|'''You get'''
|-
|Internal link
|<tt><nowiki>[[Main Page]]</nowiki></tt>
|[[Main Page]]
|-
|Piped link
|<tt><nowiki>[[Main Page|different text]]</nowiki></tt>
|[[Main Page|different text]]
|-
|External link
|<tt><nowiki>http://morewikiinajar.sourceforge.net/</nowiki></tt>
|http://morewikiinajar.sourceforge.net/
|-
|External link,<br>different title
|<tt><nowiki>[http://morewikiinajar.sourceforge.net/ More Wikie in a jar]</nowiki></tt>
|[http://morewikiinajar.sourceforge.net/ More Wiki in a jar]
|-
|External link,<br>numbered
|<tt><nowiki>[http://morewikiinajar.sourceforge.net/]</nowiki></tt>
|[http://morewikiinajar.sourceforge.net/]
|-
|Anchor link
|<tt><nowiki>[[#See also]]</nowiki></tt>
|[[#See also]]
|-
|Anchor link,<br>different title
|<tt><nowiki>[[#See also|A diffrent see also]]</nowiki></tt>
|[[#See also|A diffrent see also]]
|-
|Anchor link at another page
|<tt><nowiki>[[Help Tables#See also]]</nowiki></tt>
|[[Help Tables#See also]]
|-
|Anchor link at another page,<br>different title
|<tt><nowiki>[[Help Tables#See also|See also on Help Tables]]</nowiki></tt>
|[[Help Tables#See also|See also on Help Tables]]
<!--
|-
|Internal link to image file
|<tt><nowiki>[[media:example.jpg]]</nowiki></tt>
|[[media:example.jpg]]
|-
|Internal link to pdf file
|<tt><nowiki>[[media:example.pdf]]</nowiki></tt>
|[[media:example.pdf]]
-->
|}
== How to avoid auto-links ==
By default, when you write a URL as is, it will be transformed to an external link.
To avoid that effect, put the URL between <nowiki><nowiki></nowiki> start & end tags as in:
<nowiki><nowiki>http://morewikiinajar.sourceforge.net/</nowiki></nowiki>
== See also ==
* [[Help Formatting]]
* [[Help Tables]]
* [[Help Span and Div]]
[[tags: help]]
@@ -0,0 +1,74 @@
There are twi sorts of links in More Wiki in a jar:
# internal links to other pages in the wiki
# external links to websites
To add an internal link, enclose the name of the page you want to link to in double square brackets. When you save the page, you'll see the new link pointing to your page. If the page exists already, it is displayed in blue, empty pages are displayed in red.
== How to link ==
{| border="2" width="100%" cellspacing="4" cellpadding="3" rules="all" style="margin:1em 1em 1em 0; border:solid 1px #AAAAAA; border-collapse:collapse;empty-cells:show;"
|-
|bgcolor="#8DA7D6" color="black"|'''Description'''
|bgcolor="#8DA7D6" color="black"|'''You type'''
|bgcolor="#8DA7D6" color="black"|'''You get'''
|-
|Internal link
|<tt><nowiki>[[Main Page]]</nowiki></tt>
|[[Main Page]]
|-
|Piped link
|<tt><nowiki>[[Main Page|different text]]</nowiki></tt>
|[[Main Page|different text]]
|-
|External link
|<tt><nowiki>http://morewikiinajar.sourceforge.net/</nowiki></tt>
|http://morewikiinajar.sourceforge.net/
|-
|External link,<br>different title
|<tt><nowiki>[http://morewikiinajar.sourceforge.net/ More Wikie in a jar]</nowiki></tt>
|[http://morewikiinajar.sourceforge.net/ More Wiki in a jar]
|-
|External link,<br>numbered
|<tt><nowiki>[http://morewikiinajar.sourceforge.net/]</nowiki></tt>
|[http://morewikiinajar.sourceforge.net/]
|-
|Anchor link
|<tt><nowiki>[[#See also]]</nowiki></tt>
|[[#See also]]
|-
|Anchor link,<br>different title
|<tt><nowiki>[[#See also|A diffrent see also]]</nowiki></tt>
|[[#See also|A diffrent see also]]
|-
|Anchor link at another page
|<tt><nowiki>[[Help Tables#See also]]</nowiki></tt>
|[[Help Tables#See also]]
|-
|Anchor link at another page,<br>different title
|<tt><nowiki>[[Help Tables#See also|See also on Help Tables]]</nowiki></tt>
|[[Help Tables#See also|See also on Help Tables]]
<!--
|-
|Internal link to image file
|<tt><nowiki>[[media:example.jpg]]</nowiki></tt>
|[[media:example.jpg]]
|-
|Internal link to pdf file
|<tt><nowiki>[[media:example.pdf]]</nowiki></tt>
|[[media:example.pdf]]
-->
|}
== How to avoid auto-links ==
By default, when you write a URL as is, it will be transformed to an external link.
To avoid that effect, put the URL between <nowiki><nowiki></nowiki> start & end tags as in:
<nowiki><nowiki>http://morewikiinajar.sourceforge.net/</nowiki></nowiki>
== See also ==
* [[Help Formatting]]
* [[Help Tables]]
[[tags: help]]
@@ -0,0 +1,150 @@
There are twi sorts of links in More Wiki in a jar:
# internal links to other pages in the wiki
# external links to websites
To add an internal link, enclose the name of the page you want to link to in double square brackets. When you save the page, you'll see the new link pointing to your page. If the page exists already, it is displayed in blue, empty pages are displayed in red.
== How to link ==
{| border="2" width="100%" cellspacing="4" cellpadding="3" rules="all" style="margin:1em 1em 1em 0; border:solid 1px #AAAAAA; border-collapse:collapse;empty-cells:show;"
|-
|bgcolor="#8DA7D6" color="black"|'''Description'''
|bgcolor="#8DA7D6" color="black"|'''You type'''
|bgcolor="#8DA7D6" color="black"|'''You get'''
|-
|Internal link
|<tt><nowiki>[[Main Page]]</nowiki></tt>
|[[Main Page]]
|-
|Piped link
|<tt><nowiki>[[Main Page|different text]]</nowiki></tt>
|[[Main Page|different text]]
|-
|External link
|<tt><nowiki>http://morewikiinajar.sourceforge.net/</nowiki></tt>
|http://morewikiinajar.sourceforge.net/
|-
|External link,<br>different title
|<tt><nowiki>[http://morewikiinajar.sourceforge.net/ More Wikie in a jar]</nowiki></tt>
|[http://morewikiinajar.sourceforge.net/ More Wiki in a jar]
|-
|External link,<br>numbered
|<tt><nowiki>[http://morewikiinajar.sourceforge.net/]</nowiki></tt>
|[http://morewikiinajar.sourceforge.net/]
|-
|Anchor link
|<tt><nowiki>[[#See also]]</nowiki></tt>
|[[#See also]]
|-
|Anchor link,<br>different title
|<tt><nowiki>[[#See also|A diffrent see also]]</nowiki></tt>
|[[#See also|A diffrent see also]]
|-
|Anchor link at another page
|<tt><nowiki>[[Help Tables#See also]]</nowiki></tt>
|[[Help Tables#See also]]
|-
|Anchor link at another page,<br>different title
|<tt><nowiki>[[Help Tables#See also|See also on Help Tables]]</nowiki></tt>
|[[Help Tables#See also|See also on Help Tables]]
<!--
|-
|Internal link to image file
|<tt><nowiki>[[media:example.jpg]]</nowiki></tt>
|[[media:example.jpg]]
|-
|Internal link to pdf file
|<tt><nowiki>[[media:example.pdf]]</nowiki></tt>
|[[media:example.pdf]]
-->
|}
== How to avoid auto-links ==
By default, when you write a URL as is, it will be transformed to an external link.
To avoid that effect, put the URL between <nowiki><nowiki></nowiki> start & end tags as in:
<nowiki><nowiki>http://morewikiinajar.sourceforge.net/</nowiki></nowiki>
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
== See also ==
* [[Help Formatting]]
* [[Help Tables]]
[[tags: help]]
@@ -0,0 +1,151 @@
There are twi sorts of links in More Wiki in a jar:
# internal links to other pages in the wiki
# external links to websites
To add an internal link, enclose the name of the page you want to link to in double square brackets. When you save the page, you'll see the new link pointing to your page. If the page exists already, it is displayed in blue, empty pages are displayed in red.
== How to link ==
{| border="2" width="100%" cellspacing="4" cellpadding="3" rules="all" style="margin:1em 1em 1em 0; border:solid 1px #AAAAAA; border-collapse:collapse;empty-cells:show;"
|-
|bgcolor="#8DA7D6" color="black"|'''Description'''
|bgcolor="#8DA7D6" color="black"|'''You type'''
|bgcolor="#8DA7D6" color="black"|'''You get'''
|-
|Internal link
|<tt><nowiki>[[Main Page]]</nowiki></tt>
|[[Main Page]]
|-
|Piped link
|<tt><nowiki>[[Main Page|different text]]</nowiki></tt>
|[[Main Page|different text]]
|-
|External link
|<tt><nowiki>http://morewikiinajar.sourceforge.net/</nowiki></tt>
|http://morewikiinajar.sourceforge.net/
|-
|External link,<br>different title
|<tt><nowiki>[http://morewikiinajar.sourceforge.net/ More Wikie in a jar]</nowiki></tt>
|[http://morewikiinajar.sourceforge.net/ More Wiki in a jar]
|-
|External link,<br>numbered
|<tt><nowiki>[http://morewikiinajar.sourceforge.net/]</nowiki></tt>
|[http://morewikiinajar.sourceforge.net/]
|-
|Anchor link
|<tt><nowiki>[[#See also]]</nowiki></tt>
|[[#See also]]
|-
|Anchor link,<br>different title
|<tt><nowiki>[[#See also]]</nowiki></tt>
|[[#See also|A diffrent see also]]
|-
|Anchor link at another page
|<tt><nowiki>[[Help Tables#See also]]</nowiki></tt>
|[[Help Tables#See also]]
|-
|Anchor link at another page,<br>different title
|<tt><nowiki>[[Help Tables#See also|See also on Help Tables]]</nowiki></tt>
|[[Help Tables#See also]]
<!--
|-
|Internal link to image file
|<tt><nowiki>[[media:example.jpg]]</nowiki></tt>
|[[media:example.jpg]]
|-
|Internal link to pdf file
|<tt><nowiki>[[media:example.pdf]]</nowiki></tt>
|[[media:example.pdf]]
-->
|}
== How to avoid auto-links ==
By default, when you write a URL as is, it will be transformed to an external link.
To avoid that effect, put the URL between <nowiki><nowiki></nowiki> start & end tags as in:
<nowiki><nowiki>http://morewikiinajar.sourceforge.net/</nowiki></nowiki>
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
bla bla
== See also ==
* [[Help Formatting]]
* [[Help Tables]]
[[tags: help]]
@@ -0,0 +1,43 @@
You can use the <nowiki><span> and <div></nowiki> tags to apply special markup to your wiki pages. The main difference between the two is that a <nowiki><div></nowiki> tag always extends to the end of the line, forcing all following content to continue on the next line. So <nowiki><div></nowiki> is ideal to create paragraphs with a different format while <nowiki><span></nowiki> may be used to format single words or phrases within a paragraph.<br>
Inform yourself about the possible formattings e.g. [http://www.eskimo.com/~bloo//indexdot/css/propindex/all.htm here].
{| align="center" border="2" width="100%" cellspacing="4" cellpadding="3" rules="all" style="margin:1em 1em 1em 0; border:solid 1px #AAAAAA; border-collapse:collapse;empty-cells:show;"
|-
| bgcolor="#A7C1F2" |'''Description'''
| bgcolor="#A7C1F2" |'''You type'''
| bgcolor="#A7C1F2" |'''You get'''
|-
| Colored text
| <nowiki><span style='color:red'>colored</span></nowiki><br><nowiki><span style='color:#FF0000'>colored</span></nowiki><br> <nowiki><div style='color:red'>colored</div></nowiki><br><nowiki><div style='color:#FF0000'>colored</div></nowiki>
| <span style='color:red'>colored</span><br><span style='color:#FF0000'>colored</span><br><div style='color:red'>colored</div><div style='color:#FF0000'>colored</div>
|-
| Change font
| <nowiki><span style='font: 18pt Serif'>bigger text</span></nowiki><br><nowiki><div style='font: 18pt Serif'>bigger text</div></nowiki>
| <span style='font: 18pt Serif'>bigger text</span><br><div style='font: 18pt Serif'>bigger text</div>
|-
| Multiple styles
| <nowiki><span style='font: 18pt Serif; color: green; text-decoration: underline'>Text</span></nowiki><br><nowiki><div style='font: 18pt Serif; color: green; text-decoration: underline'>Text</div></nowiki>
| <span style='font: 18pt Serif; color: green; text-decoration: underline'>Text</span><br><div style='font: 18pt Serif; color: green; text-decoration: underline'>Text</div>
|}
Now an example how to <nowiki>combine <pre><span></pre> and <pre><div></pre>:</nowiki><br>
<pre>
<nowiki><div style='font: 14pt Sans-Serif; color: blue'>
Sample text, extending across multiple lines.<br>
Sample text, extending across multiple lines.<br>
Sample text, extending across multiple lines.<br>
<span style='color:red;text-decoration:underline'>Now this is different ;-).</span>
Sample text, extending across multiple lines.<br>
Sample text, extending across multiple lines.<br>
Sample text, extending across multiple lines.<br>
</div></nowiki>
</pre>
Creates:<br>
<div style='font: 14pt Sans-Serif; color: blue'>Sample text, extending across multiple lines.<br>Sample text, extending across multiple lines.<br>Sample text, extending across multiple lines.<br>Sample text, extending across multiple lines.<br>Sample text, extending across multiple lines.<br><span style='color:red;text-decoration:underline'>Now this is different ;-).</span>Sample text, extending across multiple lines.<br>Sample text, extending across multiple lines.<br>Sample text, extending across multiple lines.<br></div>
==See also==
* [[Help Formatting]]
* [[Help Tables]]
* [[Help Links]]
[[tags: help]]
@@ -0,0 +1,587 @@
Tables may be authored in wiki pages using either HTML table elements directly, or using wikicode formatting to define the table. HTML table elements and their use are well described on various web pages and will not be discussed here. The benefit of wikicode is that the table is constructed of character symbols which tend to make it easier to perceive the table structure in the article editing view compared to HTML table elements.
As a general rule, it is best to avoid using a table unless you need one. Table markup often complicates page editing.
== Wiki table markup summary ==
{|cellpadding="5" cellspacing="0" border="1" width="600"
|<nowiki>{|</nowiki> || '''table start'''
|-
|<nowiki>|+</nowiki> || table '''caption,''' ''optional;'' only between '''table start''' and first '''table row'''
|-
|<nowiki>|-</nowiki> || '''table row,''' ''optional on first row'' -- wiki engine assumes the first row
|-
|<nowiki>!</nowiki> || '''table header''' cell, ''optional.'' Consecutive '''table header''' cells may be added on same line separated by double marks (!!) or start on new lines, each with its own single mark (!).
|-
|<nowiki>|</nowiki> || '''table data''' cell, ''required!'' Consecutive '''table data''' cells may be added on same line separated by double marks (<nowiki>||</nowiki>) or start on new lines, each with its own single mark (<nowiki>|</nowiki>).
|-
|<nowiki>|}</nowiki> || '''table end'''
|}
*The above marks must '''start on a new line''' except the double || and !! for optionally adding consecutive cells to a line.
*'''XHTML attributes.''' Each mark, except table end, optionally accepts one or more XHTML attributes. Attributes must be on the same line as the mark. Separate attributes from each other with a single space.
**Cells and caption (<nowiki>| or ||, ! or !!, and |+</nowiki>) hold content. So separate any attributes from content with a single pipe (|). Cell content may follow on same line or on following lines.
**Table and row marks (<nowiki>{| and |-</nowiki>) do not directly hold content. Do ''not'' add pipe (|) after their optional attributes. If you erroneously add a pipe after attributes for the table mark or row mark the parser will delete it ''and'' your final attribute if it was touching the erroneous pipe!
*'''Content''' may (a) follow its cell mark on the same line after any optional XHTML attributes or (b) on lines below the cell mark. Content that uses wiki markup that itself needs to start on a new line, such as lists, headers, or nested tables, must of course be on its own new line.
==Simple table==
===Plain===
The following table lacks borders and good spacing but shows the simplest wiki markup table structure
{| width="100%"
|width="50%"|
{|
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{|
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
===Alternative===
For more table-ish looking wiki markup cells can be listed on one line separated by ||. This does not scale well for longer cell content such as paragraphs. It works well for short bits of content however, such as our example table.
Extra spaces within cells in the wiki markup can be added, as I have done in the wiki markup below, to make the wiki markup itself look better but they do not affect the actual table rendering.
HTML attributes can be added to tables on this page but have been left out of the following example for simplicity.
{| width="100%"
|width="50%"|
{|
| Orange || Apple || more
|-
| Bread || Pie || more
|-
| Butter || Ice cream || and more
|}
|width="50%"|
<pre>
<nowiki>
{|
| Orange || Apple || more
|-
| Bread || Pie || more
|-
| Butter || Ice cream || and more
|}
</nowiki>
</pre>
|}
===With HTML attributes===
You can add HTML attributes to make your table look better
====border="1"====
{| width="100%"
|width="50%"|
{| border="1"
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{| border="1"
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
====align="center" border="1"====
{| width="100%"
|width="50%"|
{| align="center" border="1"
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{| align="center" border="1"
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
====Attributes on cells ====
You can put attributes on individual '''cells.''' Numbers for example may look better aligned right
{| width="100%"
|width="50%"|
{| border="1"
|Orange
|Apple
|align="right"|12,333.00
|-
|Bread
|Pie
|align="right"|500.00
|-
|Butter
|Ice cream
|align="right"|1.00
|}
|width="50%"|
<pre>
<nowiki>
{| border="1"
|Orange
|Apple
|align="right"|12,333.00
|-
|Bread
|Pie
|align="right"|500.00
|-
|Butter
|Ice cream
|align="right"|1.00
|}
</nowiki>
</pre>
|}
====Attributes on rows====
You can put attributes on individual '''rows,''' too.
{| width="100%"
|width="50%"|
{| border="1"
|Orange
|Apple
|align="right"|12,333.00
|-
|Bread
|Pie
|align="right"|500.00
|- style="font-style:italic;color:green;"
|Butter
|Ice cream
|align="right"|1.00
|}
|width="50%"|
<pre>
<nowiki>
{| border="1"
|Orange
|Apple
|align="right"|12,333.00
|-
|Bread
|Pie
|align="right"|500.00
|- style="font-style:italic;color:green;"
|Butter
|Ice cream
|align="right"|1.00
|}
</nowiki>
</pre>
|}
====cellspacing="0" border="1"====
{| width="100%"
|width="50%"|
{| cellspacing="0" border="1"
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{| cellspacing="0" border="1"
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
====cellpadding="20" cellspacing="0" border="1"====
{| width="100%"
|width="50%"|
{| cellpadding="20" cellspacing="0" border="1"
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{| cellpadding="20" cellspacing="0" border="1"
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
===With HTML attributes and CSS styles===
CSS style attributes can be added with or without other HTML attributes
====style="color:green;background-color:#ffffcc;" cellpadding="20" cellspacing "0" border "1"====
{| width="100%"
|width="50%"|
{| style="color:green;background-color:#ffffcc;" cellpadding="20" cellspacing="0" border="1"
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{| style="color:green;background-color:#ffffcc;" cellpadding="20" cellspacing="0" border="1"
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
==Table with TH headings==
TH (HTML table headings) can be created by using ! instead of |. Headings usually show up bold and centered by default.
===Top headings===
====Each column====
{| width="100%"
|width="50%"|
{| border="1" cellpadding="20" cellspacing="0"
!Yummy
!Yummier
|-
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{| border="1" cellpadding="20" cellspacing="0"
!Yummy
!Yummier
|-
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
====Colspan="2"====
{| width="100%"
|width="50%"|
{| border="1" cellpadding="20" cellspacing="0"
!colspan="2"|Yummies
|-
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{| border="1" cellpadding="20" cellspacing="0"
! colspan="2"|Yummies
|-
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
===Side headings===
====Default====
{| width="100%"
|width="50%"|
{| border="1" cellpadding="20" cellspacing="0"
!Fruit
|Orange
|Apple
|-
!Dish
|Bread
|Pie
|-
!Complement
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{| border="1" cellpadding="20" cellspacing="0"
!Fruit
|Orange
|Apple
|-
!Dish
|Bread
|Pie
|-
!Complement
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
====Right justify====
Right justified side headings can be done as follows
{| width="100%"
|width="50%"|
{| border="1" cellpadding="20" cellspacing="0"
!align="right" |Fruit
|Orange
|Apple
|-
!align="right" |Dish
|Bread
|Pie
|-
!align="right" |Complement
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{| border="1" cellpadding="20" cellspacing="0"
!align="right" |Fruit
|Orange
|Apple
|-
!align="right" |Dish
|Bread
|Pie
|-
!align="right" |Complement
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
==Caption==
A '''table caption''' can be added to the top of any table as follows
{| width="100%"
|width="50%"|
{| border="1" cellpadding="20" cellspacing="0"
|+Food complements
|-
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{| border="1" cellpadding="20" cellspacing="0"
|+Food complements
|-
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
'''Attributes''' can be added to the caption as follows
{| width="100%"
|width="50%"|
{| border="1" cellpadding="20" cellspacing="0"
|+align="bottom" style="color:#e76700;"|''Food complements''
|-
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{| border="1" cellpadding="20" cellspacing="0"
|+align="bottom" style="color:#e76700;"|''Food complements''
|-
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
==Table with H1, H2, H3 etc. headings==
HTML H1, H2, H3, H4 etc. headings can be created the standard wiki markup way with ==equal== signs and '''must be on a line all by themselves''' to work.
'''Preview the whole table.''' If you click on an edit tab for a heading ''within'' a table, edit, and preview, the parent table will display erroneously broken because part of it will be missing.
Keep the heading hierarchy consistent with the rest of the page so that the table of contents at page top works correctly.
{| width="100%"
|width="50%"|
{| border="1" cellpadding="20" cellspacing="0"
|colspan="2"|
===Yummiest===
|-
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{| border="3" cellpadding="20" cellspacing="0"
|colspan="2"|
===Yummiest===
|-
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
==Caveat==
===Negative numbers===
Negative value minus sign can break your table (it may display missing some values) if you start a cell on a new line with a negative number or a parameter that evaluates to a negative number (|-6) because that is the wiki markup for table row, not table cell. To avoid this, insert a space before the value (| -6) or use in-line cell markup (||-6).
== See Also ==
* [[Help Formatting]]
* [[Help Links]]
* [[Help Span and Div]]
[[tags: help]]
@@ -0,0 +1,587 @@
Tables may be authored in wiki pages using either HTML table elements directly, or using wikicode formatting to define the table. HTML table elements and their use are well described on various web pages and will not be discussed here. The benefit of wikicode is that the table is constructed of character symbols which tend to make it easier to perceive the table structure in the article editing view compared to HTML table elements.
As a general rule, it is best to avoid using a table unless you need one. Table markup often complicates page editing.
== Wiki table markup summary ==
{|cellpadding="5" cellspacing="0" border="1" width="600"
|<nowiki>{|</nowiki> || '''table start'''
|-
|<nowiki>|+</nowiki> || table '''caption,''' ''optional;'' only between '''table start''' and first '''table row'''
|-
|<nowiki>|-</nowiki> || '''table row,''' ''optional on first row'' -- wiki engine assumes the first row
|-
|<nowiki>!</nowiki> || '''table header''' cell, ''optional.'' Consecutive '''table header''' cells may be added on same line separated by double marks (!!) or start on new lines, each with its own single mark (!).
|-
|<nowiki>|</nowiki> || '''table data''' cell, ''required!'' Consecutive '''table data''' cells may be added on same line separated by double marks (<nowiki>||</nowiki>) or start on new lines, each with its own single mark (<nowiki>|</nowiki>).
|-
|<nowiki>|}</nowiki> || '''table end'''
|}
*The above marks must '''start on a new line''' except the double || and !! for optionally adding consecutive cells to a line.
*'''XHTML attributes.''' Each mark, except table end, optionally accepts one or more XHTML attributes. Attributes must be on the same line as the mark. Separate attributes from each other with a single space.
**Cells and caption (<nowiki>| or ||, ! or !!, and |+</nowiki>) hold content. So separate any attributes from content with a single pipe (|). Cell content may follow on same line or on following lines.
**Table and row marks (<nowiki>{| and |-</nowiki>) do not directly hold content. Do ''not'' add pipe (|) after their optional attributes. If you erroneously add a pipe after attributes for the table mark or row mark the parser will delete it ''and'' your final attribute if it was touching the erroneous pipe!
*'''Content''' may (a) follow its cell mark on the same line after any optional XHTML attributes or (b) on lines below the cell mark. Content that uses wiki markup that itself needs to start on a new line, such as lists, headers, or nested tables, must of course be on its own new line.
==Simple table==
===Plain===
The following table lacks borders and good spacing but shows the simplest wiki markup table structure
{| width="100%"
|width="50%"|
{|
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{|
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
===Alternative===
For more table-ish looking wiki markup cells can be listed on one line separated by ||. This does not scale well for longer cell content such as paragraphs. It works well for short bits of content however, such as our example table.
Extra spaces within cells in the wiki markup can be added, as I have done in the wiki markup below, to make the wiki markup itself look better but they do not affect the actual table rendering.
HTML attributes can be added to tables on this page but have been left out of the following example for simplicity.
{| width="100%"
|width="50%"|
{|
| Orange || Apple || more
|-
| Bread || Pie || more
|-
| Butter || Ice cream || and more
|}
|width="50%"|
<pre>
<nowiki>
{|
| Orange || Apple || more
|-
| Bread || Pie || more
|-
| Butter || Ice cream || and more
|}
</nowiki>
</pre>
|}
===With HTML attributes===
You can add HTML attributes to make your table look better
====border="1"====
{| width="100%"
|width="50%"|
{| border="1"
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{| border="1"
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
====align="center" border="1"====
{| width="100%"
|width="50%"|
{| align="center" border="1"
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{| align="center" border="1"
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
====Attributes on cells ====
You can put attributes on individual '''cells.''' Numbers for example may look better aligned right
{| width="100%"
|width="50%"|
{| border="1"
|Orange
|Apple
|align="right"|12,333.00
|-
|Bread
|Pie
|align="right"|500.00
|-
|Butter
|Ice cream
|align="right"|1.00
|}
|width="50%"|
<pre>
<nowiki>
{| border="1"
|Orange
|Apple
|align="right"|12,333.00
|-
|Bread
|Pie
|align="right"|500.00
|-
|Butter
|Ice cream
|align="right"|1.00
|}
</nowiki>
</pre>
|}
====Attributes on rows====
You can put attributes on individual '''rows,''' too.
{| width="100%"
|width="50%"|
{| border="1"
|Orange
|Apple
|align="right"|12,333.00
|-
|Bread
|Pie
|align="right"|500.00
|- style="font-style:italic;color:green;"
|Butter
|Ice cream
|align="right"|1.00
|}
|width="50%"|
<pre>
<nowiki>
{| border="1"
|Orange
|Apple
|align="right"|12,333.00
|-
|Bread
|Pie
|align="right"|500.00
|- style="font-style:italic;color:green;"
|Butter
|Ice cream
|align="right"|1.00
|}
</nowiki>
</pre>
|}
====cellspacing="0" border="1"====
{| width="100%"
|width="50%"|
{| cellspacing="0" border="1"
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{| cellspacing="0" border="1"
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
====cellpadding="20" cellspacing="0" border="1"====
{| width="100%"
|width="50%"|
{| cellpadding="20" cellspacing="0" border="1"
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{| cellpadding="20" cellspacing="0" border="1"
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
===With HTML attributes and CSS styles===
CSS style attributes can be added with or without other HTML attributes
====style="color:green;background-color:#ffffcc;" cellpadding="20" cellspacing "0" border "1"====
{| width="100%"
|width="50%"|
{| style="color:green;background-color:#ffffcc;" cellpadding="20" cellspacing="0" border="1"
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{| style="color:green;background-color:#ffffcc;" cellpadding="20" cellspacing="0" border="1"
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
==Table with TH headings==
TH (HTML table headings) can be created by using ! instead of |. Headings usually show up bold and centered by default.
===Top headings===
====Each column====
{| width="100%"
|width="50%"|
{| border="1" cellpadding="20" cellspacing="0"
!Yummy
!Yummier
|-
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{| border="1" cellpadding="20" cellspacing="0"
!Yummy
!Yummier
|-
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
====Colspan="2"====
{| width="100%"
|width="50%"|
{| border="1" cellpadding="20" cellspacing="0"
!colspan="2"|Yummies
|-
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{| border="1" cellpadding="20" cellspacing="0"
! colspan="2"|Yummies
|-
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
===Side headings===
====Default====
{| width="100%"
|width="50%"|
{| border="1" cellpadding="20" cellspacing="0"
!Fruit
|Orange
|Apple
|-
!Dish
|Bread
|Pie
|-
!Complement
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{| border="1" cellpadding="20" cellspacing="0"
!Fruit
|Orange
|Apple
|-
!Dish
|Bread
|Pie
|-
!Complement
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
====Right justify====
Right justified side headings can be done as follows
{| width="100%"
|width="50%"|
{| border="1" cellpadding="20" cellspacing="0"
!align="right" |Fruit
|Orange
|Apple
|-
!align="right" |Dish
|Bread
|Pie
|-
!align="right" |Complement
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{| border="1" cellpadding="20" cellspacing="0"
!align="right" |Fruit
|Orange
|Apple
|-
!align="right" |Dish
|Bread
|Pie
|-
!align="right" |Complement
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
==Caption==
A '''table caption''' can be added to the top of any table as follows
{| width="100%"
|width="50%"|
{| border="1" cellpadding="20" cellspacing="0"
|+Food complements
|-
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{| border="1" cellpadding="20" cellspacing="0"
|+Food complements
|-
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
'''Attributes''' can be added to the caption as follows
{| width="100%"
|width="50%"|
{| border="1" cellpadding="20" cellspacing="0"
|+align="bottom" style="color:#e76700;"|''Food complements''
|-
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{| border="1" cellpadding="20" cellspacing="0"
|+align="bottom" style="color:#e76700;"|''Food complements''
|-
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
==Table with H1, H2, H3 etc. headings==
HTML H1, H2, H3, H4 etc. headings can be created the standard wiki markup way with ==equal== signs and '''must be on a line all by themselves''' to work.
'''Preview the whole table.''' If you click on an edit tab for a heading ''within'' a table, edit, and preview, the parent table will display erroneously broken because part of it will be missing.
Keep the heading hierarchy consistent with the rest of the page so that the table of contents at page top works correctly.
{| width="100%"
|width="50%"|
{| border="1" cellpadding="20" cellspacing="0"
|colspan="2"|
===Yummiest===
|-
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{| border="3" cellpadding="20" cellspacing="0"
|colspan="2"|
===Yummiest===
|-
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
==Caveat==
===Negative numbers===
Negative value minus sign can break your table (it may display missing some values) if you start a cell on a new line with a negative number or a parameter that evaluates to a negative number (|-6) because that is the wiki markup for table row, not table cell. To avoid this, insert a space before the value (| -6) or use in-line cell markup (||-6).
== See Also ==
* [[Help Formatting]]
* [[Help Links]]
[[tags: help]]
@@ -0,0 +1,588 @@
Tables may be authored in wiki pages using either HTML table elements directly, or using wikicode formatting to define the table. HTML table elements and their use are well described on various web pages and will not be discussed here. The benefit of wikicode is that the table is constructed of character symbols which tend to make it easier to perceive the table structure in the article editing view compared to HTML table elements.
As a general rule, it is best to avoid using a table unless you need one. Table markup often complicates page editing.
== Wiki table markup summary ==
{|cellpadding="5" cellspacing="0" border="1" width="600"
|<nowiki>{|</nowiki> || '''table start'''
|-
|<nowiki>|+</nowiki> || table '''caption,''' ''optional;'' only between '''table start''' and first '''table row'''
|-
|<nowiki>|-</nowiki> || '''table row,''' ''optional on first row'' -- wiki engine assumes the first row
|-
|<nowiki>!</nowiki> || '''table header''' cell, ''optional.'' Consecutive '''table header''' cells may be added on same line separated by double marks (!!) or start on new lines, each with its own single mark (!).
|-
|<nowiki>|</nowiki> || '''table data''' cell, ''required!'' Consecutive '''table data''' cells may be added on same line separated by double marks (<nowiki>||</nowiki>) or start on new lines, each with its own single mark (<nowiki>|</nowiki>).
|-
|<nowiki>|}</nowiki> || '''table end'''
|}
*The above marks must '''start on a new line''' except the double || and !! for optionally adding consecutive cells to a line.
*'''XHTML attributes.''' Each mark, except table end, optionally accepts one or more XHTML attributes. Attributes must be on the same line as the mark. Separate attributes from each other with a single space.
**Cells and caption (<nowiki>| or ||, ! or !!, and |+</nowiki>) hold content. So separate any attributes from content with a single pipe (|). Cell content may follow on same line or on following lines.
**Table and row marks (<nowiki>{| and |-</nowiki>) do not directly hold content. Do ''not'' add pipe (|) after their optional attributes. If you erroneously add a pipe after attributes for the table mark or row mark the parser will delete it ''and'' your final attribute if it was touching the erroneous pipe!
*'''Content''' may (a) follow its cell mark on the same line after any optional XHTML attributes or (b) on lines below the cell mark. Content that uses wiki markup that itself needs to start on a new line, such as lists, headers, or nested tables, must of course be on its own new line.
==Simple table==
===Plain===
The following table lacks borders and good spacing but shows the simplest wiki markup table structure
{| width="100%"
|width="50%"|
{|
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{|
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
===Alternative===
For more table-ish looking wiki markup cells can be listed on one line separated by ||. This does not scale well for longer cell content such as paragraphs. It works well for short bits of content however, such as our example table.
Extra spaces within cells in the wiki markup can be added, as I have done in the wiki markup below, to make the wiki markup itself look better but they do not affect the actual table rendering.
HTML attributes can be added to tables on this page but have been left out of the following example for simplicity.
{| width="100%"
|width="50%"|
{|
| Orange || Apple || more
|-
| Bread || Pie || more
|-
| Butter || Ice cream || and more
|}
|width="50%"|
<pre>
<nowiki>
{|
| Orange || Apple || more
|-
| Bread || Pie || more
|-
| Butter || Ice cream || and more
|}
</nowiki>
</pre>
|}
===With HTML attributes===
You can add HTML attributes to make your table look better
====border="1"====
{| width="100%"
|width="50%"|
{| border="1"
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{| border="1"
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
====align="center" border="1"====
{| width="100%"
|width="50%"|
{| align="center" border="1"
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{| align="center" border="1"
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
====Attributes on cells ====
You can put attributes on individual '''cells.''' Numbers for example may look better aligned right
{| width="100%"
|width="50%"|
{| border="1"
|Orange
|Apple
|align="right"|12,333.00
|-
|Bread
|Pie
|align="right"|500.00
|-
|Butter
|Ice cream
|align="right"|1.00
|}
|width="50%"|
<pre>
<nowiki>
{| border="1"
|Orange
|Apple
|align="right"|12,333.00
|-
|Bread
|Pie
|align="right"|500.00
|-
|Butter
|Ice cream
|align="right"|1.00
|}
</nowiki>
</pre>
|}
====Attributes on rows====
You can put attributes on individual '''rows,''' too.
{| width="100%"
|width="50%"|
{| border="1"
|Orange
|Apple
|align="right"|12,333.00
|-
|Bread
|Pie
|align="right"|500.00
|- style="font-style:italic;color:green;"
|Butter
|Ice cream
|align="right"|1.00
|}
|width="50%"|
<pre>
<nowiki>
{| border="1"
|Orange
|Apple
|align="right"|12,333.00
|-
|Bread
|Pie
|align="right"|500.00
|- style="font-style:italic;color:green;"
|Butter
|Ice cream
|align="right"|1.00
|}
</nowiki>
</pre>
|}
====cellspacing="0" border="1"====
{| width="100%"
|width="50%"|
{| cellspacing="0" border="1"
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{| cellspacing="0" border="1"
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
====cellpadding="20" cellspacing="0" border="1"====
{| width="100%"
|width="50%"|
{| cellpadding="20" cellspacing="0" border="1"
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{| cellpadding="20" cellspacing="0" border="1"
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
===With HTML attributes and CSS styles===
CSS style attributes can be added with or without other HTML attributes
====style="color:green;background-color:#ffffcc;" cellpadding="20" cellspacing "0" border "1"====
{| width="100%"
|width="50%"|
{| style="color:green;background-color:#ffffcc;" cellpadding="20" cellspacing="0" border="1"
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{| style="color:green;background-color:#ffffcc;" cellpadding="20" cellspacing="0" border="1"
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
==Table with TH headings==
TH (HTML table headings) can be created by using ! instead of |. Headings usually show up bold and centered by default.
===Top headings===
====Each column====
{| width="100%"
|width="50%"|
{| border="1" cellpadding="20" cellspacing="0"
!Yummy
!Yummier
|-
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{| border="1" cellpadding="20" cellspacing="0"
!Yummy
!Yummier
|-
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
====Colspan="2"====
{| width="100%"
|width="50%"|
{| border="1" cellpadding="20" cellspacing="0"
!colspan="2"|Yummies
|-
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{| border="1" cellpadding="20" cellspacing="0"
! colspan="2"|Yummies
|-
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
===Side headings===
====Default====
{| width="100%"
|width="50%"|
{| border="1" cellpadding="20" cellspacing="0"
!Fruit
|Orange
|Apple
|-
!Dish
|Bread
|Pie
|-
!Complement
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{| border="1" cellpadding="20" cellspacing="0"
!Fruit
|Orange
|Apple
|-
!Dish
|Bread
|Pie
|-
!Complement
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
====Right justify====
Right justified side headings can be done as follows
{| width="100%"
|width="50%"|
{| border="1" cellpadding="20" cellspacing="0"
!align="right" |Fruit
|Orange
|Apple
|-
!align="right" |Dish
|Bread
|Pie
|-
!align="right" |Complement
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{| border="1" cellpadding="20" cellspacing="0"
!align="right" |Fruit
|Orange
|Apple
|-
!align="right" |Dish
|Bread
|Pie
|-
!align="right" |Complement
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
==Caption==
A '''table caption''' can be added to the top of any table as follows
{| width="100%"
|width="50%"|
{| border="1" cellpadding="20" cellspacing="0"
|+Food complements
|-
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{| border="1" cellpadding="20" cellspacing="0"
|+Food complements
|-
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
'''Attributes''' can be added to the caption as follows
{| width="100%"
|width="50%"|
{| border="1" cellpadding="20" cellspacing="0"
|+align="bottom" style="color:#e76700;"|''Food complements''
|-
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{| border="1" cellpadding="20" cellspacing="0"
|+align="bottom" style="color:#e76700;"|''Food complements''
|-
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
==Table with H1, H2, H3 etc. headings==
HTML H1, H2, H3, H4 etc. headings can be created the standard wiki markup way with ==equal== signs and '''must be on a line all by themselves''' to work.
'''Preview the whole table.''' If you click on an edit tab for a heading ''within'' a table, edit, and preview, the parent table will display erroneously broken because part of it will be missing.
Keep the heading hierarchy consistent with the rest of the page so that the table of contents at page top works correctly.
{| width="100%"
|width="50%"|
{| border="1" cellpadding="20" cellspacing="0"
|colspan="2"|
===Yummiest===
|-
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{| border="3" cellpadding="20" cellspacing="0"
|colspan="2"|
===Yummiest===
|-
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
==Caveat==
===Negative numbers===
Negative value minus sign can break your table (it may display missing some values) if you start a cell on a new line with a negative number or a parameter that evaluates to a negative number (|-6) because that is the wiki markup for table row, not table cell. To avoid this, insert a space before the value (| -6) or use in-line cell markup (||-6).
== See Also ==
* [[Help Formatting]]
* [[Help Tables]]
[[tags: help]]
@@ -0,0 +1,589 @@
Tables may be authored in wiki pages using either HTML table elements directly, or using wikicode formatting to define the table. HTML table elements and their use are well described on various web pages and will not be discussed here. The benefit of wikicode is that the table is constructed of character symbols which tend to make it easier to perceive the table structure in the article editing view compared to HTML table elements.
As a general rule, it is best to avoid using a table unless you need one. Table markup often complicates page editing.
== Wiki table markup summary ==
{|cellpadding="5" cellspacing="0" border="1" width="600"
|<nowiki>{|</nowiki> || '''table start'''
|-
|<nowiki>|+</nowiki> || table '''caption,''' ''optional;'' only between '''table start''' and first '''table row'''
|-
|<nowiki>|-</nowiki> || '''table row,''' ''optional on first row'' -- wiki engine assumes the first row
|-
|<nowiki>!</nowiki> || '''table header''' cell, ''optional.'' Consecutive '''table header''' cells may be added on same line separated by double marks (!!) or start on new lines, each with its own single mark (!).
|-
|<nowiki>|</nowiki> || '''table data''' cell, ''required!'' Consecutive '''table data''' cells may be added on same line separated by double marks (<nowiki>||</nowiki>) or start on new lines, each with its own single mark (<nowiki>|</nowiki>).
|-
|<nowiki>|}</nowiki> || '''table end'''
|}
*The above marks must '''start on a new line''' except the double || and !! for optionally adding consecutive cells to a line.
*'''XHTML attributes.''' Each mark, except table end, optionally accepts one or more XHTML attributes. Attributes must be on the same line as the mark. Separate attributes from each other with a single space.
**Cells and caption (<nowiki>| or ||, ! or !!, and |+</nowiki>) hold content. So separate any attributes from content with a single pipe (|). Cell content may follow on same line or on following lines.
**Table and row marks (<nowiki>{| and |-</nowiki>) do not directly hold content. Do ''not'' add pipe (|) after their optional attributes. If you erroneously add a pipe after attributes for the table mark or row mark the parser will delete it ''and'' your final attribute if it was touching the erroneous pipe!
*'''Content''' may (a) follow its cell mark on the same line after any optional XHTML attributes or (b) on lines below the cell mark. Content that uses wiki markup that itself needs to start on a new line, such as lists, headers, or nested tables, must of course be on its own new line.
==Simple table==
===Plain===
The following table lacks borders and good spacing but shows the simplest wiki markup table structure
{| width="100%"
|width="50%"|
{|
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{|
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
===Alternative===
For more table-ish looking wiki markup cells can be listed on one line separated by ||. This does not scale well for longer cell content such as paragraphs. It works well for short bits of content however, such as our example table.
Extra spaces within cells in the wiki markup can be added, as I have done in the wiki markup below, to make the wiki markup itself look better but they do not affect the actual table rendering.
HTML attributes can be added to tables on this page but have been left out of the following example for simplicity.
{| width="100%"
|width="50%"|
{|
| Orange || Apple || more
|-
| Bread || Pie || more
|-
| Butter || Ice cream || and more
|}
|width="50%"|
<pre>
<nowiki>
{|
| Orange || Apple || more
|-
| Bread || Pie || more
|-
| Butter || Ice cream || and more
|}
</nowiki>
</pre>
|}
===With HTML attributes===
You can add HTML attributes to make your table look better
====border="1"====
{| width="100%"
|width="50%"|
{| border="1"
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{| border="1"
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
====align "center" border "1"====
{| width="100%"
|width="50%"|
{| align="center" border="1"
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{| align="center" border="1"
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
====Attributes on cells ====
You can put attributes on individual '''cells.''' Numbers for example may look better aligned right
{| width="100%"
|width="50%"|
{| border="1"
|Orange
|Apple
|align="right"|12,333.00
|-
|Bread
|Pie
|align="right"|500.00
|-
|Butter
|Ice cream
|align="right"|1.00
|}
|width="50%"|
<pre>
<nowiki>
{| border="1"
|Orange
|Apple
|align="right"|12,333.00
|-
|Bread
|Pie
|align="right"|500.00
|-
|Butter
|Ice cream
|align="right"|1.00
|}
</nowiki>
</pre>
|}
====Attributes on rows====
You can put attributes on individual '''rows,''' too.
{| width="100%"
|width="50%"|
{| border="1"
|Orange
|Apple
|align="right"|12,333.00
|-
|Bread
|Pie
|align="right"|500.00
|- style="font-style:italic;color:green;"
|Butter
|Ice cream
|align="right"|1.00
|}
|width="50%"|
<pre>
<nowiki>
{| border="1"
|Orange
|Apple
|align="right"|12,333.00
|-
|Bread
|Pie
|align="right"|500.00
|- style="font-style:italic;color:green;"
|Butter
|Ice cream
|align="right"|1.00
|}
</nowiki>
</pre>
|}
====cellspacing "0" border "1"====
{| width="100%"
|width="50%"|
{| cellspacing="0" border="1"
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{| cellspacing="0" border="1"
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
====cellpadding "20" cellspacing "0" border "1"====
{| width="100%"
|width="50%"|
{| cellpadding="20" cellspacing="0" border="1"
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{| cellpadding="20" cellspacing="0" border="1"
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
===With HTML attributes and CSS styles===
CSS style attributes can be added with or without other HTML attributes
====style "color:green;background-color:#ffffcc;" cellpadding "20" cellspacing "0" border "1"====
{| width="100%"
|width="50%"|
{| style="color:green;background-color:#ffffcc;" cellpadding="20" cellspacing="0" border="1"
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{| style="color:green;background-color:#ffffcc;" cellpadding="20" cellspacing="0" border="1"
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
==Table with TH headings==
TH (HTML table headings) can be created by using ! instead of |. Headings usually show up bold and centered by default.
===Top headings===
====Each column====
{| width="100%"
|width="50%"|
{| border="1" cellpadding="20" cellspacing="0"
!Yummy
!Yummier
|-
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{| border="1" cellpadding="20" cellspacing="0"
!Yummy
!Yummier
|-
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
====Colspan "2"====
{| width="100%"
|width="50%"|
{| border="1" cellpadding="20" cellspacing="0"
!colspan="2"|Yummies
|-
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{| border="1" cellpadding="20" cellspacing="0"
! colspan="2"|Yummies
|-
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
===Side headings===
====Default====
{| width="100%"
|width="50%"|
{| border="1" cellpadding="20" cellspacing="0"
!Fruit
|Orange
|Apple
|-
!Dish
|Bread
|Pie
|-
!Complement
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{| border="1" cellpadding="20" cellspacing="0"
!Fruit
|Orange
|Apple
|-
!Dish
|Bread
|Pie
|-
!Complement
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
====Right justify====
Right justified side headings can be done as follows
{| width="100%"
|width="50%"|
{| border="1" cellpadding="20" cellspacing="0"
!align="right" |Fruit
|Orange
|Apple
|-
!align="right" |Dish
|Bread
|Pie
|-
!align="right" |Complement
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{| border="1" cellpadding="20" cellspacing="0"
!align="right" |Fruit
|Orange
|Apple
|-
!align="right" |Dish
|Bread
|Pie
|-
!align="right" |Complement
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
==Caption==
A '''table caption''' can be added to the top of any table as follows
{| width="100%"
|width="50%"|
{| border="1" cellpadding="20" cellspacing="0"
|+Food complements
|-
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{| border="1" cellpadding="20" cellspacing="0"
|+Food complements
|-
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
'''Attributes''' can be added to the caption as follows
{| width="100%"
|width="50%"|
{| border="1" cellpadding="20" cellspacing="0"
|+align="bottom" style="color:#e76700;"|''Food complements''
|-
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{| border="1" cellpadding="20" cellspacing="0"
|+align="bottom" style="color:#e76700;"|''Food complements''
|-
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
==Table with H1, H2, H3 etc. headings==
HTML H1, H2, H3, H4 etc. headings can be created the standard wiki markup way with ==equal== signs and '''must be on a line all by themselves''' to work.
'''Preview the whole table.''' If you click on an edit tab for a heading ''within'' a table, edit, and preview, the parent table will display erroneously broken because part of it will be missing.
Keep the heading hierarchy consistent with the rest of the page so that the table of contents at page top works correctly.
{| width="100%"
|width="50%"|
{| border="1" cellpadding="20" cellspacing="0"
|colspan="2"|
===Yummiest===
|-
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{| border="3" cellpadding="20" cellspacing="0"
|colspan="2"|
===Yummiest===
|-
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
==Caveat==
===Negative numbers===
Negative value minus sign can break your table (it may display missing some values) if you start a cell on a new line with a negative number or a parameter that evaluates to a negative number (|-6) because that is the wiki markup for table row, not table cell. To avoid this, insert a space before the value (| -6) or use in-line cell markup (||-6).
== See Also ==
* [[Help Formatting]]
* [[Help Tables]]
[[tags: help]]
@@ -0,0 +1,135 @@
[[Help Formatting]]
[[Help Links]]
[[Help Tables]]
http://www.symantec.com/business/support/documentation.jsp?language=english&view=manuals&pid=15273
----
* Main Page of test doc root
* [[New page]]
* [[2007-03-10 Some title]]
* [[2007-03-31 Some title]]
* [[2008-04-10 Some title]]
[[Table test]]
[[UTF-8]]
http://www.mediawiki.org/wiki/Help:Formatting#Other_formatting
https://secure.blubber
ftp://ftp.blubber.com
file:///E|/mp3list.txt
bla blubber http://www.mediawiki.org/wiki/Help:Links rababer
this is a httpd or something. Maybe this "http://something.com" is better
= Links Test =
[[Non existing page]]
Invalid link: [[Test!/?;"'*]]
[[Main Page|different text]]
[[http://mediawiki.org MediaWiki]]
[[wowhead:item=25000|Item]]
[[sidebar:test]]
[[Content Test]]
= To do Test =
* [ ] open item
* [!] important item
* [x] done item
= Special Characters =
* !
* @
* #
* $
* %
* ^
* &
* *
* ;
* :*
* '
* <
* >
* /*
* ?*
* \
* |
= Formating Test =
''italic text''
'''bold text'''
'''''bold and italic text'''''
:Single indent
::Double indent
::Double second indent
:::::Multiple indent
:::Triple indent
=level 1=
==level 2==
===level 3===
====level 4====
=====level 5=====
======level 6======
* one
* two
* three
** three and one-third
** three and two-thirds
# one
# two<br>spanning several lines<br>without breaking the numbering
# three
## three point one
## three point two
<nowiki>no "markup"</nowiki>
<nowiki>
# one
# two<br>spanning several lines<br>without breaking the numbering
# three
## three point one
## three point two
</nowiki>
# one
# two
#* two point one
#* two point two
;Definition
:item 1
::item 2
:item3
preformatted text is done with
a space at the
beginning of the line
This is normal Text <pre> some preformatted text with no indentation </pre> and again normal Text
<tt>Some fixed text</tt>
<!--This is comment-->
[[XML-Syntaxerror]]
[http://error.link.com
@@ -0,0 +1,134 @@
[[Help Formatting]]
[[Help Links]]
[[Help Tables]]
----
* Main Page of test doc root
* [[New page]]
* [[2007-03-10 Some title]]
* [[2007-03-31 Some title]]
* [[2008-04-10 Some title]]
[[Table test]]
[[UTF-8]]
http://www.mediawiki.org/wiki/Help:Formatting#Other_formatting
https://secure.blubber
ftp://ftp.blubber.com
file:///E|/mp3list.txt
bla blubber http://www.mediawiki.org/wiki/Help:Links rababer
this is a httpd or something. Maybe this "http://something.com" is better
= Links Test =
[[Non existing page]]
Invalid link: [[Test!/?;"'*]]
[[Main Page|different text]]
[[http://mediawiki.org MediaWiki]]
[[wowhead:item=25000|Item]]
[[sidebar:test]]
[[Content Test]]
= To do Test =
* [ ] open item
* [!] important item
* [x] done item
= Special Characters =
* !
* @
* #
* $
* %
* ^
* &
* *
* ;
* :*
* '
* <
* >
* /*
* ?*
* \
* |
= Formating Test =
''italic text''
'''bold text'''
'''''bold and italic text'''''
:Single indent
::Double indent
::Double second indent
:::::Multiple indent
:::Triple indent
=level 1=
==level 2==
===level 3===
====level 4====
=====level 5=====
======level 6======
* one
* two
* three
** three and one-third
** three and two-thirds
# one
# two<br>spanning several lines<br>without breaking the numbering
# three
## three point one
## three point two
<nowiki>no "markup"</nowiki>
<nowiki>
# one
# two<br>spanning several lines<br>without breaking the numbering
# three
## three point one
## three point two
</nowiki>
# one
# two
#* two point one
#* two point two
;Definition
:item 1
::item 2
:item3
preformatted text is done with
a space at the
beginning of the line
This is normal Text <pre> some preformatted text with no indentation </pre> and again normal Text
<tt>Some fixed text</tt>
<!--This is comment-->
[[XML-Syntaxerror]]
[http://error.link.com
@@ -0,0 +1,137 @@
[[Help Formatting]]
[[Help Links]]
[[Help Tables]]
http://www.symantec.com/business/support/documentation.jsp?language=english&view=manuals&pid=15273
----
* Main Page of test doc root
* [[New page]]
* [[2007-03-10 Some title]]
* [[2007-03-31 Some title]]
* [[2008-04-10 Some title]]
[[Table test]]
[[UTF-8]]
http://www.mediawiki.org/wiki/Help:Formatting#Other_formatting
https://secure.blubber
ftp://ftp.blubber.com
file:///E|/mp3list.txt
bla blubber http://www.mediawiki.org/wiki/Help:Links rababer
this is a httpd or something. Maybe this "http://something.com" is better
= Links Test =
[[Non existing page]]
Invalid link: [[Test!/?;"'*]]
[[Main Page|different text]]
[[http://mediawiki.org MediaWiki]]
[[wowhead:item=25000|Item]]
[[sidebar:test]]
[[Content Test]]
= To do Test =
* [ ] open item
* [!] important item
* [x] done item
= Special Characters =
* !
* @
* #
* $
* %
* ^
* &
* *
* ;
* :*
* '
* <
* >
* /*
* ?*
* \
* |
= Formating Test =
''italic text''
'''bold text'''
'''''bold and italic text'''''
:Single indent
::Double indent
::Double second indent
:::::Multiple indent
:::Triple indent
=level 1=
==level 2==
===level 3===
====level 4====
=====level 5=====
======level 6======
* one
* two
* three
** three and one-third
** three and two-thirds
# one
# two<br>spanning several lines<br>without breaking the numbering
# three
## three point one
## three point two
<nowiki>no "markup"</nowiki>
<nowiki>
# one
# two<br>spanning several lines<br>without breaking the numbering
# three
## three point one
## three point two
</nowiki>
# one
# two
#* two point one
#* two point two
;Definition
:item 1
::item 2
:item3
preformatted text is done with
a space at the
beginning of the line
This is normal Text <pre> some preformatted text with no indentation </pre> and again normal Text
<tt>Some fixed text</tt>
<!--This is comment-->
[[XML-Syntaxerror]]
[http://error.link.com
@@ -0,0 +1,138 @@
[[Help Formatting]]
[[Help Links]]
[[Help Tables]]
http://www.symantec.com/business/support/documentation.jsp?language=english&view=manuals&pid=15273
----
* Main Page of test doc root
* [[New page]]
* [[2007-03-10 Some title]]
* [[2007-03-31 Some title]]
* [[2008-04-10 Some title]]
[[Table test]]
[[UTF-8]]
http://www.mediawiki.org/wiki/Help:Formatting#Other_formatting
https://secure.blubber
ftp://ftp.blubber.com
file:///E|/mp3list.txt
bla blubber http://www.mediawiki.org/wiki/Help:Links rababer
this is a httpd or something. Maybe this "http://something.com" is better
= Links Test =
[[Non existing page]]
Invalid link: [[Test!/?;"'*]]
[[Main Page|different text]]
[[http://mediawiki.org MediaWiki]]
[[wowhead:item=25000|Item]]
[[sidebar:test]]
[[Content Test]]
= To do Test =
* [ ] open item
* [!] important item
* [x] done item
= Special Characters =
* !
* @
* #
* $
* %
* ^
* &
* *
* ;
* :*
* '
* <
* >
* /*
* ?*
* \
* |
= Formating Test =
''italic text''
'''bold text'''
'''''bold and italic text'''''
:Single indent
::Double indent
::Double second indent
:::::Multiple indent
:::Triple indent
=level 1=
==level 2==
===level 3===
====level 4====
=====level 5=====
======level 6======
* one
* two
* three
** three and one-third
** three and two-thirds
# one
# two<br>spanning several lines<br>without breaking the numbering
# three
## three point one
## three point two
<nowiki>no "markup"</nowiki>
<nowiki>
# one
# two<br>spanning several lines<br>without breaking the numbering
# three
## three point one
## three point two
</nowiki>
# one
# two
#* two point one
#* two point two
;Definition
:item 1
::item 2
:item3
preformatted text is done with
a space at the
beginning of the line
This is normal Text <pre> some preformatted text with no indentation </pre> and again normal Text
<tt>Some fixed text</tt>
<!--This is comment-->
[[XML-Syntaxerror]]
[http://error.link.com
@@ -0,0 +1,15 @@
<span>should be correct</span>
<span style='color:red'>should be red</span>
<span style='color:red">switching quotation marks - incorrect!</span>
<span style='color:red>missing end quotiation mark - incorrect!</span>
<span style='color:blue;font-weight:bold;text-decoration:unterline;'>blue for a change</span>
<span style='color:green;'>trying <span style='font-weight:bold'>nested</span> spans</span>
<span style='text-decoration: underline'>and one with <span style='text-decoration:none>errors</span></span>
<span>test</span>
@@ -0,0 +1,119 @@
Tables may be authored in wiki pages using either HTML table elements directly, or using wikicode formatting to define the table. HTML table elements and their use are well described on various web pages and will not be discussed here. The benefit of wikicode is that the table is constructed of character symbols which tend to make it easier to perceive the table structure in the article editing view compared to HTML table elements.
As a general rule, it is best to avoid using a table unless you need one. Table markup often complicates page editing.
== Wiki table markup summary ==
{|cellpadding="5" cellspacing="0" border="1" width="600"
|<nowiki>{|</nowiki> || '''table start'''
|-
|<nowiki>|+</nowiki> || table '''caption,''' ''optional;'' only between '''table start''' and first '''table row'''
|-
|<nowiki>|-</nowiki> || '''table row,''' ''optional on first row'' -- wiki engine assumes the first row
|-
|<nowiki>!</nowiki> || '''table header''' cell, ''optional.'' Consecutive '''table header''' cells may be added on same line separated by double marks (!!) or start on new lines, each with its own single mark (!).
|-
|<nowiki>|</nowiki> || '''table data''' cell, ''required!'' Consecutive '''table data''' cells may be added on same line separated by double marks (<nowiki>||</nowiki>) or start on new lines, each with its own single mark (<nowiki>|</nowiki>).
|-
|<nowiki>|}</nowiki> || '''table end'''
|}
*The above marks must '''start on a new line''' except the double || and !! for optionally adding consecutive cells to a line.
*'''XHTML attributes.''' Each mark, except table end, optionally accepts one or more XHTML attributes. Attributes must be on the same line as the mark. Separate attributes from each other with a single space.
**Cells and caption (<nowiki>| or ||, ! or !!, and |+</nowiki>) hold content. So separate any attributes from content with a single pipe (|). Cell content may follow on same line or on following lines.
**Table and row marks (<nowiki>{| and |-</nowiki>) do not directly hold content. Do ''not'' add pipe (|) after their optional attributes. If you erroneously add a pipe after attributes for the table mark or row mark the parser will delete it ''and'' your final attribute if it was touching the erroneous pipe!
*'''Content''' may (a) follow its cell mark on the same line after any optional XHTML attributes or (b) on lines below the cell mark. Content that uses wiki markup that itself needs to start on a new line, such as lists, headers, or nested tables, must of course be on its own new line.
==Simple table==
===Plain===
The following table lacks borders and good spacing but shows the simplest wiki markup table structure
{| width="100%"
|width="50%"|
{|
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{|
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
===Alternative===
For more table-ish looking wiki markup cells can be listed on one line separated by ||. This does not scale well for longer cell content such as paragraphs. It works well for short bits of content however, such as our example table.
Extra spaces within cells in the wiki markup can be added, as I have done in the wiki markup below, to make the wiki markup itself look better but they do not affect the actual table rendering.
HTML attributes can be added to tables on this page but have been left out of the following example for simplicity.
{| width="100%"
|width="50%"|
{|
| Orange || Apple || more
|-
| Bread || Pie || more
|-
| Butter || Ice cream || and more
|}
|width="50%"|
<pre>
<nowiki>
{|
| Orange || Apple || more
|-
| Bread || Pie || more
|-
| Butter || Ice cream || and more
|}
</nowiki>
</pre>
|}
===With HTML attributes===
You can add HTML attributes to make your table look better
====border="1"====
{| width="100%"
|width="50%"|
{| border="1"
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{| border="1"
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
@@ -0,0 +1,120 @@
Tables may be authored in wiki pages using either HTML table elements directly, or using wikicode formatting to define the table. HTML table elements and their use are well described on various web pages and will not be discussed here. The benefit of wikicode is that the table is constructed of character symbols which tend to make it easier to perceive the table structure in the article editing view compared to HTML table elements.
As a general rule, it is best to avoid using a table unless you need one. Table markup often complicates page editing.
== Wiki table markup summary ==
{|cellpadding="5" cellspacing="0" border="1" width="600"
|<nowiki>{|</nowiki> || '''table start'''
|-
|<nowiki>|+</nowiki> || table '''caption,''' ''optional;'' only between '''table start''' and first '''table row'''
|-
|<nowiki>|-</nowiki> || '''table row,''' ''optional on first row'' -- wiki engine assumes the first row
|-
|<nowiki>!</nowiki> || '''table header''' cell, ''optional.'' Consecutive '''table header''' cells may be added on same line separated by double marks (!!) or start on new lines, each with its own single mark (!).
|-
|<nowiki>|</nowiki> || '''table data''' cell, ''required!'' Consecutive '''table data''' cells may be added on same line separated by double marks (<nowiki>||</nowiki>) or start on new lines, each with its own single mark (<nowiki>|</nowiki>).
|-
|<nowiki>|}</nowiki> || '''table end'''
|}
*The above marks must '''start on a new line''' except the double || and !! for optionally adding consecutive cells to a line.
*'''XHTML attributes.''' Each mark, except table end, optionally accepts one or more XHTML attributes. Attributes must be on the same line as the mark. Separate attributes from each other with a single space.
**Cells and caption (<nowiki>| or ||, ! or !!, and |+</nowiki>) hold content. So separate any attributes from content with a single pipe (|). Cell content may follow on same line or on following lines.
**Table and row marks (<nowiki>{| and |-</nowiki>) do not directly hold content. Do ''not'' add pipe (|) after their optional attributes. If you erroneously add a pipe after attributes for the table mark or row mark the parser will delete it ''and'' your final attribute if it was touching the erroneous pipe!
*'''Content''' may (a) follow its cell mark on the same line after any optional XHTML attributes or (b) on lines below the cell mark. Content that uses wiki markup that itself needs to start on a new line, such as lists, headers, or nested tables, must of course be on its own new line.
==Simple table==
===Plain===
The following table lacks borders and good spacing but shows the simplest wiki markup table structure
{| width="100%"
|width="50%"|
{|
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{|
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
===Alternative===
For more table-ish looking wiki markup cells can be listed on one line separated by ||. This does not scale well for longer cell content such as paragraphs. It works well for short bits of content however, such as our example table.
Extra spaces within cells in the wiki markup can be added, as I have done in the wiki markup below, to make the wiki markup itself look better but they do not affect the actual table rendering.
HTML attributes can be added to tables on this page but have been left out of the following example for simplicity.
{| width="100%"
|width="50%"|
{|
| Orange || Apple || more
|-
| Bread || Pie || more
|-
| Butter || Ice cream || and more
|}
|width="50%"|
<pre>
<nowiki>
{|
| Orange || Apple || more
|-
| Bread || Pie || more
|-
| Butter || Ice cream || and more
|}
</nowiki>
</pre>
|}
===With HTML attributes===
You can add HTML attributes to make your table look better
====border "1"====
{| width="100%"
|width="50%"|
{| border="1"
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{| border="1"
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
@@ -0,0 +1,121 @@
Tables may be authored in wiki pages using either HTML table elements directly, or using wikicode formatting to define the table. HTML table elements and their use are well described on various web pages and will not be discussed here. The benefit of wikicode is that the table is constructed of character symbols which tend to make it easier to perceive the table structure in the article editing view compared to HTML table elements.
As a general rule, it is best to avoid using a table unless you need one. Table markup often complicates page editing.
== Wiki table markup summary ==
{|cellpadding="5" cellspacing="0" border="1" width="600"
|<nowiki>{|</nowiki> || '''table start'''
|-
|<nowiki>|+</nowiki> || table '''caption,''' ''optional;'' only between '''table start''' and first '''table row'''
|-
|<nowiki>|-</nowiki> || '''table row,''' ''optional on first row'' -- wiki engine assumes the first row
|-
|<nowiki>!</nowiki> || '''table header''' cell, ''optional.'' Consecutive '''table header''' cells may be added on same line separated by double marks (!!) or start on new lines, each with its own single mark (!).
|-
|<nowiki>|</nowiki> || '''table data''' cell, ''required!'' Consecutive '''table data''' cells may be added on same line separated by double marks (<nowiki>||</nowiki>) or start on new lines, each with its own single mark (<nowiki>|</nowiki>).
|-
|<nowiki>|}</nowiki> || '''table end'''
|}
*The above marks must '''start on a new line''' except the double || and !! for optionally adding consecutive cells to a line.
*'''XHTML attributes.''' Each mark, except table end, optionally accepts one or more XHTML attributes. Attributes must be on the same line as the mark. Separate attributes from each other with a single space.
**Cells and caption (<nowiki>| or ||, ! or !!, and |+</nowiki>) hold content. So separate any attributes from content with a single pipe (|). Cell content may follow on same line or on following lines.
**Table and row marks (<nowiki>{| and |-</nowiki>) do not directly hold content. Do ''not'' add pipe (|) after their optional attributes. If you erroneously add a pipe after attributes for the table mark or row mark the parser will delete it ''and'' your final attribute if it was touching the erroneous pipe!
*'''Content''' may (a) follow its cell mark on the same line after any optional XHTML attributes or (b) on lines below the cell mark. Content that uses wiki markup that itself needs to start on a new line, such as lists, headers, or nested tables, must of course be on its own new line.
==Simple table==
===Plain===
The following table lacks borders and good spacing but shows the simplest wiki markup table structure
{| width="100%"
|width="50%"|
{|
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{|
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
===Alternative===
For more table-ish looking wiki markup cells can be listed on one line separated by ||. This does not scale well for longer cell content such as paragraphs. It works well for short bits of content however, such as our example table.
Extra spaces within cells in the wiki markup can be added, as I have done in the wiki markup below, to make the wiki markup itself look better but they do not affect the actual table rendering.
HTML attributes can be added to tables on this page but have been left out of the following example for simplicity.
{| width="100%"
|width="50%"|
{|
| Orange || Apple || more
|-
| Bread || Pie || more
|-
| Butter || Ice cream || and more
|}
|width="50%"|
<pre>
<nowiki>
{|
| Orange || Apple || more
|-
| Bread || Pie || more
|-
| Butter || Ice cream || and more
|}
</nowiki>
</pre>
|}
===With HTML attributes===
You can add HTML attributes to make your table look better
====border="1"====
{| width="100%"
|width="50%"|
{| border="1"
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{| border="1"
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
@@ -0,0 +1,122 @@
Tables may be authored in wiki pages using either HTML table elements directly, or using wikicode formatting to define the table. HTML table elements and their use are well described on various web pages and will not be discussed here. The benefit of wikicode is that the table is constructed of character symbols which tend to make it easier to perceive the table structure in the article editing view compared to HTML table elements.
As a general rule, it is best to avoid using a table unless you need one. Table markup often complicates page editing.
== Wiki table markup summary ==
{|cellpadding="5" cellspacing="0" border="1" width="600"
|<nowiki>{|</nowiki> || '''table start'''
|-
|<nowiki>|+</nowiki> || table '''caption,''' ''optional;'' only between '''table start''' and first '''table row'''
|-
|<nowiki>|-</nowiki> || '''table row,''' ''optional on first row'' -- wiki engine assumes the first row
|-
|<nowiki>!</nowiki> || '''table header''' cell, ''optional.'' Consecutive '''table header''' cells may be added on same line separated by double marks (!!) or start on new lines, each with its own single mark (!).
|-
|<nowiki>|</nowiki> || '''table data''' cell, ''required!'' Consecutive '''table data''' cells may be added on same line separated by double marks (<nowiki>||</nowiki>) or start on new lines, each with its own single mark (<nowiki>|</nowiki>).
|-
|<nowiki>|}</nowiki> || '''table end'''
|}
*The above marks must '''start on a new line''' except the double || and !! for optionally adding consecutive cells to a line.
*'''XHTML attributes.''' Each mark, except table end, optionally accepts one or more XHTML attributes. Attributes must be on the same line as the mark. Separate attributes from each other with a single space.
**Cells and caption (<nowiki>| or ||, ! or !!, and |+</nowiki>) hold content. So separate any attributes from content with a single pipe (|). Cell content may follow on same line or on following lines.
**Table and row marks (<nowiki>{| and |-</nowiki>) do not directly hold content. Do ''not'' add pipe (|) after their optional attributes. If you erroneously add a pipe after attributes for the table mark or row mark the parser will delete it ''and'' your final attribute if it was touching the erroneous pipe!
*'''Content''' may (a) follow its cell mark on the same line after any optional XHTML attributes or (b) on lines below the cell mark. Content that uses wiki markup that itself needs to start on a new line, such as lists, headers, or nested tables, must of course be on its own new line.
==Simple table==
===Plain===
The following table lacks borders and good spacing but shows the simplest wiki markup table structure
{| width="100%"
|width="50%"|
{|
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{|
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
===Alternative===
For more table-ish looking wiki markup cells can be listed on one line separated by ||. This does not scale well for longer cell content such as paragraphs. It works well for short bits of content however, such as our example table.
Extra spaces within cells in the wiki markup can be added, as I have done in the wiki markup below, to make the wiki markup itself look better but they do not affect the actual table rendering.
HTML attributes can be added to tables on this page but have been left out of the following example for simplicity.
{| width="100%"
|width="50%"|
{|
| Orange || Apple || more
|-
| Bread || Pie || more
|-
| Butter || Ice cream || and more
|}
|width="50%"|
<pre>
<nowiki>
{|
| Orange || Apple || more
|-
| Bread || Pie || more
|-
| Butter || Ice cream || and more
|}
</nowiki>
</pre>
|}
===With HTML attributes===
You can add HTML attributes to make your table look better
====border="1"====
{| width="100%"
|width="50%"|
{| border="1"
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
|width="50%"|
<pre>
<nowiki>
{| border="1"
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
</nowiki>
</pre>
|}
@@ -0,0 +1,83 @@
Hi,
I think this could be intersting for a lot of people. With the guide below, I'm now able to run wiki in a jar on a USB stick and can share all documents between Linux and Windows boxes.
- download and extract the source package (wiki-in-a-jar.tar.gz)
- following files needs to be changed
file: wiki-in-a-jar/Wiki_in_a_jar/trunk/src/org/rgse/wikiinajar/helpers/TextUtils.java
remove the import lines
import java.io.FileReader;
import java.io.FileWriter;
add the import lines
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.nio.charset.Charset;
modify line 50:
--- BufferedReader reader = new BufferedReader(new FileReader(file));
+++ BufferedReader reader = new BufferedReader(new InputStreamReader(
new FileInputStream(file), Charset.forName("UTF-8")));
modify line 63:
--- PrintWriter out = new PrintWriter(new FileWriter(file));
+++ PrintWriter out = new PrintWriter(new OutputStreamWriter(
new FileOutputStream(file), Charset.forName("UTF-8")));
file: wiki-in-a-jar/Wiki_in_a_jar/trunk/bin/start.cmd
modify line 2:
--- start javaw -jar wiki.in.a.jar 3003
+++ start javaw -Dfile.encoding=UTF-8 -jar wiki.in.a.jar 3003
file: wiki-in-a-jar/Wiki_in_a_jar/trunk/bin/start.sh
modify line 5:
--- java -jar wiki.in.a.jar 3003 &
+++ java -Dfile.encoding=UTF-8 -jar wiki.in.a.jar 3003 &
- change in following files the file enoding
from: <?xml version="1.0" encoding="ISO-8859-1"?>
into: <?xml version="1.0" encoding="UTF-8"?>
wiki-in-a-jar/Wiki_in_a_jar/trunk/public/views/wiki/edit.xml
wiki-in-a-jar/Wiki_in_a_jar/trunk/public/views/wiki/show.xml
wiki-in-a-jar/Wiki_in_a_jar/trunk/public/views/wiki/home.xml
wiki-in-a-jar/Wiki_in_a_jar/trunk/public/views/common/error.xml
wiki-in-a-jar/Wiki_in_a_jar/trunk/public/views/calendar/month.xml
wiki-in-a-jar/Wiki_in_a_jar/trunk/public/views/tag/tree.xml
wiki-in-a-jar/Wiki_in_a_jar/trunk/public/views/index/vcard.xml
wiki-in-a-jar/Wiki_in_a_jar/trunk/public/views/index/wiki.xml
wiki-in-a-jar/Wiki_in_a_jar/trunk/public/views/index/all.xml
wiki-in-a-jar/Wiki_in_a_jar/trunk/public/views/find/pages.xml
wiki-in-a-jar/Wiki_in_a_jar/trunk/public/views/admin/default.xml
wiki-in-a-jar/Wiki_in_a_jar/trunk/public/views/vcard/show.xml
wiki-in-a-jar/Wiki_in_a_jar/trunk/public/skins/default/wiki/edit-article.xsl
wiki-in-a-jar/Wiki_in_a_jar/trunk/public/skins/default/wiki/show-article.xsl
wiki-in-a-jar/Wiki_in_a_jar/trunk/public/skins/default/master.xsl
wiki-in-a-jar/Wiki_in_a_jar/trunk/public/skins/default/common/error.xsl
wiki-in-a-jar/Wiki_in_a_jar/trunk/public/skins/default/common/tag-list.xsl
wiki-in-a-jar/Wiki_in_a_jar/trunk/public/skins/default/common/sub-menu.xsl
wiki-in-a-jar/Wiki_in_a_jar/trunk/public/skins/default/common/root.xsl
wiki-in-a-jar/Wiki_in_a_jar/trunk/public/skins/default/common/main-menu.xsl
wiki-in-a-jar/Wiki_in_a_jar/trunk/public/skins/default/calendar/calendar.xsl
wiki-in-a-jar/Wiki_in_a_jar/trunk/public/skins/default/tagtree/tagtree.xsl
wiki-in-a-jar/Wiki_in_a_jar/trunk/public/skins/default/admin/admin-page.xsl
wiki-in-a-jar/Wiki_in_a_jar/trunk/public/skins/default/vcard/vcard.xsl
(if you have a GNU find and sed command on your system you can change all files in one step)
cd wiki-in-a-jar/Wiki_in_a_jar/trunk/public
find . \( -name "*.xsl" -o -name "*.xml" \) -exec sed -i '1,1 s/ISO-8859-1/UTF-8/g' {} \;
- change into directory wiki-in-a-jar/Wiki_in_a_jar/trunk and compile the project
regards
Frank
@@ -0,0 +1,25 @@
== Heading 2 ==
=== Heading 3 ===
==== Heading 4 ====
Some text.
* List item
** Another one
# Ordered list item
## More...
* [ ] open to do list item
* [!] important open to do list item
* [x] done to do list item
Simple, isn't it?
Always remember you're unique, just like everyone else.
----
* URL: http://wiki-in-a-jar.sourceforge.net/
* Wiki link: [[Main Page]]
* vCard link: [[vcard:Firstname Lastname]]
* Tags: [[tags: metawiki help]] (you can't see them here, but below)
= For more formatting see also =
* [[Help Formatting]]
* [[Help Tables]]
* [[Help Links]]
@@ -0,0 +1,26 @@
== Heading 2 ==
=== Heading 3 ===
==== Heading 4 ====
Some text.
* List item
** Another one
# Ordered list item
## More...
* [ ] open to do list item
* [!] important open to do list item
* [x] done to do list item
Simple, isn't it?
Always remember you're unique, just like everyone else.
----
* URL: http://wiki-in-a-jar.sourceforge.net/
* Wiki link: [[Main Page]]
* vCard link: [[vcard:Firstname Lastname]]
* Tags: [[tags: metawiki help]] (you can't see them here, but below)
=== For more formatting see also ===
* [[Help Formatting]]
* [[Help Tables]]
* [[Help Links]]
@@ -0,0 +1,22 @@
== Heading 2 ==
=== Heading 3 ===
==== Heading 4 ====
Some text.
* List item
** Another one
# Ordered list item
## More...
* [ ] open to do list item
* [!] important open to do list item
* [x] done to do list item
Simple, isn't it?
Always remember you're unique, just like everyone else.
----
* URL: http://wiki-in-a-jar.sourceforge.net/
* Wiki link: [[Main Page]]
* vCard link: [[vcard:Firstname Lastname]]
* Tags: [[tags: metawiki help]] (you can't see them here, but below)
@@ -0,0 +1,52 @@
The primary focus of '''More Wiki in a jar''' is simplicity. That's why everything is stored as plain text. This hopefully ensures that you will be able to read and modify your wiki pages in a time when Web 2.0 is only a distant memory and who knows, maybe even after Web 3.0 has passed?
Go take a look, it's all under: '''public/docs'''. That's the place you want to include in your regular backups (you do have regular backups, don't you?).
== How to... ==
=== ... create a new wiki page ===
* Just create a link to the new page from any other wiki page. If you click on a link to a page that does not exist, it will be created.
=== ... turn a wiki page into an event ===
* All you need to do is add the date of the format ''yyyy-mm-dd'' somewhere in the title
* Example page title:
** ''2007-03-12 Meeting minutes for sales meeting''
** ''Jim's Wedding 2007-06-23''
* The wiki article is then recognized as event (a calendar for that month is shown in the top right corner for that article)
=== ... create a new vCard contact ===
* Export your contact(s) from you favorite e-mail application to the ''vCard'' (.vcf) format and drop the files in ''public/docs/vcard''.
Note that you cannot create or modify contact information in the wiki. That's by design. Chances are high that you already have your contacts listed in multiple of other sources (such as e-mail clients). Imagine the confusion if you would start modifying your contacts in all of these places including the wiki. The idea is to keep (and update) your contacts in a single source and synchronize them with other locations, the wiki being one of them. However, if enough people wish for that feature, I might actually implement it.
==== the good news ====
You can still use wiki formatting in the notes section of you contacts. You can even create links between contacts and wiki pages.
=== ... link wiki pages with contacts and vice versa ===
* There are two different types of pages: wiki pages and contacts. To create links between pages of the same type you simply put the page name (for wiki pages) or vCard file name (usually first and last name) in two square brackets like this: [[Main Page]]
* To create links between the two types, add the type as a prefix, ''vcard:'' for contacts, ''wiki:'' for wiki pages like this: [[vcard:Firstname Lastname]]
=== ... add tags ===
* Remember how to add links? Adding tags is the same idea. Use ''tags:'' followed by a list of tags separated by comma or space surrounded by square brackets.
=== ... use tag trees ===
* That's so exiting, there is a separate page for this: [[Tag Trees]]
=== ... restore a page from the history ===
The wiki keeps up to 3 additional versions besides the current one for a wiki page. They are all stored in the same folder as the wiki pages: ''./public/docs/wiki''. Should you wish to revert to an older version, just remove the number from the file name of the version that you would like to restore.
=== ... use keyboard shortcuts ===
* The wiki uses so called ''access keys'' for most of the common links (home, index, edit, save, etc.). To determine the access key for a link, move the mouse over it and wait for a tooltip, it will show the access key (if there is any).
* Most browsers require you to press ''Alt'' in addition to the access key. So to use the access key for the search bar, ''f'', you would have to press ''Alt-f''.
** Note that the tooltip lists the ''Alt'' key, but this could vary depending on what browser you use.
=== ... search Google from the wiki ===
Yet another secret of the search bar:
* Start the query with a single dot and the search is redirected to Google.
* That allows for quick web searches even if the wiki is set as the browser's home page.
* You can use the access key '''f''' (for ''find'') to focus the search bar. Most browsers use the ''Alt'' key to activate an access key (e.g. ''Alt-f'' to activate the search bar).
=== See also ===
* [[Help Formatting]]
* [[Help Tables]]
* [[Help Links]]
[[tags: metawiki help]]
@@ -0,0 +1,53 @@
The primary focus of '''More Wiki in a jar''' is simplicity. That's why everything is stored as plain text. This hopefully ensures that you will be able to read and modify your wiki pages in a time when Web 2.0 is only a distant memory and who knows, maybe even after Web 3.0 has passed?
Go take a look, it's all under: '''public/docs'''. That's the place you want to include in your regular backups (you do have regular backups, don't you?).
== How to... ==
=== ... create a new wiki page ===
* Just create a link to the new page from any other wiki page. If you click on a link to a page that does not exist, it will be created.
=== ... turn a wiki page into an event ===
* All you need to do is add the date of the format ''yyyy-mm-dd'' somewhere in the title
* Example page title:
** ''2007-03-12 Meeting minutes for sales meeting''
** ''Jim's Wedding 2007-06-23''
* The wiki article is then recognized as event (a calendar for that month is shown in the top right corner for that article)
=== ... create a new vCard contact ===
* Export your contact(s) from you favorite e-mail application to the ''vCard'' (.vcf) format and drop the files in ''public/docs/vcard''.
Note that you cannot create or modify contact information in the wiki. That's by design. Chances are high that you already have your contacts listed in multiple of other sources (such as e-mail clients). Imagine the confusion if you would start modifying your contacts in all of these places including the wiki. The idea is to keep (and update) your contacts in a single source and synchronize them with other locations, the wiki being one of them. However, if enough people wish for that feature, I might actually implement it.
==== the good news ====
You can still use wiki formatting in the notes section of you contacts. You can even create links between contacts and wiki pages.
=== ... link wiki pages with contacts and vice versa ===
* There are two different types of pages: wiki pages and contacts. To create links between pages of the same type you simply put the page name (for wiki pages) or vCard file name (usually first and last name) in two square brackets like this: [[Main Page]]
* To create links between the two types, add the type as a prefix, ''vcard:'' for contacts, ''wiki:'' for wiki pages like this: [[vcard:Firstname Lastname]]
=== ... add tags ===
* Remember how to add links? Adding tags is the same idea. Use ''tags:'' followed by a list of tags separated by comma or space surrounded by square brackets.
=== ... use tag trees ===
* That's so exiting, there is a separate page for this: [[Tag Trees]]
=== ... restore a page from the history ===
The wiki keeps up to 3 additional versions besides the current one for a wiki page. They are all stored in the same folder as the wiki pages: ''./public/docs/wiki''. Should you wish to revert to an older version, just remove the number from the file name of the version that you would like to restore.
=== ... use keyboard shortcuts ===
* The wiki uses so called ''access keys'' for most of the common links (home, index, edit, save, etc.). To determine the access key for a link, move the mouse over it and wait for a tooltip, it will show the access key (if there is any).
* Most browsers require you to press ''Alt'' in addition to the access key. So to use the access key for the search bar, ''f'', you would have to press ''Alt-f''.
** Note that the tooltip lists the ''Alt'' key, but this could vary depending on what browser you use.
=== ... search Google from the wiki ===
Yet another secret of the search bar:
* Start the query with a single dot and the search is redirected to Google.
* That allows for quick web searches even if the wiki is set as the browser's home page.
* You can use the access key '''f''' (for ''find'') to focus the search bar. Most browsers use the ''Alt'' key to activate an access key (e.g. ''Alt-f'' to activate the search bar).
=== See also ===
* [[Help Formatting]]
* [[Help Tables]]
* [[Help Links]]
[[tags: metawiki help]]
@@ -0,0 +1,49 @@
The primary focus of '' More Wiki in a jar'' is simplicity. That's why everything is stored as plain text. This hopefully ensures that you will be able to read and modify your wiki pages in a time when Web 2.0 is only a distant memory and who knows, maybe even after Web 3.0 has passed?
Go take a look, it's all under: '''public/docs'''. That's the place you want to include in your regular backups (you do have regular backups, don't you?).
== How to... ==
=== ... create a new wiki page ===
* Just create a link to the new page from any other wiki page. If you click on a link to a page that does not exist, it will be created.
=== ... turn a wiki page into an event ===
* All you need to do is add the date of the format ''yyyy-mm-dd'' somewhere in the title
* Example page title:
** ''2007-03-12 Meeting minutes for sales meeting''
** ''Jim's Wedding 2007-06-23''
* The wiki article is then recognized as event (a calendar for that month is shown in the top right corner for that article)
=== ... create a new vCard contact ===
* Export your contact(s) from you favorite e-mail application to the ''vCard'' (.vcf) format and drop the files in ''public/docs/vcard''.
Note that you cannot create or modify contact information in the wiki. That's by design. Chances are high that you already have your contacts listed in multiple of other sources (such as e-mail clients). Imagine the confusion if you would start modifying your contacts in all of these places including the wiki. The idea is to keep (and update) your contacts in a single source and synchronize them with other locations, the wiki being one of them. However, if enough people wish for that feature, I might actually implement it.
==== the good news ====
You can still use wiki formatting in the notes section of you contacts. You can even create links between contacts and wiki pages.
=== ... link wiki pages with contacts and vice versa ===
* There are two different types of pages: wiki pages and contacts. To create links between pages of the same type you simply put the page name (for wiki pages) or vCard file name (usually first and last name) in two square brackets like this: [[Main Page]]
* To create links between the two types, add the type as a prefix, ''vcard:'' for contacts, ''wiki:'' for wiki pages like this: [[vcard:Firstname Lastname]]
=== ... add tags ===
* Remember how to add links? Adding tags is the same idea. Use ''tags:'' followed by a list of tags separated by comma or space surrounded by square brackets.
=== ... use tag trees ===
* That's so exiting, there is a separate page for this: [[Tag Trees]]
=== ... restore a page from the history ===
The wiki keeps up to 3 additional versions besides the current one for a wiki page. They are all stored in the same folder as the wiki pages: ''./public/docs/wiki''. Should you wish to revert to an older version, just remove the number from the file name of the version that you would like to restore.
=== ... use keyboard shortcuts ===
* The wiki uses so called ''access keys'' for most of the common links (home, index, edit, save, etc.). To determine the access key for a link, move the mouse over it and wait for a tooltip, it will show the access key (if there is any).
* Most browsers require you to press ''Alt'' in addition to the access key. So to use the access key for the search bar, ''f'', you would have to press ''Alt-f''.
** Note that the tooltip lists the ''Alt'' key, but this could vary depending on what browser you use.
=== ... search Google from the wiki ===
Yet another secret of the search bar:
* Start the query with a single dot and the search is redirected to Google.
* That allows for quick web searches even if the wiki is set as the browser's home page.
* You can use the access key '''f''' (for ''find'') to focus the search bar. Most browsers use the ''Alt'' key to activate an access key (e.g. ''Alt-f'' to activate the search bar).
[[tags: metawiki help]]
@@ -0,0 +1,15 @@
http://www.symantec.com/business/support/documentation.jsp?language=english&view=manuals&pid=15273
[http://www.symantec.com/business/support/documentation.jsp?language=english&view=manuals&pid=15273]
[http://www.symantec.com/business/support/documentation.jsp?language=english&view=manuals&pid=15273 bla]
=XML-Syntaxerror=
The rendering of the wiki page had an XML-Syntax error. Use the edit function to find the wiki syntax that created the error.
To localize the problem see SAX error message and stack trace. If you are not sure which element causes the error try to use <nowiki> tags to disable wiki formatting on some of the text parts.
If you are sure that the error is caused of an defect in the wiki renderer, then please go to http://morewikiinajar.sourceforge.net/ and use the bug reporting system.
----
@@ -0,0 +1,13 @@
http://www.symantec.com/business/support/documentation.jsp?language=english&view=manuals&pid=15273
=XML-Syntaxerror=
The rendering of the wiki page had an XML-Syntax error. Use the edit function to find the wiki syntax that created the error.
To localize the problem see SAX error message and stack trace. If you are not sure which element causes the error try to use <nowiki> tags to disable wiki formatting on some of the text parts.
If you are sure that the error is caused of an defect in the wiki renderer, then please go to http://morewikiinajar.sourceforge.net/ and use the bug reporting system.
----
@@ -0,0 +1,11 @@
=XML-Syntaxerror=
The rendering of the wiki page had an XML-Syntax error. Use the edit function to find the wiki syntax that created the error.
To localize the problem see SAX error message and stack trace. If you are not sure which element causes the error try to use <nowiki> tags to disable wiki formatting on some of the text parts.
If you are sure that the error is caused of an defect in the wiki renderer, then please go to http://morewikiinajar.sourceforge.net/ and use the bug reporting system.
----
@@ -0,0 +1,12 @@
=XML-Syntaxerror=
The rendering of the wiki page had an XML-Syntax error. Use the edit function to find the wiki syntax that created the error.
To localize the problem see SAX error message and stack trace. If you are not sure which element causes the error try to use <nowiki> tags to disable wiki formatting on some of the text parts.
If you are sure that the error is caused of an defect in the wiki renderer, then please go to http://morewikiinajar.sourceforge.net/ and use the bug reporting system.
---
@@ -0,0 +1,42 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="admin-page">
<ul>
<li>
<a href="/admin/shutdown" accesskey="s" title="Shutdown [Alt-s]">shutdown this wiki server</a>
</li>
<li>
<xsl:choose>
<xsl:when
test="only-local-connections/@value = 'yes'">
<a href="/admin/toggleconnections" accesskey="a" title="Allow [Alt-a]">
allow remote connections to this wiki server
</a>
</xsl:when>
<xsl:otherwise>
<a href="/admin/toggleconnections" accesskey="b" title="Block [Alt-b]">
block remote connections to this wiki server
</a>
</xsl:otherwise>
</xsl:choose>
</li>
</ul>
<p>&#160;</p>
<p>
If remote connections are allowed, everybody who knows the
host name and port of the machine that is running the wiki
server can connect to it. That is useful if you would like
access to your notes from other machines, but keep in mind
that other people have access as well.
</p>
<p>&#160;</p>
<p>
By default the wiki server is blocking all connections that
come from remote machines.
</p>
</xsl:template>
</xsl:stylesheet>
@@ -0,0 +1,6 @@
#calendar {
float: right;
padding-top: 10px;
padding-right: 10px;
text-align: center;
}
@@ -0,0 +1,135 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="calendar">
<div id="calendar">
<table id="month">
<caption>
<a title="Previous [Alt-p]" accesskey="p">
<xsl:attribute name="href">
<xsl:value-of select="month/@prevlink" />
</xsl:attribute>
&#171;
</a>
<xsl:value-of select="month/@name" />
&#160;
<xsl:value-of select="month/@year" />
<a title="Next [Alt-n]" accesskey="n">
<xsl:attribute name="href">
<xsl:value-of select="month/@nextlink" />
</xsl:attribute>
&#187;
</a>
</caption>
<tr>
<th>S</th>
<th>M</th>
<th>T</th>
<th>W</th>
<th>T</th>
<th>F</th>
<th>S</th>
</tr>
<xsl:apply-templates select="month/week" />
</table>
</div>
</xsl:template>
<xsl:template match="week">
<tr>
<xsl:for-each select="filler">
<td />
</xsl:for-each>
<xsl:for-each select="day">
<td>
<xsl:choose>
<xsl:when test="@eventlink">
<a>
<xsl:attribute name="href">
<xsl:value-of select="@eventlink" />
</xsl:attribute>
<xsl:value-of select="@dayofmonth" />
</a>
</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="@weekend = 'yes'">
<b>
<xsl:value-of
select="@dayofmonth" />
</b>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="@dayofmonth" />
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</td>
</xsl:for-each>
</tr>
</xsl:template>
<xsl:template match="events">
<xsl:apply-templates select="past" />
<xsl:apply-templates select="today" />
<xsl:apply-templates select="future" />
</xsl:template>
<xsl:template match="past">
<xsl:if test="count(event) &gt; 0">
<h2>Past Events</h2>
<ul>
<xsl:apply-templates select="event" />
</ul>
</xsl:if>
</xsl:template>
<xsl:template match="future">
<xsl:if test="count(event) &gt; 0">
<h2>Upcoming Events</h2>
<ul>
<xsl:apply-templates select="event" />
</ul>
</xsl:if>
</xsl:template>
<xsl:template match="today">
<xsl:if test="count(event) &gt; 0">
<h2>Today's Events</h2>
<ul>
<xsl:apply-templates select="event" />
</ul>
</xsl:if>
</xsl:template>
<xsl:template match="event">
<li>
<xsl:choose>
<xsl:when test="@isbirthday = 'true'">
<a>
<xsl:attribute name="href">
/vcard/show/
<xsl:value-of select="@id" />
</xsl:attribute>
<xsl:value-of select="@id" />
's birthday (
<xsl:value-of select="@date" />
)
</a>
</xsl:when>
<xsl:otherwise>
<a>
<xsl:attribute name="href">
/wiki/show/
<xsl:value-of select="@id" />
</xsl:attribute>
<xsl:value-of select="@id" />
</a>
</xsl:otherwise>
</xsl:choose>
</li>
</xsl:template>
</xsl:stylesheet>
Binary file not shown.

After

Width:  |  Height:  |  Size: 693 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 693 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 285 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 279 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 285 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 420 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 420 B

@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="error">
<h2>Error</h2>
<pre>
<xsl:value-of select="message" />
</pre>
</xsl:template>
</xsl:stylesheet>
@@ -0,0 +1,13 @@
#pretty_table {
margin:1em 1em 1em 0;
border:solid 1px #AAAAAA;
border-collapse:collapse;
empty-cells:show;
}
#content_table {
border:solid 1px;
cellspacing: 0;
cellpadding: 10
rules: none;
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 51 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

@@ -0,0 +1,94 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="main-menu">
<table cellspacing="0" cellpadding="0" border="0"
style="padding: 0; margin: 0; border: 0">
<tr>
<td width="5px">
<img src="/public/skins/default/common/ctl.png"
height="24" />
</td>
<td style="padding-left: 10px"></td>
<xsl:apply-templates select="home-menu-entry" />
<xsl:apply-templates select="main-menu-entry" />
<xsl:apply-templates select="article-menu" />
<td width="100%"></td>
<td>
<form method="GET" action="/find/pages/"
name="findform">
<div id="search-bar">
<input id="search-txt" type="text"
tabindex="0" name="query" accesskey="f" title="Find [Alt-f]" />
<input id="search-btn" type="submit"
value="" title="Find [Alt-f]" />
</div>
</form>
<script language="javascript">
<!--
document.findform.query.focus();
// -->
</script>
</td>
<td style="padding: 0; text-align: right">
<img src="/public/skins/default/common/ctr.png"
height="24" />
</td>
</tr>
</table>
</xsl:template>
<xsl:template match="article-menu">
<td>
<img src="/public/skins/default/common/left-corner.gif"
width="4" height="24" />
</td>
<td id="tab-selected">
<xsl:attribute name="bgcolor">#FFFFFF</xsl:attribute>
<xsl:value-of select="/page/article/id" />
</td>
<td>
<img src="/public/skins/default/common/right-corner.gif"
width="15" height="24" />
</td>
</xsl:template>
<xsl:template match="main-menu-entry">
<xsl:choose>
<xsl:when test="@selected = 'yes'">
<td>
<img
src="/public/skins/default/common/left-corner.gif" width="4"
height="24" />
</td>
<td id="tab-selected">
<xsl:value-of select="@value" />
</td>
<td>
<img
src="/public/skins/default/common/right-corner.gif" width="15"
height="24" />
</td>
</xsl:when>
<xsl:otherwise>
<td id="menu-entry">
<a style="color: #FFF; font-weight: bold; ">
<xsl:attribute name="href">
<xsl:value-of select="@link" />
</xsl:attribute>
<xsl:attribute name="title">
<xsl:value-of select="@title" />
</xsl:attribute>
<xsl:attribute name="accesskey">
<xsl:value-of select="@accesskey" />
</xsl:attribute>
<xsl:value-of select="@value" />
</a>
</td>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>
Binary file not shown.

After

Width:  |  Height:  |  Size: 88 B

@@ -0,0 +1,280 @@
body {
text-align: center;
margin: 0 0 40px 0;
padding: 0;
background-color: #EF8F00;
font-family: arial, sans-serif;
font-size: 9pt;
}
#header-content {
background-color: #2D4386;
}
#header-logo{
margin: 0 20px;
height: 45px;
color: #FFF;
vertical-align: middle;
}
#header-menu {
margin: 0 20px;
padding: 0;
height: 24px;
background-color: #5F76BC;
}
#main-menu table{
width: 100%;
height: 24px;
}
#menu-entry {
padding-left: 0.5em;
padding-right: 0.5em;
font-size: 9pt;
font-weight: bold;
}
#menu-entry span {
color: #FFF;
}
#tab-selected {
background-color: #FFF;
white-space: nowrap;
padding-left: 0.5em;
padding-right: 0.5em;
font-size: 9pt;
font-weight: bold;
}
#main-content {
background-color: #DBCFBD;
}
#sub-menu {
text-align: left;
margin: 0 20px;
padding: 0.2em 0;
border-bottom: 1px solid #DBCFBD;
background-color: #FFF;
font-size: 9pt;
font-weight: bold;
}
#selected-sub-menu {
color: GRAY;
}
#sub-menu span {
padding-left: 10px;
}
#content {
text-align: left;
margin: 0 20px;
padding: 0;
background-color: #FFF;
}
#inner {
padding: 1em;
text-align: left;
min-height: 400px;
}
p, h1, h2, h3, h4, h5, h6 {
margin: 0;
padding: 0;
}
ol, ul, li {
padding-top: 0;
}
#inner h1 {
font-size: 18pt;
font-weight: bold;
margin: 0 0 10px 0;
padding: 0;
color: #2D4386;
}
#inner h2 {
font-size: 15pt;
font-weight: bold;
margin: 1px 0 5px 0;
padding: 0;
color: #2D4386;
}
#inner h3 {
font-size: 12pt;
font-weight: bold;
margin: 10px 0 4px 0;
padding: 0;
color: #2D4386;
}
#inner h4 {
font-size: 10pt;
font-weight: bold;
margin: 10px 0 4px 0;
padding: 0;
color: #2D4386;
}
#inner h5 {
font-size: 8pt;
font-weight: bold;
margin: 10px 0 4px 0;
padding: 0;
color: #2D4386;
}
#inner h6 {
font-size: 6pt;
font-weight: bold;
margin: 10px 0 4px 0;
padding: 0;
color: #2D4386;
}
#tag-list {
border-top: 1px solid #DBCFBD;
padding: 0.2em 1em;
}
#footer-content {
}
#footer {
margin: 0 20px;
padding: 0;
height: 45px;
background-color: #EFBF77;
}
/****************************************/
#header-menu a {
text-decoration: none;
color: #000;
}
#header-menu a:visited {
text-decoration: none;
color: #000;
}
#sub-menu a {
text-decoration: none;
color: #000;
}
#sub-menu a:visited {
text-decoration: none;
color: #000;
}
#editlink {
color: #EF8F00;
}
a {
color: #5F76BC;
text-decoration: none;
font-weight: bold;
}
a:visited {
color: #5F76BC;
text-decoration: none;
font-weight: bold;
}
#intended {
font-size: 8pt;
}
/***************************************/
/* SEARCH BAR */
/***************************************/
#search-bar {
white-space: nowrap;
border: 1px solid GRAY;
background-color: #FFF;
height: 16px;
margin-right: 10px;
}
#search-btn {
border-width: 0px;
width: 25px;
height: 14px;
background: url(/public/skins/default/common/mag.png) no-repeat center;
}
#search-txt{
border-width: 0px;
margin: 2px 4px;
height: 12px;
font-size: 7pt;
}
form {
margin: 0; /* IE specific fix*/
padding: 0;
}
ul {
margin-top: 0;
margin-bottom: 0;
}
/* TODO LIST ITEMS */
#todo-done {
list-style-type: none;
background: url(/public/skins/default/common/cbx_x.gif) no-repeat left;
margin-left: 0;
padding-left: 15px;
text-decoration: line-through;
}
#todo-imp {
list-style-type: none;
background: url(/public/skins/default/common/cbx_imp.gif) no-repeat left;
margin-left: 0;
padding-left: 15px;
}
#todo-normal {
list-style-type: none;
background: url(/public/skins/default/common/cbx.gif) no-repeat left;
margin-left: 0;
padding-left: 15px;
}
@@ -0,0 +1,101 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output doctype-public="-//W3C//DTD XHTML 1.1//EN" />
<xsl:template match="/">
<html>
<head>
<link href="/public/skins/default/master.css"
rel="stylesheet" type="text/css" />
<title>
<xsl:choose>
<xsl:when test="/page/article/id">
<xsl:value-of select="/page/article/id" />
</xsl:when>
<xsl:otherwise>wiki in a jar</xsl:otherwise>
</xsl:choose>
</title>
</head>
<body>
<div id="header-content">
<div id="header-logo">
<br />
</div>
<div id="header-menu">
<xsl:apply-templates select="/page/main-menu" />
</div>
</div>
<div id="main-content">
<xsl:apply-templates select="/page/sub-menu" />
<div id="content">
<xsl:apply-templates
select="/page/article/calendar" />
<div id="inner">
<xsl:apply-templates
select="/page/article/show-article" />
<xsl:apply-templates
select="/page/article/edit-article" />
<xsl:apply-templates select="/page/error" />
<xsl:apply-templates
select="/page/article/tagtree" />
<xsl:apply-templates
select="/page/article/vcard" />
<xsl:apply-templates
select="/page/admin-page" />
<xsl:apply-templates
select="/page/article/events" />
</div>
<xsl:apply-templates
select="/page/article/tag-list" />
</div>
</div>
<div id="footer-content">
<div id="footer">
<table cellspacing="0" cellpadding="0"
border="0" style="padding: 0; margin: 0; border: 0">
<tr>
<td width="5px">
<img
src="/public/skins/default/common/cbl.png" height="45" />
</td>
<td style="padding-left: 10px"></td>
<td>
<a
style="color: #FFF;font-weight:bold;"
href="http://morewikiinajar.sourceforge.net/">
sourceforge.net
</a>
</td>
<td width="100%"
style="color: #FFF;font-size: xx-small;">
do good!
</td>
<!-- I know, the style stuff shouldn't be here, but this is to keep my sanity! -->
<td>
<a
style="color: #FFF;font-weight:bold;"
href="/wiki/show/About More Wiki in a Jar">
about
</a>
</td>
<td style="padding-left: 10px"></td>
<td
style="padding: 0; text-align: right">
<img
src="/public/skins/default/common/cbr.png" height="45" />
</td>
</tr>
</table>
</div>
</div>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
@@ -0,0 +1,50 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="sub-menu">
<div id="sub-menu">
<xsl:apply-templates select="edit-menu" />
<xsl:apply-templates select="sub-menu-entry" />
</div>
</xsl:template>
<xsl:template match="edit-menu">
<span>
<a accesskey="e" title="Edit [Alt-e]">
<xsl:attribute name="href">
/wiki/edit/
<xsl:value-of select="/page/article/id" />
</xsl:attribute>
<xsl:value-of select="." />
</a>
</span>
</xsl:template>
<xsl:template match="sub-menu-entry">
<xsl:choose>
<xsl:when test="@selected = 'yes'">
<span id="selected-sub-menu">
<xsl:value-of select="@value" />
</span>
</xsl:when>
<xsl:otherwise>
<span>
<a>
<xsl:attribute name="href">
<xsl:value-of select="@link" />
</xsl:attribute>
<xsl:attribute name="accesskey">
<xsl:value-of select="@accesskey" />
</xsl:attribute>
<xsl:attribute name="title">
<xsl:value-of select="@title" />
</xsl:attribute>
<xsl:value-of select="@value" />
</a>
</span>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="tag-list">
<xsl:if test="count(tag) &gt; 0">
<div id="tag-list">
tagged as
<xsl:for-each select="tag">
<a>
<xsl:attribute name="href">
/tag/tree/
<xsl:value-of select="." />
</xsl:attribute>
<xsl:value-of select="." />
</a>
&#160;
</xsl:for-each>
</div>
</xsl:if>
</xsl:template>
</xsl:stylesheet>
@@ -0,0 +1,9 @@
<h1><a name="XML-Syntaxerror">XML-Syntaxerror</a></h1>
<p>&#160;</p>
The rendering of the wiki page had an XML-Syntax error. Use the edit function to find the wiki syntax that created the error.
<p>&#160;</p>
To localize the problem see SAX error message and stack trace. If you are not sure which element causes the error try to use &lt;nowiki&gt; tags to disable wiki formatting on some of the text parts.
<p>&#160;</p>
If you are sure that the error is caused of an defect in the wiki renderer, then please go to <a href='http://morewikiinajar.sourceforge.net/'>http://morewikiinajar.sourceforge.net/</a> and use the bug reporting system.
<p>&#160;</p>
<hr/>
@@ -0,0 +1,8 @@
/* Master css file imports all sub level css files. */
@import 'common/root.css';
@import 'common/extraformat.css';
@import 'vcard/vcard.css';
@import 'tagtree/tagtree.css';
@import 'calendar/calendar.css';
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:include href="common/root.xsl" />
<xsl:include href="common/main-menu.xsl" />
<xsl:include href="common/sub-menu.xsl" />
<xsl:include href="common/tag-list.xsl" />
<xsl:include href="common/error.xsl" />
<xsl:include href="admin/admin-page.xsl" />
<xsl:include href="wiki/show-article.xsl" />
<xsl:include href="wiki/edit-article.xsl" />
<xsl:include href="vcard/vcard.xsl" />
<xsl:include href="tagtree/tagtree.xsl" />
<xsl:include href="calendar/calendar.xsl" />
</xsl:stylesheet>
Binary file not shown.

After

Width:  |  Height:  |  Size: 249 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 130 B

@@ -0,0 +1,8 @@
#tagtree-tag {
padding-left: 20px;
background: url(/public/skins/default/tagtree/folder.gif) no-repeat top left;
}
#tagtree-link {
padding-left: 15px;
background: url(/public/skins/default/tagtree/rarr.gif) no-repeat left;
}
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="tagtree">
<xsl:apply-templates select="tag" />
</xsl:template>
<xsl:template match="tag">
<div id="tagtree">
<div id="tagtree-tag">
<a>
<xsl:attribute name="href">
<xsl:value-of select="@link" />
</xsl:attribute>
<xsl:value-of select="@name" />
</a>
<xsl:apply-templates select="tag" />
<xsl:for-each select="taggable">
<div id="tagtree-link">
<a>
<xsl:attribute name="href">
<xsl:value-of select="@link" />
</xsl:attribute>
<xsl:value-of select="." />
</a>
</div>
</xsl:for-each>
</div>
</div>
</xsl:template>
</xsl:stylesheet>
@@ -0,0 +1,9 @@
#vcard td{
border-bottom: 1px solid gray;
border-right: 1px solid gray;
padding: 5px;
}
#vcard-proptype {
color: GRAY;
}
@@ -0,0 +1,48 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="vcard">
<h1>
<xsl:value-of select="../id" />
</h1>
<table id="vcard" cellspacing="7">
<xsl:for-each select="property">
<tr>
<td>
<xsl:value-of select="@name" />&#160;
<xsl:if test="count(type) > 0">
<span id="vcard-proptype">(<xsl:for-each select="type">
<xsl:value-of
select="normalize-space(.)" />&#160;
</xsl:for-each>)</span>
</xsl:if>
</td>
<td>
<xsl:value-of select="value" />
</td>
</tr>
</xsl:for-each>
<xsl:for-each select="formatted-property">
<tr>
<td>
<xsl:value-of select="@name" />&#160;
<xsl:if test="count(type) > 0">
<span id="vcard-proptype">(<xsl:for-each select="type">
<xsl:value-of
select="normalize-space(.)" />&#160;
</xsl:for-each>)</span>
</xsl:if>
</td>
<td>
<xsl:copy-of select="value" />
</td>
</tr>
</xsl:for-each>
</table>
</xsl:template>
</xsl:stylesheet>
@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="edit-article">
<h1>
Edit:
<xsl:value-of select="normalize-space(/page/article/id)" />
</h1>
<a href="/wiki/show/Help+Formatting"
onclick="javascript:w = window.open('/wiki/show/Help+Formatting','formattinghelp', config='height=300,width=800, toolbar=no, menubar=no, scrollbars=yes, resizable=yes, location=no, directories=no, status=no'); w.focus();return false;">
Formatting help
</a>
<form method="POST" name="editform">
<xsl:attribute name="action">
/wiki/save/
<xsl:value-of
select="normalize-space(editfield/content-id)" />
</xsl:attribute>
<textarea name="article-content" rows="20" cols="80">
<xsl:value-of select="editfield/content" />
</textarea>
<input type="hidden" name="article-name">
<xsl:attribute name="value">
<xsl:value-of
select="normalize-space(editfield/content-id)" />
</xsl:attribute>
</input>
<input type="submit" value="Save" accesskey="s"
title="Save [Alt-s]" />
<script language="javascript">
<!--
document.editform.article-content.focus();
// -->
</script>
</form>
</xsl:template>
</xsl:stylesheet>
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="show-article">
<h1>
<xsl:value-of select="normalize-space(/page/article/id)" />
</h1>
<!-- just copy everything as it is expected to be HTML -->
<xsl:copy-of select="content/*" />
</xsl:template>
</xsl:stylesheet>
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="/public/skins/default/master.xsl"?>
<page>
<main-menu>
<main-menu-entry selected="no" value="home" link="/wiki" accesskey="h" title="Home [Alt-h]"/>
<main-menu-entry selected="no" value="index" link="/index/wiki" accesskey="i" title="Index [Alt-i]"/>
<main-menu-entry selected="no" value="calendar" link="/calendar" accesskey="c" title="Calendar [Alt-c]"/>
<main-menu-entry selected="yes" value="admin"/>
</main-menu>
@content@
<footer />
</page>
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="/public/skins/default/master.xsl"?>
<page>
<main-menu>
<main-menu-entry selected="no" value="home" link="/wiki" accesskey="h" title="Home [Alt-h]"/>
<main-menu-entry selected="no" value="index" link="/index/wiki" accesskey="i" title="Index [Alt-i]"/>
<article-menu />
</main-menu>
@content@
<footer />
</page>
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="/public/skins/default/master.xsl"?>
<page>
<main-menu>
<main-menu-entry selected="no" value="home" link="/wiki" accesskey="h" title="Home [Alt-h]" />
<main-menu-entry selected="no" value="index" link="/index/wiki" accesskey="i" title="Index [Alt-i]"/>
<main-menu-entry selected="no" value="calendar" link="/calendar" accesskey="c" title="Calendar [Alt-c]"/>
</main-menu>
@content@
<footer />
</page>
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="/public/skins/default/master.xsl"?>
<page>
<main-menu>
<main-menu-entry selected="no" value="home" link="/wiki" accesskey="h" title="Home [Alt-h]"/>
<main-menu-entry selected="no" value="index" link="/index/wiki" accesskey="i" title="Index [Alt-i]"/>
<main-menu-entry selected="no" value="calendar" link="/calendar" accesskey="c" title="Calendar [Alt-c]"/>
<article-menu />
</main-menu>
@content@
<footer />
</page>
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="/public/skins/default/master.xsl"?>
<page>
<main-menu>
<main-menu-entry selected="no" value="home" link="/wiki" accesskey="h" title="Home [Alt-h]"/>
<main-menu-entry selected="yes" value="index"/>
<main-menu-entry selected="no" value="calendar" link="/calendar" accesskey="c" title="Calendar [Alt-c]"/>
</main-menu>
<sub-menu>
<sub-menu-entry selected="no" value="wiki" link="/index/wiki" accesskey="w" title="wiki [Alt-w]"/>
<sub-menu-entry selected="no" value="vcard" link="/index/vcard" accesskey="v" title="vcard [Alt-v]"/>
<sub-menu-entry selected="yes" value="all"/>
</sub-menu>
@content@
<footer />
</page>

Some files were not shown because too many files have changed in this diff Show More