User:N3rsti/sandbox

I'm n3rsti and this is my wikipedia sandbox page.

Task 1


imgs

Task 2
Q1. What keyword marks the start of a function definition? A1. function

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

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

Task 5
Q1. What does %w+ match in a Lua pattern?

A1. ASCII alphanumeric characters matching 1 or more repetitions. In function unpack it matches month, because it's a word not a number.

Q2. What does %d+ match in a Lua pattern?

A2. All digits matching 1 or more repetitions. In function unpack it matches year and day, because they are numbers.

Pageinfo
title=<

title=""""":

title=":

title=""":

title= :

no parameter:

Invalid parameters (Testing only getdate because getfulldate has the same if statements for error handling)
Invalid parameter:

Blank string in both parameters:

Blank string in one parameter:

Invalid parameter - date of alive person's death (Q317521, P570):

Invalid parameter - manner of death P1196 or any different parameter not using date (pattern won't work because it will return ID not date):

Get date
Date of birth of Douglas Adams (Q42, P569):

Date of birth of Richard Burton (Q151973, P569):

Date of death of Elizabeth Taylor (Q34851, P570):

Get full date
Full date of birth of Douglas Adams (Q42, P569):

Full date of birth of Richard Burton (Q151973, P569):

Full date of death of Elizabeth Taylor (Q34851, P570):

Get item
Manner of death of Douglas Adams (Q42, P1196):

Name of Richard Burton's wife (Q151973, P26):

Invalid parameters
Date of death or any different parameter not returning ID in getitem function (Q42, P570):

Invalid parameter - manner of death of alive person (Q317521, P1196):