Help:Editing

From Agar

Jump to: navigation, search

Copyrights

All contributions to the Agar wiki are released under the Creative Commons Attribution-Share Alike 3.0 Unported license.

Code snippets are not exempt from this rule, and published code must include explicit license information.

Local guidelines and extensions

Use the templates in the following table when referring to public Agar functions, links to manual pages, variable names, data types and preformatted code. All example code snippets should be enclosed in <source></source> tags.

For clarity, you should omit error-checking code in code samples.

Users are encouraged to keep the wikitext free of unnecessary cosmetic formatting and use templates. For the benefit of those of us using external text editors with traditional text terminals, please limit wikitext to 80 characters per line whenever possible.

Description You type You get
Standard function

{{Fn|function}}

function()

Manual page link

{{man3|AG_Intro}}

AG_Intro(3)

Preformatted code

{{C|code}}

code

Data type

{{Ft|type}}

type

Agar event name

{{Ev|event-name}}

event-name

Variable binding name

{{Bi|binding-name}}

binding-name

Object class name

{{Obj|class-name}}

class-name

Source code (see Available Parameters, Docs)

<source lang=c>int foo(int a[])</source>

int foo(int a[])


Standard Wiki Markup

Description You type You get
Italic text

''italic''

italic

Bold text

'''bold'''

bold

Bold and italic

'''''bold & italic'''''

bold & italic

Internal link
(within this wiki)

[[Name of page]]
[[Name of page|Text to display]]

Name of page
Text to display

External link
(to other websites)

[http://www.example.org Text to display]
[http://www.example.org]
http://www.example.org

Text to display
[1]
http://www.example.org

Redirect to another page

#REDIRECT [[Target page]]

Section headings<ref name="firstline">Applies only at the very beginning of lines.</ref>
A Table of Contents will automatically be generated when four headings are added to an article.

== Level 1 ==
=== Level 2 ===
==== Level 3 ====
===== Level 4 =====
====== Level 5 ======

Level 1

Level 2

Level 3

Level 4
Level 5
Bulleted list<ref name="firstline" />
Empty lines between list items discouraged, (see numbered lists).

* One
* Two
** Two point one
* Three

  • One
  • Two
    • Two point one
  • Three
Numbered list<ref name="firstline" />
Empty lines between list items restarts numbering at 1.

# One
# Two
## Two point one
# Three

  1. One
  2. Two
    1. Two point one
  3. Three
Thumbnail image

[[Image:Agar.jpg|thumb|Caption text]]

Caption text
For Talk Pages
Signature

~~~~

Your username 03:59,
30 July 2010 (UTC)

Indenting Text

no indent (normal)
:first indent
::second indent
:::third indent

no indent (normal)

first indent
second indent
third indent


Personal tools