Difference between revisions of "Sand Box"

From Lazarus wiki
Jump to navigationJump to search
(41 intermediate revisions by 8 users not shown)
Line 1: Line 1:
 
{{Sand Box}}
 
{{Sand Box}}
  
=Heading=
+
{{Tip|You may find the narrated video below on How To Edit a Wiki Page useful.}}
----
 
==Append==
 
  
<syntaxhighlight> Program Test;
+
[https://www.youtube.com/watch?v=C7yXx3YbcNI Narrated Video]
 +
 
 +
{{Warning|Please do not delete this or anything above it. Thanks!}}
 +
 
 +
 
 +
=Append=
 +
 
 +
<syntaxhighlight lang="pascal"> Program Test;
 
  Uses Crt;
 
  Uses Crt;
  
Line 13: Line 18:
 
   For I := 0 to 12 do
 
   For I := 0 to 12 do
 
     WriteLn('Test ',I:2);
 
     WriteLn('Test ',I:2);
  End.</syntaxhighlight>
+
  End.
 +
</syntaxhighlight>
  
--[[User:Ggeldenhuys|Graeme]] 11:03, 23 March 2012 (UTC) The DELPHI style doesn't seem to be supported, so we have to use the SOURCE tag instead.
 
  
 
===Sayonara===
 
===Sayonara===
Line 22: Line 27:
  
 
How to use an internal link: [[#indenting first line|indent first line]].
 
How to use an internal link: [[#indenting first line|indent first line]].
 +
<inputbox>
 +
type=create
 +
width=100
 +
break=no
 +
buttonlabel=Create new article
 +
default=(Article title)
 +
</inputbox>
  
 
==Append 2==
 
==Append 2==
 +
Pascal syntax highlighting example:
  
<syntaxhighlight>
+
<syntaxhighlight lang="pascal">
  
 
  // this is the same code as above
 
  // this is the same code as above
Line 37: Line 50:
 
   For I := 0 to 12 do
 
   For I := 0 to 12 do
 
     WriteLn('Test ',I:2);
 
     WriteLn('Test ',I:2);
  End.</syntaxhighlight>
+
  End.
 +
</syntaxhighlight>
 +
 
 +
Terminal code (BASH) example:
 +
 
 +
<syntaxhighlight lang="bash">
 +
// BASH example
 +
$ ls myfiles*
 +
$ mkdir newDir
 +
$ clear
 +
</syntaxhighlight>
  
 
==External link==
 
==External link==
 +
 
External link: [http://www.example.com link title]
 
External link: [http://www.example.com link title]
<br>another link: [http://www.example.com link title]
 
  
<div class="floatright"> [[Image:Laz de menu bearb2.jpg]] </div>
+
another link: [http://www.example.com link title]
 +
 
 +
Protocol-relative link: [//www.freepascal.org/docs-html/current/ref/refch5.html Chapter 5]
 +
 
 +
==An image==
 +
 
 +
<div class="floatright"> [[Image:Lazaruscomponenttab_01.png]] </div>
  
 +
This text should be placed near the picture, does it? zxvzxcv zxvc xcv xzcv zxcv zxvc zxvc zxcv zxcv zxcv zxcv xcv xcv xcv xcv zxcv zxcv zxcv xcv zxcv zxcv aaaaaaaaaaaaa
  
 +
'''And this line were is going?'''  and this line?
  
==a image==
 
This text should be placed near the picture, does it? zxvzxcv zxvc xcv xzcv zxcv zxvc zxvc zxcv zxcv zxcv zxcv xcv xcv xcv xcv zxcv zxcv zxcv xcv zxcv zxcv aaaaaaaaaaaaa<br>
 
<b>And this line were is going?</b>  and this line?<br>
 
 
==a text==
 
==a text==
 
This is the text
 
This is the text
Line 55: Line 83:
 
==new section test==
 
==new section test==
  
==Table 2==
+
==Table markup (wrong) ==
 +
 
 
<TABLE WIDTH="90%" CELLPADDING="1" CELLSPACING="1">
 
<TABLE WIDTH="90%" CELLPADDING="1" CELLSPACING="1">
 
<TR>  
 
<TR>  
Line 76: Line 105:
 
</TR>  
 
</TR>  
 
</TABLE>
 
</TABLE>
 +
 +
== Wiki table markup (correct)==
 +
 +
{| class=wikitable
 +
|+ Table 2
 +
! Header 1 !! Header 2 !! Header 3 !! Header 4
 +
|-
 +
| Item 1,1 || Item 1,2 || Item 1,3 || Item 1,4
 +
|-
 +
| Item 2,1 || Item 2,2 || Item 2,3 || Item 2,4
 +
|}
 +
 +
{| class="wikitable"
 +
!colspan="6"|Shopping List
 +
|-
 +
|rowspan="2"|Bread & Butter
 +
|Pie
 +
|Buns
 +
|Danish
 +
|colspan="2"|Croissant
 +
|-
 +
|Cheese
 +
|colspan="2"|Ice cream
 +
|Butter
 +
|Yogurt
 +
|}
  
 
==Bullets==
 
==Bullets==
Line 151: Line 206:
  
 
==Tutorial links==
 
==Tutorial links==
[http://www.chat11.com/30_Second_Quick_Wiki_Tutorial 30 Second Quick Wiki Tutorial]
+
30_Second_Quick_Wiki_Tutorial 30 Second Quick Wiki Tutorial   scam link removed
  
 
*[[LazAutoUpdater#Use|Using LazAutoUpdate CodeSnippet]]
 
*[[LazAutoUpdater#Use|Using LazAutoUpdate CodeSnippet]]

Revision as of 23:57, 1 February 2021

Deutsch (de) English (en) español (es) Bahasa Indonesia (id) italiano (it) 日本語 (ja) polski (pl) русский (ru) slovenčina (sk) 中文(中国大陆)‎ (zh_CN)

Note-icon.png

Tip: You may find the narrated video below on How To Edit a Wiki Page useful.

Narrated Video

Warning-icon.png

Warning: Please do not delete this or anything above it. Thanks!


Append

 Program Test;
 Uses Crt;

 Var I : Integer;

 Begin
   For I := 0 to 12 do
     WriteLn('Test ',I:2);
 End.


Sayonara

Test O

How to use an internal link: indent first line.

Append 2

Pascal syntax highlighting example:

 // this is the same code as above

 Program Test;
 Uses Crt;

 Var I : Integer;

 Begin
   For I := 0 to 12 do
     WriteLn('Test ',I:2);
 End.

Terminal code (BASH) example:

 // BASH example
 $ ls myfiles*
 $ mkdir newDir
 $ clear

External link

External link: link title

another link: link title

Protocol-relative link: Chapter 5

An image

Lazaruscomponenttab 01.png

This text should be placed near the picture, does it? zxvzxcv zxvc xcv xzcv zxcv zxvc zxvc zxcv zxcv zxcv zxcv xcv xcv xcv xcv zxcv zxcv zxcv xcv zxcv zxcv aaaaaaaaaaaaa

And this line were is going? and this line?

a text

This is the text

new section test

Table markup (wrong)

Header 1 Header 2 Header 3 Header 4
Item 1,1 Item 1,2 Item 1,3 Item 1,4
Item 2,1 Item 2,2 Item 2,3 Item 2,4

Wiki table markup (correct)

Table 2
Header 1 Header 2 Header 3 Header 4
Item 1,1 Item 1,2 Item 1,3 Item 1,4
Item 2,1 Item 2,2 Item 2,3 Item 2,4
Shopping List
Bread & Butter Pie Buns Danish Croissant
Cheese Ice cream Butter Yogurt

Bullets

  • One
  • Two
    • Tree

Numbering

  1. First
  2. Second
  3. Third

Nested Numbering

  1. First
    1. first.one
    2. first.two
    3. first.three
  2. Second
    1. second.one
    2. second.two
    3. second.three

Mixed Numbering

  1. First
    • first.one
    • first.two
    • first.three
  2. Second
    • second.one
    • second.two
    • second.three

indenting first line

      Please note that all contributions to Lazarus-ccr are considered to be released under the GNU Free Documentation License (see Lazarus-ccr:Copyrights for details). If you don't want your writing to be edited mercilessly and redistributed at will, then don't submit it here.

You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. DO NOT SUBMIT COPYRIGHTED WORK WITHOUT PERMISSION!

TEST


Another Test: lets go crazy

I want to create a boxed text:

This is in a box, or so I hope.

This is outside the box, no? And this is a reference to my incomplete Structural Analyis book ThisIsMyShura

Weird: this is in the box as well?
  • And a bullet in italics?

non formatted...

Humm

{{#categorytree:Foo}} <categorytree>

Float Like A Butterfly

New section?

Let's see... ok

grusskarte

if Graphviz was installed, this would draw a pretty graph...

<graphviz> digraph G {

 rankdir=LR; node [fontsize = "8" shape = "rectangle"]; 
 "Node 1" -> "Node 2";

} </graphviz>

This is a test to see, if I can edit a page after the Bad-Behavior update. fpcfan 22:43, 7 December 2007 (CET)

Tutorial links

30_Second_Quick_Wiki_Tutorial 30 Second Quick Wiki Tutorial scam link removed

Use this syntax to include a page within another page: {{:LazAutoUpdater}}

Clipboard commands with selections

Clipboard-related commands work with carets, both with selections and without them. Some details about this:

Command Behaviour, when there're no selections Behaviour, when at last one selection present
Copy to clipboard Copies entire lines, containing carets. (Ignores multiple carets on same line.) Copies only selections text. (Ignores carets without selections.)
Paste from clipboard First, selections are cleared (deleted). Then, command pastes text into each caret position. Special case is when clipboard lines count equals to carets count - in this case, first line is inserted at first caret, second line is inserted at 2nd caret, etc.