Jump to content

Template:Almanacco/testcases

From Wikipedia, the free encyclopedia

Test data

[edit]

Test with dmy

[edit]
dmy=02-12-1840
{{Almanacco|dmy=02-12-1840}}

{{Almanacco}}

Casaglia, Gherardo (2005). "2 December 1840". L'Almanacco di Gherardo Casaglia (in Italian).

{{Almanacco/sandbox}}

Casaglia, Gherardo (2005). "2 December 1840". L'Almanacco di Gherardo Casaglia (in Italian).

{{Almanacco|dmy=02-12-1840}}

{{Almanacco}}

Casaglia, Gherardo (2005). "2 December 1840". L'Almanacco di Gherardo Casaglia (in Italian).

{{Almanacco/sandbox}}

Casaglia, Gherardo (2005). "2 December 1840". L'Almanacco di Gherardo Casaglia (in Italian).

dmy=02-12-1840 | label=What happened on 2nd December 1840
{{Almanacco|dmy=02-12-1840 |label=What happened on 2nd December 1840}}

{{Almanacco}}

Casaglia, Gherardo (2005). "What happened on 2nd December 1840". L'Almanacco di Gherardo Casaglia (in Italian).

{{Almanacco/sandbox}}

Casaglia, Gherardo (2005). "What happened on 2nd December 1840". L'Almanacco di Gherardo Casaglia (in Italian).

dmy=02-12-1840 | match=La favorite
{{Almanacco|dmy=02-12-1840 |match=La favorite}}

{{Almanacco}}

Casaglia, Gherardo (2005). "La favorite, 2 December 1840". L'Almanacco di Gherardo Casaglia (in Italian).

{{Almanacco/sandbox}}

Casaglia, Gherardo (2005). "La favorite, 2 December 1840". L'Almanacco di Gherardo Casaglia (in Italian).

dmy=02-12-1840 | match=La favorite | label=Details of La favorite's premiere
{{Almanacco|dmy=02-12-1840 |label=Details of La favorite's premiere |match=La favorite}}

{{Almanacco}}

Casaglia, Gherardo (2005). "Details of La favorite's premiere". L'Almanacco di Gherardo Casaglia (in Italian).

{{Almanacco/sandbox}}

Casaglia, Gherardo (2005). "Details of La favorite's premiere". L'Almanacco di Gherardo Casaglia (in Italian).

MOS approved date formats

[edit]
dmy=2 December 1840
{{Almanacco|dmy=2 December 1840}}

{{Almanacco}}

Casaglia, Gherardo (2005). "2 December 1840". L'Almanacco di Gherardo Casaglia (in Italian).

{{Almanacco/sandbox}}

Casaglia, Gherardo (2005). "2 December 1840". L'Almanacco di Gherardo Casaglia (in Italian).

dmy=December 2, 1840
{{Almanacco|dmy=December 2, 1840}}

{{Almanacco}}

Casaglia, Gherardo (2005). "2 December 1840". L'Almanacco di Gherardo Casaglia (in Italian).

{{Almanacco/sandbox}}

Casaglia, Gherardo (2005). "2 December 1840". L'Almanacco di Gherardo Casaglia (in Italian).

dmy=1840-12-02
{{Almanacco|dmy=1840-12-02}}

{{Almanacco}}

Casaglia, Gherardo (2005). "2 December 1840". L'Almanacco di Gherardo Casaglia (in Italian).

{{Almanacco/sandbox}}

Casaglia, Gherardo (2005). "2 December 1840". L'Almanacco di Gherardo Casaglia (in Italian).


Test no dmy

[edit]
match=La favorite
{{Almanacco|match=La favorite}}

{{Almanacco}}

Casaglia, Gherardo (2005). "La favorite". L'Almanacco di Gherardo Casaglia (in Italian).

{{Almanacco/sandbox}}

Casaglia, Gherardo (2005). "La favorite". L'Almanacco di Gherardo Casaglia (in Italian).

match=La favorite | label=All entries for (any) La favorite
{{Almanacco|label=All entries for (any) La favorite |match=La favorite}}

{{Almanacco}}

Casaglia, Gherardo (2005). "All entries for (any) La favorite". L'Almanacco di Gherardo Casaglia (in Italian).

{{Almanacco/sandbox}}

Casaglia, Gherardo (2005). "All entries for (any) La favorite". L'Almanacco di Gherardo Casaglia (in Italian).


Test linkonly

[edit]
match=La favorite | linkonly=t 
{{Almanacco|linkonly=t |match=La favorite}}

{{Almanacco}}

La favorite

{{Almanacco/sandbox}}

La favorite

match=La favorite | label=All entries for (any) La favorite | linkonly=t
{{Almanacco|label=All entries for (any) La favorite |linkonly=t |match=La favorite}}

{{Almanacco}}

All entries for (any) La favorite

{{Almanacco/sandbox}}

All entries for (any) La favorite


Test with no parameters

[edit]
label=Invalid, neither required parameter supplied
{{Almanacco}}

{{Almanacco}}

Syntax: {{ Almanacco | dmy=dd-mm-yyyy | match=string | label=linktext | linkonly=t }}

{{Almanacco/sandbox}}

Syntax: {{ Almanacco | dmy=dd-mm-yyyy | match=string | label=linktext | linkonly=t }}