Jump to content

User:Artbarte/sandbox

From Wikipedia, the free encyclopedia

This is my personal Sandbox

Task 1

[edit]

Lightning 7.11.2008.jpg

imgs

Task 2

[edit]

Q1. Which letter is conventionally used in Scribunto modules to hold the table of functions? A1. p

Q2. What keyword marks the start of a function definition? A2. function

Q3. What keyword marks the end of a function definition? A3. end

Hello from Lua to my friend Andy.
Hello from Lua to my friend Bartek.
Hello from Lua to my friend Jimbo.

Task 3

[edit]

5 degrees Celsius is 41 degrees Fahrenheit. It is cold.
0 degrees Celsius is 32 degrees Fahrenheit. It is cold.

-25 degrees Celsius is -13 degrees Fahrenheit. It is cold.
90 degrees Celsius is 194 degrees Fahrenheit. It is warm.
9 degrees Celsius is 48.2 degrees Fahrenheit. It is cold.

{{#invoke:Sandbox/Artbarte|temperature|celsius=}} → 0 degrees Celsius is 32 degrees Fahrenheit. It is cold.

Task 4

[edit]

6 times table
6 times 1 equals 6
6 times 2 equals 12
6 times 3 equals 18
6 times 4 equals 24
6 times 5 equals 30
6 times 6 equals 36
6 times 7 equals 42
6 times 8 equals 48
6 times 9 equals 54
6 times 10 equals 60
6 times 11 equals 66
6 times 12 equals 72

2 times table
2 times 1 equals 2
2 times 2 equals 4
2 times 3 equals 6
2 times 4 equals 8
2 times 5 equals 10
2 times 6 equals 12
2 times 7 equals 14
2 times 8 equals 16
2 times 9 equals 18
2 times 10 equals 20
2 times 11 equals 22
2 times 12 equals 24
2 times table
2 times 1 equals 2
2 times 2 equals 4
2 times 3 equals 6
2 times 4 equals 8
2 times 5 equals 10
2 times 6 equals 12
2 times 7 equals 14
2 times 8 equals 16
2 times 9 equals 18
2 times 10 equals 20
2 times 11 equals 22
2 times 12 equals 24
2 times table
2 times 1 equals 2
2 times 2 equals 4
2 times 3 equals 6
2 times 4 equals 8
2 times 5 equals 10
2 times 6 equals 12
2 times 7 equals 14
2 times 8 equals 16
2 times 9 equals 18
2 times 10 equals 20
2 times 11 equals 22
2 times 12 equals 24
-6 times table
-6 times 1 equals -6
-6 times 2 equals -12
-6 times 3 equals -18
-6 times 4 equals -24
-6 times 5 equals -30
-6 times 6 equals -36
-6 times 7 equals -42
-6 times 8 equals -48
-6 times 9 equals -54
-6 times 10 equals -60
-6 times 11 equals -66
-6 times 12 equals -72

Tables

[edit]

Hello Dad
Hello Mum
Hello Uncle Stan
Hello Aunty Elsie
Hello Brian
Hello Tom
Hello Jerry
Hello Amelia

Task 5

[edit]

This is easy.

Q1. What does %d+ match in a Lua pattern? A1. This pattern will match one or more digits

Q2. What does %w+ match in a Lua pattern? A2. This pattern will match one or more ASCII alphanumeric characters

Year = 2018
Day = 31
Month = October

"(%w+) (%d+), (%d+)"

Task 6

[edit]

{ {#invoke:Sandbox/Artbarte|langnames}}

Fallback language codes for sk :
cs
en
Fallback language codes for bh :
bho
en
Fallback language codes for ii :
zh-cn
zh-hans
zh
zh-hant
en

Fallback language codes for zz :
en

Pageinfo

[edit]

Extension:Scribunto/Lua reference manual

Color exists and is not a redirect

Colour exists and is a redirect

Colr does not exist and is not a redirect

Title exists and is not a redirect

Provided title is invalid

Provided title is invalid

Lua error in Module:Sandbox/Artbarte at line 97: attempt to index local 'ttlobj' (a nil value).