Difference between revisions of "Help:Editing"

From wiki.visual-prolog.com

(Token coloring)
 
(Editing help)
Line 1: Line 1:
=== Visual Prolog Token Coloring ===
<div align="center">
<!--COMMENT MARKUP. Displays:Edit mode only.-->
{|align="center" style="width:100%; border:2px #a3b1bf solid; background:#f5faff; text-align:left;"
|colspan="3" align="center" style="background:#cee0f2; text-align:center;" |
<h2 style="margin:.5em; margin-top:.1em; margin-bottom:.1em; border-bottom:0; font-weight:bold;">Editing Cheatsheet</h2>
<h4>For more details, see [[Help:How to edit a page|How to edit a page]]</h4>
|-<!--COLUMN HEADINGS-->
| width="25%" style="background:#cee0f2; padding:0.3em; text-align:center;"|'''Description'''
| style="background:#cee0f2; padding:0.3em; text-align:center;"|'''You type'''
| width="25%" style="background:#cee0f2; padding:0.3em; text-align:center;"|'''You get'''
|-<!--1ST HEADING-->
| colspan="3" style="background:#E6F2FF; padding: 0.2em; font-family: sans-serif; font-size: 0.9em; text-align:center;" | Applies anywhere
|-<!--1ST ROW 1ST COLUMN-->
|[[Help:How_to_edit_a_page#Character_formatting|Italicise text]]
|<!--2ND COLUMN-->
<tt><nowiki>''italic''</nowiki></tt>
|<!--3RD COLUMN-->
''italic''
|-<!--HORIZONTAL LINE-->
|colspan="3" style="border-top:1px solid #cee0f2;"|
|-<!--2ND ROW 1ST COLUMN-->
|[[Help:How_to_edit_a_page#Character_formatting|Bold text]]
|
<tt><nowiki>'''bold'''</nowiki></tt>
|
'''bold'''
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
|-
|[[Help:How_to_edit_a_page#Character_formatting|Bold and italic]]
|
<tt><nowiki>'''''bold & italic'''''</nowiki></tt>
|
'''''bold & italic'''''
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
|-
||[[Help:How_to_edit_a_page#Links_and_URLs|Internal link]]<br />
(within Visual Prolog Wiki)
|
<tt><nowiki>[[Name of page]]</nowiki></tt><br />
<tt><nowiki>[[Name of page|display text]]</nowiki></tt><br />
|
[[Name of page]]<br />
[[Name of page|display text]]<br />
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
|-
|[[Help:How_to_edit_a_page#Links_and_URLs|Redirect to another page]]
|
<tt><nowiki>#REDIRECT [[Target page]]</nowiki></tt>
|
<big>&#8627;</big> [[Target page]]
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
|-
|[[Help:How_to_edit_a_page#Links_and_URLs|External link]]<br />
(to other websites)
|
<tt><nowiki>[http://www.example.org]</nowiki></tt><br />
<tt><nowiki>[http://www.example.org display text]</nowiki></tt><br />
<tt><nowiki>http://www.example.org</nowiki></tt>
|
[http://www.example.org]<br />
[http://www.example.org display text]<br />
http://www.example.org
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
|-
|
Sign your posts <br />
on talk pages
|
<tt><nowiki>~~~~</nowiki></tt>
|
[[Special:Mypage|Your username]] {{CURRENTTIME}}, <br />
{{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} (UTC)
|-<!--2ND HEADING-->
| colspan="3" style="background:#E6F2FF; padding: 0.2em; font-family: sans-serif; font-size: 0.9em; text-align:center;" | Applies only at the beginning of the line
|-
|Headings<br />
<span style="font-size:0.9em;">''A Table of Contents will automatically be generated when four headings are added to an article.''</span>
|
<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>
|
== Level 1 ==
=== Level 2 ===
==== Level 3 ====
===== Level 4 =====
====== Level 5 ======
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
|-
|[[Help:List|Bulleted list]]
|
<tt>* One</tt><br />
<tt>* Two</tt><br />
<tt>** Two point one</tt><br />
<tt>* Three</tt>
|
* One
* Two
** Two point one
* Three
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
|-
|[[Help:List|Numbered list]]
|
<tt># One</tt><br />
<tt># Two</tt><br />
<tt>## Two point one</tt><br />
<tt># Three</tt>
|
# One
# Two
## Two point one
# Three
|}
</div>


The Wiki has a special Visual Prolog extension.  If you write:
__NOTOC__ __NOEDITSECTION__
 
<nowiki><vip></nowiki>some Visual Prolog code</vip>
 
The code will be token colered according to Visual Prolog rules (more or less).  For example:
 
<nowiki><vip>predicates
    isMember : (Elem Value, Elem* List) determ.
    %@short Succeds is #Value is member of #List.
    %@end
clauses
    isMember(V, [V|_L]) :- !.
    isMember(V, [_X|L]) :- isMember(V, L).</vip></nowiki>
 
The result will look like this:
 
<vip>predicates
    isMember : (Elem Value, Elem* List) determ.
    %@short Succeds is #Value is member of #List.
    %@end
clauses
    isMember(V, [V|_L]) :- !.
    isMember(V, [_X|L]) :- isMember(V, L).</vip>

Revision as of 23:06, 27 August 2007

Editing Cheatsheet

For more details, see How to edit a page

Description You type You get
Applies anywhere
Italicise text

''italic''

italic

Bold text

'''bold'''

bold

Bold and italic

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

bold & italic

Internal link

(within Visual Prolog Wiki)

[[Name of page]]
[[Name of page|display text]]

Name of page
display text

Redirect to another page

#REDIRECT [[Target page]]

Target page

External link

(to other websites)

[http://www.example.org]
[http://www.example.org display text]
http://www.example.org

[1]
display text
http://www.example.org

Sign your posts
on talk pages

~~~~

Your username 08:25,
4 May 2024 (UTC)

Applies only at the beginning of the line
Headings

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

* One
* Two
** Two point one
* Three

  • One
  • Two
    • Two point one
  • Three
Numbered list

# One
# Two
## Two point one
# Three

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