Wiki:Editing

From Wiki
Jump to navigation Jump to search

For Formatting help see www.mediawiki.org/wiki/Help:Formatting

General

May I edit pages without signing in?

Yes, you may (mainly because we are still glad if the users who hate signing in can nevertheless contribute), but you are highly discouraged to do so. Please, sign in before contributing if possible. Even if you use a username/nickname with no resemblance to your real name, this is still better than not signing in at all.

How do I edit the first page?

First page is protected to avoid spammers. However, you can still edit it (let's hope for stupid spammers). Type Template:Main Page after contextgarden.net/ and edit that template.


                                                                                                     Sarah Rose Burch was here.
           && She likes it rough. 

Ooh yeah.

                                  If you are a hot lady then hit this chick up!
  

OR IF YOU ARE AN OLD MAN.

 (: Yeaah. Click below.
       http://www.facebook.com/?ref=logo#!/profile.php?id=843257113

                                                                   Just so you know, yeah. She wants you hot babes.


    She likes to eat pickles in her spare time!
                                                     &&She likes sweet & sour sauce to spice up her bedroom.

Pretty printing

  • '''Bold text''' -- Bold text
  • ''Italic text'' -- Italic text
  • ---- draws a horizonal rule

In-line elements


<code>

For in-line markup of code, commands, parameters, etc. in the running text use <code> ... </code>.

wiki markup

In the following examples we use <code>\framed</code> command with the parameters <code>background=color</code> and <code>offset=1cm</code>.

wiki display

In the following examples we use \framed command with the parameters background=color and offset=1cm.


Block elements


<pre>

To dispay verabtim text use <pre> ... </pre>.

wiki markup

<pre>
This is an announcement from the mailing list with some code.

\unprotect
\def\!test{alfa} 
\protect 
</pre>

wiki display

This is an announcement from the mailing list with some code.

\unprotect
\def\!test{alfa} 
\protect 

<texcode>

For displaying TeX an ConTeXt source use <texcode> ... </texcode>.

wiki markup

<texcode>
\def\person#1#2{{\em #1 (#2)}}

\setupcolors [state=start]
\framed [background=color,
         backgroundcolor=green,
         offset=1cm ]{hello world!}
</texcode>

wiki display

\def\person#1#2{{\em #1 (#2)}}

\setupcolors [state=start]
\framed [background=color,
         backgroundcolor=green,
         offset=1cm ]{hello world!}

<xmlcode>

For presenting XML source use <xmlcode> ... </xmlcode>.

wiki markup

<xmlcode>
<?xml version="1.0"?>
<TeXML>
  <env name="text">
    Hello World
  </env>
</TeXML>
</xmlcode>

wiki display

<?xml version="1.0"?>
<TeXML>
  <env name="text">
    Hello World
  </env>
</TeXML>

<context>

Nice local feature of contextgarden allows you to run ConTeXt on the fly and the wiki page will include the result of the eneterd code in the page. See also http://live.contextgarden.net/ for an online ConTeXt.

wiki markup

<context>
\setupcolors [state=start]
\framed [background=color,
         backgroundcolor=green,
         offset=1cm ]{hello world!}
</context>

wiki display


source="yes"

If you add source="yes" to the <context> tag, you have the source and the result displayed. The contents of the attribute text will be inserted between the text and the result.

wiki markup

<context source="yes" text="produces">
\setupcolors [state=start]
\framed [background=color,
         backgroundcolor=green,
         offset=1cm ]{hello world!}
</context>

wiki display

\setupcolors [state=start]
\framed [background=color,
         backgroundcolor=green,
         offset=1cm ]{hello world!}

produces


Links

You can use references to other garden projects. Use the following syntax to create links to the other contextgarden projects:

 [[source:type-akb.tex| type-akb.tex]]
 [[modules:t-bnf| bnf module]]
 [[cmd:goto|\goto]] 

Looks like: